/* =========================================================
   NEXUS ONE — site.css
   Design system v1 (Phase 2). Palette: Option C "blend" (D-04).
   Documentation: docs/DESIGN_SYSTEM.md

   Contents
   1. Tokens            8. Header & navigation
   2. Tones             9. Breadcrumbs & page heroes
   3. Base & reset     10. Cards, tags, service groups
   4. Typography       11. Forms
   5. Layout           12. CTA & footer
   6. Buttons & links  13. Homepage sections (preserved from the original site)
   7. Utilities        14. Inner-page patterns
                       15. Motion preferences
   ========================================================= */

/* =========================================================
   0. Fonts — self-hosted variable fonts (SIL Open Font Licence,
      licences in /assets/fonts/). Figtree = headings, DM Sans = body.
   ========================================================= */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================
   1. Tokens — the ONLY place raw colour values appear
   ========================================================= */
:root {
  /* Brand — light-background set (brief) */
  --n1-navy-900: #123A77;
  --n1-navy-800: #13437F;
  --n1-navy-700: #185597;
  --n1-navy-600: #195FA1;
  --n1-ink:      #080F22;

  /* Brand — dark-background set (brief) */
  --n1-sky-100:  #DDEEFE;
  --n1-sky-300:  #89C1F1;
  --n1-sky-400:  #4BABFC;
  --n1-white:    #FFFFFF;

  /* Brand guide additions (Option C) */
  --n1-dark-blue: #0A183D;   /* main dark surface */
  --n1-cyan:      #00D4FF;   /* highlight — dark surfaces ONLY (1.8:1 on white) */
  --n1-mist:      #F8FAFF;   /* muted light surface */

  /* Functional additions (documented in DESIGN_SYSTEM.md) */
  --n1-control-border: #7F8AA0;  /* form controls: 3.5:1 on white */
  --n1-error:          #9C4A4A;
  --n1-error-on-dark:  #FF9B9B;
  --n1-success:        #2E7D4F;
  --n1-success-on-dark:#7FD6A4;

  /* Typography — Avenir is not licensed for web (D-05); see DESIGN_SYSTEM.md */
  --font-heading: Figtree, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --text-xs:   0.8125rem;  /* 13px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.0625rem;  /* 17px */
  --text-lg:   1.1875rem;  /* 19px */
  --text-xl:   1.375rem;   /* 22px */
  --text-h3:   clamp(1.2rem, 1.6vw, 1.35rem);
  --text-h2:   clamp(1.9rem, 3.4vw, 2.75rem);
  --text-h1:   clamp(2.2rem, 4.6vw, 3.4rem);
  --text-display: clamp(2.6rem, 6.2vw, 4.6rem);

  /* Spacing scale (4px base) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --section-y: clamp(80px, 10vw, 140px);
  --section-y-sm: clamp(56px, 7vw, 96px);

  /* Layout */
  --max-width: 1240px;
  --max-width-text: 720px;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 76px;

  /* Shape & motion */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-menu: 0 24px 48px rgba(8, 15, 34, 0.45);

  /* Breakpoints (reference — CSS custom properties can't be used in media queries)
     sm 480 · md 720 · nav 960 · lg 1200 */
}

/* =========================================================
   2. Tones — every section declares its surface; components
      read the variables below and adapt automatically.
   ========================================================= */
:root,
.tone-light {
  --surface: var(--n1-white);
  --text: var(--n1-ink);
  --text-soft: rgba(8, 15, 34, 0.72);        /* 7.8:1 on white */
  --heading: var(--n1-ink);
  --accent: var(--n1-navy-800);              /* links, numbers, rules */
  --accent-strong: var(--n1-navy-900);
  --highlight: var(--n1-navy-600);
  --hairline: rgba(8, 15, 34, 0.14);         /* decorative dividers only */
  --focus: var(--n1-navy-600);
  --btn-bg: var(--n1-navy-800);
  --btn-text: var(--n1-white);
  --btn-bg-hover: var(--n1-navy-900);
  --btn-text-hover: var(--n1-white);
  --ghost-border: rgba(8, 15, 34, 0.45);
  --card-hover: rgba(19, 67, 127, 0.06);
  --error: var(--n1-error);
  --success: var(--n1-success);
}

.tone-muted {
  --surface: var(--n1-mist);
}

.tone-dark,
.hero, .page-hero, .page-hero-plain, .ai-section, .cta-section {
  --surface: var(--n1-dark-blue);
  --text: var(--n1-white);
  --text-soft: rgba(255, 255, 255, 0.72);    /* 9.3:1 */
  --heading: var(--n1-white);
  --accent: var(--n1-sky-300);
  --accent-strong: var(--n1-white);
  --highlight: var(--n1-cyan);
  --hairline: rgba(255, 255, 255, 0.16);
  --focus: var(--n1-cyan);
  --btn-bg: var(--n1-sky-300);
  --btn-text: var(--n1-ink);
  --btn-bg-hover: var(--n1-cyan);
  --btn-text-hover: var(--n1-ink);
  --ghost-border: rgba(255, 255, 255, 0.4);
  --card-hover: rgba(137, 193, 241, 0.08);
  --error: var(--n1-error-on-dark);
  --success: var(--n1-success-on-dark);
}

.tone-deep,
.site-header, .mobile-nav, .site-footer, .dark-panel, .approach-section {
  --surface: var(--n1-ink);
  --text: var(--n1-white);
  --text-soft: rgba(255, 255, 255, 0.72);
  --heading: var(--n1-white);
  --accent: var(--n1-sky-300);
  --accent-strong: var(--n1-white);
  --highlight: var(--n1-cyan);
  --hairline: rgba(255, 255, 255, 0.16);
  --focus: var(--n1-cyan);
  --btn-bg: var(--n1-sky-300);
  --btn-text: var(--n1-ink);
  --btn-bg-hover: var(--n1-cyan);
  --btn-text-hover: var(--n1-ink);
  --ghost-border: rgba(255, 255, 255, 0.4);
  --card-hover: rgba(137, 193, 241, 0.08);
  --error: var(--n1-error-on-dark);
  --success: var(--n1-success-on-dark);
}

.tone-light, .tone-muted, .tone-dark, .tone-deep,
.hero, .page-hero, .page-hero-plain, .ai-section, .cta-section,
.site-footer, .dark-panel, .approach-section {
  background: var(--surface);
  color: var(--text);
}

/* =========================================================
   3. Base & reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, figure, ul, ol, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--n1-sky-100); color: var(--n1-ink); }

/* =========================================================
   4. Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: var(--text-h1); font-weight: 600; }
h2 { font-size: var(--text-h2); font-weight: 500; }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--text-md); font-weight: 700; line-height: 1.4; }

p { color: var(--text-soft); }
p + p { margin-top: var(--space-4); }
strong { color: var(--text); font-weight: 700; }

.lead { font-size: var(--text-lg); line-height: 1.6; }

/* Long-form text (service pages, articles) */
.prose { max-width: var(--max-width-text); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-12); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h3 { margin-top: var(--space-8); }
.prose ul { list-style: disc; padding-left: 1.25em; color: var(--text-soft); }
.prose ol { list-style: decimal; padding-left: 1.25em; color: var(--text-soft); }
.prose li + li { margin-top: var(--space-2); }
.list-heading { font-size: var(--text-xl); margin-bottom: var(--space-4); }   /* small h2 above a list (service pages) */
.prose a, .text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}
.prose a:hover, .text-link:hover { color: var(--accent-strong); }

/* Small uppercase label above headings */
.eyebrow, .page-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: var(--space-4);
}

/* =========================================================
   5. Layout
   ========================================================= */
.section-inner, .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section-sm { padding: var(--section-y-sm) 0; }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin-top: var(--space-4); font-size: var(--text-md); }
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--space-8); }
.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: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* =========================================================
   6. Buttons & links
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;                 /* comfortable touch target */
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-text-hover); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--ghost-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn[disabled], .btn.is-loading { opacity: 0.6; cursor: not-allowed; }

/* Arrow-style link used on cards ("Learn more") */
.arrow-link, .capability-link, .overview-card a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.arrow-link::after, .capability-link::after, .overview-card a::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}
.arrow-link:hover, .capability-link:hover, .overview-card a:hover { border-color: currentColor; }
.arrow-link:hover::after, .capability-link:hover::after, .overview-card a:hover::after { transform: translateX(3px); }

/* =========================================================
   7. Utilities
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--n1-white);
  color: var(--n1-ink);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }
.text-center { text-align: center; }

/* =========================================================
   8. Header & navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8, 15, 34, 0.94);           /* --n1-ink at 94% */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; flex-shrink: 0; }
.brand-mark { height: 52px; width: auto; }
.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n1-sky-400);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand-mark { height: 42px; }
  .brand-tagline { font-size: 0.52rem; letter-spacing: 0.09em; }
}

/* Desktop menu */
.main-nav > ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.main-nav li { position: relative; }
.nav-item { display: flex; align-items: center; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--n1-cyan);
  transition: right 0.35s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible, .nav-item.is-open > .nav-link { color: var(--n1-white); }
.nav-link:hover::after, .nav-link:focus-visible::after { right: 0; }
.nav-link[aria-current="page"], .nav-link.is-section { color: var(--n1-cyan); }
.nav-link[aria-current="page"]::after, .nav-link.is-section::after { right: 0; }

/* Separate button opens the submenu (works for touch + keyboard);
   the label beside it stays a real link to the section's overview page. */
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 32px;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
}
.submenu-toggle svg { width: 10px; height: 10px; transition: transform 0.3s var(--ease); }
.submenu-toggle:hover { color: var(--n1-white); }
.nav-item.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 270px;
  max-width: min(340px, calc(100vw - 32px));
  background: var(--n1-dark-blue);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* visibility flips instantly on open (so links are focusable at once)
     and only after the fade on close. */
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  z-index: 50;
}
.nav-item.is-open > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown { transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover > .nav-dropdown { transition-delay: 0s; }
}
/* Invisible bridge so the pointer can travel from link to menu without it closing */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dropdown.is-align-right { left: auto; right: 0; transform: translate(0, 6px); }

.nav-item.is-open > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-item.is-open > .nav-dropdown.is-align-right,
.nav-item:focus-within > .nav-dropdown.is-align-right { transform: translate(0, 0); }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover > .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
  .nav-item:hover > .nav-dropdown.is-align-right { transform: translate(0, 0); }
  .nav-item:hover > .submenu-toggle svg { transform: rotate(180deg); }
}
/* Dismissed with Escape (or the button): stay closed while focus remains in the item */
.nav-item.is-dismissed:not(.is-open) > .nav-dropdown {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: rgba(137, 193, 241, 0.12); color: var(--n1-white); }
.nav-dropdown a[aria-current="page"] { color: var(--n1-cyan); }
.nav-dropdown .dropdown-overview {
  margin-bottom: var(--space-1);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 700;
  color: var(--n1-white);
}

.header-cta { flex-shrink: 0; min-height: 44px; padding: 11px 22px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--n1-white); border-radius: 1px; transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle span:nth-child(1), .nav-toggle span:nth-child(3) { width: 24px; }
.nav-toggle span:nth-child(2) { width: 18px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display: none;
  background: var(--n1-ink);
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav-scroll { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: var(--space-6); }
.mobile-nav > .mobile-nav-scroll > ul { padding: var(--space-2) var(--gutter) 0; }
.mobile-nav li { border-top: 1px solid var(--hairline); }
.mobile-nav li:first-child { border-top: 0; }
.mobile-nav a, .mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--n1-white);
  text-align: left;
}
.mobile-nav a[aria-current="page"] { color: var(--n1-cyan); }
.mobile-submenu-toggle svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.mobile-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-submenu { padding: 0 0 var(--space-3) var(--space-4); }
.mobile-submenu[hidden] { display: none; }
.mobile-submenu li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-submenu a { min-height: 46px; font-size: 0.94rem; color: rgba(255, 255, 255, 0.75); }
.mobile-submenu .dropdown-overview { color: var(--n1-white); font-weight: 700; }
.mobile-nav .btn { display: flex; margin: var(--space-6) var(--gutter) 0; }

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
}

/* =========================================================
   9. Breadcrumbs & page heroes
   ========================================================= */
.breadcrumbs { font-size: var(--text-xs); margin-bottom: var(--space-6); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-soft); }
.breadcrumbs li + li::before { content: "/"; opacity: 0.5; }
.breadcrumbs a { color: var(--text-soft); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--text); text-decoration-color: currentColor; }
.breadcrumbs [aria-current="page"] { color: var(--text); }

.page-hero, .page-hero-plain {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 8vw, 90px);
}
/* Same centred 820px column as the original inner pages */
.page-hero .section-inner, .page-hero-plain .section-inner { max-width: 820px; }
.page-hero h1, .page-hero-plain h1 { font-size: var(--text-h1); }
.page-hero p, .page-hero-plain p { margin-top: var(--space-6); max-width: 640px; font-size: var(--text-lg); }
.page-hero .hero-actions, .page-hero-plain .hero-actions { justify-content: flex-start; margin-top: var(--space-8); }

/* =========================================================
   10. Cards, tags, service groups
   ========================================================= */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { background: var(--card-hover); }
.card p { font-size: 0.97rem; }
.card .arrow-link { margin-top: auto; padding-top: var(--space-3); align-self: flex-start; }
.card-number { font-family: var(--font-heading); font-size: var(--text-base); color: var(--accent); }

/* Whole-card link (the heading link stretches over the card) */
.card.is-linked { position: relative; }
.card.is-linked .card-link::before { content: ""; position: absolute; inset: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-8); }
.tag-list li {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
}
.tag-list a { color: var(--text); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.tag-list a:hover { text-decoration-color: currentColor; }

.service-group { padding: var(--space-10) 0; border-top: 1px solid var(--hairline); }
.service-group:first-of-type { border-top: none; padding-top: 0; }
.service-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-5); }
.service-group-head h3 { font-size: var(--text-xl); }
.service-group-note { font-size: 0.95rem; max-width: 480px; }
.service-group .tag-list { margin-top: 0; }
.service-group-more { margin-top: var(--space-4); }
.ai-inner .breadcrumbs ol { justify-content: center; }

/* FAQ (visible Q&A — the only content FAQ schema may describe) */
.faq-list { max-width: var(--max-width-text); border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-heading); font-size: var(--text-md); font-weight: 700; color: var(--heading);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 0 var(--space-6); }

/* Homepage FAQ (E16): intro on the left, question cards on the right */
.equation-section:has(+ .faq-split) { padding-bottom: clamp(48px, 6vw, 80px); }
.faq-split { padding-top: clamp(48px, 5vw, 72px); background: linear-gradient(180deg, var(--n1-mist) 0%, #EEF5FF 100%); }
.faq-split-inner { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-split-head { position: sticky; top: calc(var(--header-h, 80px) + 24px); margin-bottom: 0; }
.faq-split-head h2 { margin-top: var(--space-3); }
.faq-split-head p { margin: var(--space-5) 0 var(--space-8); color: var(--text-soft); max-width: 360px; }
.faq-cards { max-width: none; border-top: 0; display: grid; gap: var(--space-3); }
.faq-cards .faq-item { background: var(--n1-white); border: 1px solid rgba(18, 58, 119, .12); border-radius: 12px; padding: 0 var(--space-6); box-shadow: 0 10px 24px -22px rgba(18, 58, 119, .55); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-cards .faq-item:hover { border-color: rgba(18, 58, 119, .28); }
.faq-cards .faq-item[open] { border-color: var(--n1-sky-400); box-shadow: 0 16px 32px -24px rgba(24, 85, 151, .7); }
.faq-cards .faq-item summary::after { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--n1-sky-100); line-height: 1; }
.faq-cards .faq-item[open] summary::after { background: var(--n1-navy-800); color: var(--n1-white); }
.faq-cards .faq-answer p { color: var(--text-soft); }
@media (max-width: 860px) {
  .faq-split-inner { grid-template-columns: 1fr; }
  .faq-split-head { position: static; }
  .faq-split-head p { margin-bottom: var(--space-5); }
}

/* =========================================================
   11. Forms
   ========================================================= */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-size: var(--text-sm); font-weight: 700; color: var(--text); }
.form-field .required { color: var(--accent); }
.form-hint { font-size: var(--text-xs); color: var(--text-soft); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: var(--text-base);   /* 16px prevents iOS zoom on focus */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--n1-control-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tone-dark .form-field input, .tone-dark .form-field select, .tone-dark .form-field textarea { border-color: rgba(255, 255, 255, 0.45); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(25, 95, 161, 0.25);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--error); }
.field-error { font-size: var(--text-xs); font-weight: 600; color: var(--error); min-height: 1em; }

.form-status { font-size: var(--text-sm); font-weight: 700; min-height: 1.4em; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.form-submit { align-self: flex-start; }

/* Honeypot: hidden from people, visible to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   12. CTA & footer
   ========================================================= */
.cta-section { padding: var(--section-y) 0; text-align: center; }
.cta-section p { font-size: var(--text-lg); margin: var(--space-5) auto var(--space-10); max-width: 560px; }

/* Free SEO check (E8; visuals, progress and PageSpeed E9) */
.audit-icon { width: 22px; height: 22px; flex: none; vertical-align: -5px; color: var(--accent); }
.audit-pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.audit-pill.is-pass { background: #E6F4EC; color: #1F5C3A; }
.audit-pill.is-warn { background: #FFF3D6; color: #6B4B00; }
.audit-pill.is-fail { background: #FBEAEA; color: #7A2E2E; }
.audit-note { font-size: var(--text-sm); color: var(--text-soft); margin: var(--space-3) 0 0; }
.audit-section-lead { color: var(--text-soft); max-width: 720px; margin: var(--space-3) 0 var(--space-8); }

/* Gauges */
.audit-gauge-wrap { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.audit-gauge { position: relative; width: 84px; height: 84px; }
.audit-gauge-wrap.is-large .audit-gauge { width: 176px; height: 176px; }
.audit-gauge svg { width: 100%; height: 100%; }
.audit-gauge-bg { stroke: var(--n1-sky-100); }
.audit-gauge-ring { stroke: var(--n1-success); }
.audit-gauge.is-warn .audit-gauge-ring { stroke: #C77D12; }
.audit-gauge.is-fail .audit-gauge-ring { stroke: #B9473F; }
.audit-gauge-value { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; font-family: var(--font-heading); color: var(--heading); }
.audit-gauge-value strong { font-size: 1.6rem; line-height: 1; }
.audit-gauge.is-pass .audit-gauge-value strong { color: #1F6B43; }
.audit-gauge.is-warn .audit-gauge-value strong { color: #8A5A00; }
.audit-gauge.is-fail .audit-gauge-value strong { color: #9C3A33; }
.audit-gauge-wrap.is-large strong { font-size: 3.2rem; }
.audit-gauge-wrap.is-large .audit-gauge-value > span[aria-hidden] { font-size: var(--text-md); color: var(--text-soft); margin: 14px 0 0 2px; }
.audit-gauge-label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.audit-gauge-wrap.is-large .audit-gauge-label { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }

/* Summary: score + category bars */
.audit-summary { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(20px, 4vw, 40px); border: 1px solid rgba(18, 58, 119, .12); border-radius: 12px; background: radial-gradient(120% 140% at 0% 0%, rgba(75, 171, 252, .12), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(0, 212, 255, .10), transparent 60%), var(--surface); box-shadow: 0 18px 40px -28px rgba(18, 58, 119, .45); }
.audit-score { position: relative; }
.audit-score::before { content: ""; position: absolute; left: 50%; top: 88px; width: 196px; height: 196px; margin: -98px 0 0 -98px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(75, 171, 252, 0), rgba(75, 171, 252, .45), rgba(0, 212, 255, 0)); animation: audit-spin 6s linear infinite; -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%); mask: radial-gradient(circle, transparent 66%, #000 67%); }
.audit-summary-text { display: grid; gap: var(--space-4); }
.audit-summary-text h2 { margin: 0; }
.audit-summary-text p { margin: 0; }
.audit-bars { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.audit-bars li { display: grid; grid-template-columns: minmax(170px, 210px) 1fr 44px; gap: var(--space-4); align-items: center; animation: audit-rise .6s ease both; }
.audit-bars li:nth-child(2) { animation-delay: .08s; }
.audit-bars li:nth-child(3) { animation-delay: .16s; }
.audit-bars li:nth-child(4) { animation-delay: .24s; }
.audit-bars li:nth-child(5) { animation-delay: .32s; }
.audit-bars a { display: flex; gap: var(--space-2); align-items: center; color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--text-sm); }
.audit-bars a:hover { color: var(--accent); }
.audit-bars strong { font-family: var(--font-heading); text-align: right; }
.audit-bar-svg { width: 100%; height: 10px; }
.audit-bar-bg { fill: var(--n1-sky-100); }
.audit-bar-fill { fill: var(--n1-success); transform-box: fill-box; transform-origin: left center; animation: audit-grow 1.2s cubic-bezier(.2, .8, .2, 1) .3s both; }
.audit-bar-svg.is-warn .audit-bar-fill { fill: #C77D12; }
.audit-bar-svg.is-fail .audit-bar-fill { fill: #B9473F; }

/* Detailed results */
.audit-group { margin-top: var(--space-10); scroll-margin-top: 100px; }
.audit-group-head { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-lg); padding-bottom: var(--space-3); margin: 0 0 var(--space-4); border-bottom: 2px solid var(--n1-sky-100); }
.audit-group-head .audit-icon { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--n1-sky-100), #E9FBFF); }
.audit-group-head span { margin-left: auto; font-size: var(--text-sm); font-weight: 600; color: var(--text-soft); }
.audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.audit-item { display: grid; grid-template-columns: 76px 1fr; gap: var(--space-4); align-items: start; padding: var(--space-5); background: var(--n1-white); border: 1px solid rgba(18, 58, 119, .12); border-left-width: 4px; border-radius: var(--radius-md); transition: transform .2s ease, box-shadow .2s ease; animation: audit-rise .5s ease both; }
.audit-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(18, 58, 119, .5); }
.audit-item.is-pass { border-left-color: var(--n1-success); }
.audit-item.is-warn { border-left-color: #C77D12; }
.audit-item.is-fail { border-left-color: #B9473F; }
.audit-item h4 { font-size: var(--text-md); margin: 0 0 var(--space-1); }
.audit-item p { margin: 0; color: var(--text-soft); }
.audit-tip { margin-top: var(--space-2) !important; color: var(--text) !important; }
.audit-hchart { display: block; width: 100%; max-width: 280px; height: auto; margin: var(--space-3) 0 var(--space-1); }
.audit-hchart-bar { fill: var(--n1-navy-700); transform-box: fill-box; transform-origin: center bottom; animation: audit-grow-y .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
.audit-hchart-bar.is-empty { fill: var(--n1-sky-100); }
.audit-hchart text { font-size: 10px; font-weight: 700; fill: var(--n1-ink); }
.audit-hchart .audit-hchart-label { fill: #5A6478; font-weight: 600; }

/* PageSpeed panel */
.audit-speed h2 { display: flex; align-items: center; gap: var(--space-3); }
.audit-speed h2 .audit-icon { width: 30px; height: 30px; }
.audit-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.audit-device { padding: clamp(18px, 3vw, 28px); background: var(--n1-white); border: 1px solid rgba(18, 58, 119, .12); border-radius: 12px; box-shadow: 0 18px 40px -30px rgba(18, 58, 119, .5); }
.audit-device h3 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-5); }
.audit-device h4 { font-size: var(--text-md); margin: var(--space-8) 0 var(--space-3); }
.audit-device h4 span { font-weight: 500; font-size: var(--text-xs); color: var(--text-soft); margin-left: var(--space-2); }
.audit-device-top { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: center; }
.audit-device-top.is-desktop { grid-template-columns: minmax(150px, 230px) 1fr; }
.audit-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-2); }
.audit-speed-body.is-revealed { animation: audit-rise .6s ease both; }

/* Device frames (screenshots and the loading animation) */
.audit-phone, .audit-monitor { position: relative; flex: none; background: #0A183D; box-shadow: 0 16px 30px -18px rgba(8, 15, 34, .7); }
.audit-phone { width: 112px; aspect-ratio: 412 / 823; padding: 7px; border-radius: 18px; }
.audit-monitor { width: 190px; aspect-ratio: 1350 / 940; padding: 6px; border-radius: 8px; margin-bottom: 18px; }
.audit-device .audit-monitor { width: 100%; max-width: 230px; }
.audit-monitor::after { content: ""; position: absolute; left: 38%; right: 38%; bottom: -16px; height: 12px; background: linear-gradient(#24324F, #0A183D); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.audit-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; background: #F3F7FF; }
.audit-monitor .audit-screen { border-radius: 3px; }
.audit-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Core Web Vitals and lab metrics */
.audit-cwv { display: inline-block; margin: 0 0 var(--space-4); padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: var(--text-sm); }
.audit-cwv span { display: block; font-weight: 500; font-size: var(--text-xs); }
.audit-cwv.is-pass { background: #E6F4EC; color: #1F5C3A; }
.audit-cwv.is-fail { background: #FBEAEA; color: #7A2E2E; }
.audit-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.audit-metric { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--space-3); align-items: baseline; }
.audit-metric-name { font-size: var(--text-sm); color: var(--text); }
.audit-metric-name abbr { text-decoration: none; font-size: var(--text-xs); font-weight: 700; color: var(--text-soft); }
.audit-metric-value { text-align: right; font-size: var(--text-sm); }
.audit-metric-rating { font-size: var(--text-xs); font-weight: 600; }
.audit-metric.is-good .audit-metric-rating { color: #1F6B43; }
.audit-metric.is-ni .audit-metric-rating { color: #8A5A00; }
.audit-metric.is-poor .audit-metric-rating { color: #9C3A33; }
.audit-scale { grid-column: 1 / -1; width: 100%; height: 10px; overflow: visible; }
.audit-scale-good { fill: #7CC59A; }
.audit-scale-ni { fill: #F2C46B; }
.audit-scale-poor { fill: #E39A93; }
.audit-scale-marker { fill: var(--n1-ink); animation: audit-fade .6s ease .4s both; }
.audit-fixes { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.audit-fixes span { color: var(--text-soft); font-size: var(--text-xs); white-space: nowrap; }
.audit-speed-note { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-6); background: var(--n1-white); border: 1px dashed rgba(18, 58, 119, .3); border-radius: 12px; }
.audit-speed-note p { margin: 0 0 var(--space-2); }

/* Loading: devices being "scanned", progress bar and steps */
.audit-speed-loading { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; padding: clamp(20px, 4vw, 36px); background: var(--n1-white); border-radius: 12px; border: 1px solid rgba(18, 58, 119, .12); }
.audit-devices { display: flex; gap: var(--space-5); align-items: flex-end; }
.audit-devices .audit-screen { display: grid; align-content: start; gap: 6px; padding: 10px 8px; }
.audit-devices .audit-screen span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #DDEEFE 0%, #F3F9FF 50%, #DDEEFE 100%); background-size: 200% 100%; animation: audit-shimmer 1.4s ease-in-out infinite; }
.audit-devices .audit-screen span:first-child { height: 26px; }
.audit-devices .audit-screen span:nth-child(3) { width: 70%; }
.audit-devices.is-scanning .audit-screen::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, rgba(0, 212, 255, 0), rgba(0, 212, 255, .45) 85%, #00D4FF); animation: audit-scan 1.8s ease-in-out infinite; }
.audit-loading-title, .audit-progress-title { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); color: var(--heading); margin: 0 0 var(--space-4); }
.audit-bar { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--n1-sky-100); overflow: hidden; }
.audit-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 3%; border-radius: inherit; background: linear-gradient(90deg, var(--n1-navy-800), var(--n1-sky-400), #00D4FF, var(--n1-navy-800)); background-size: 200% 100%; transition: width .4s ease; animation: audit-flow 2s linear infinite; }
.audit-steps { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.audit-steps li { position: relative; padding-left: 28px; color: var(--text-soft); transition: color .3s ease; }
.audit-steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C5D3E8; box-sizing: border-box; }
.audit-steps li.is-active { color: var(--heading); font-weight: 600; }
.audit-steps li.is-active::before { border-color: var(--n1-sky-400); border-top-color: transparent; animation: audit-spin .8s linear infinite; }
.audit-steps li.is-done { color: var(--text); }
.audit-steps li.is-done::before { border-color: var(--n1-success); background: var(--n1-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Form page: what we check, and the progress panel */
.audit-check-cards { list-style: none; margin: 0 0 var(--space-8); padding: 0; display: grid; gap: var(--space-3); }
.audit-check-cards li { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); border: 1px solid rgba(18, 58, 119, .12); border-radius: 10px; background: linear-gradient(135deg, rgba(221, 238, 254, .55), rgba(255, 255, 255, 0) 60%); transition: transform .2s ease, box-shadow .2s ease; }
.audit-check-cards li:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -20px rgba(18, 58, 119, .6); }
.audit-check-cards .audit-icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--n1-white); box-shadow: 0 4px 12px -6px rgba(18, 58, 119, .4); }
.audit-check-cards strong { display: block; color: var(--heading); }
.audit-check-cards span { font-size: var(--text-sm); color: var(--text-soft); }
.form.is-busy > :not(.audit-progress) { display: none !important; }
.audit-progress { padding: clamp(20px, 4vw, 32px); border-radius: 12px; background: var(--n1-white); border: 1px solid rgba(18, 58, 119, .12); box-shadow: 0 18px 40px -28px rgba(18, 58, 119, .5); animation: audit-rise .4s ease both; }
.audit-progress[hidden] { display: none; }
.audit-progress-pct { margin: var(--space-2) 0 0; font-family: var(--font-heading); font-weight: 700; color: var(--accent); }
.audit-radar { position: relative; width: 128px; height: 128px; margin: 0 auto var(--space-5); border-radius: 50%; background: radial-gradient(circle, #13437F 0%, #0A183D 70%); box-shadow: 0 0 0 6px rgba(75, 171, 252, .15), 0 12px 30px -10px rgba(10, 24, 61, .8); overflow: hidden; }
.audit-radar svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); fill: none; stroke: rgba(137, 193, 241, .35); stroke-width: 1; }
.audit-radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0, 212, 255, 0) 0deg, rgba(0, 212, 255, 0) 280deg, rgba(0, 212, 255, .55) 360deg); animation: audit-spin 2.2s linear infinite; }
.audit-radar-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #00D4FF; box-shadow: 0 0 8px #00D4FF; animation: audit-blip 2.2s ease-in-out infinite; }
.audit-radar-dot:nth-of-type(2) { top: 30%; left: 62%; }
.audit-radar-dot:nth-of-type(3) { top: 62%; left: 30%; animation-delay: .7s; }
.audit-radar-dot:nth-of-type(4) { top: 68%; left: 70%; animation-delay: 1.4s; }

@keyframes audit-spin { to { transform: rotate(360deg); } }
@keyframes audit-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes audit-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes audit-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes audit-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes audit-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes audit-scan { 0% { top: -30%; } 100% { top: 100%; } }
@keyframes audit-flow { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes audit-blip { 0%, 100% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1); } }

@media (max-width: 960px) {
  .audit-device-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .audit-summary, .audit-speed-loading { grid-template-columns: 1fr; justify-items: center; }
  .audit-summary-text { width: 100%; }
  .audit-summary-text h2, .audit-summary-text > p { text-align: center; }
  .audit-bars li { grid-template-columns: 1fr 40px; gap: var(--space-1) var(--space-3); }
  .audit-bars svg { grid-column: 1 / -1; grid-row: 2; }
  .audit-item { grid-template-columns: 1fr; }
  .audit-device-top, .audit-device-top.is-desktop { grid-template-columns: 1fr; justify-items: center; }
  .audit-group-head { flex-wrap: wrap; }
  .audit-group-head span { margin-left: 0; width: 100%; }
}


/* Free SEO check promotion (E10): section on SEO pages and the footer strip */
.free-check-inner { display: grid; grid-template-columns: 1fr minmax(180px, 260px); gap: clamp(24px, 6vw, 80px); align-items: center; }
.free-check-text h2 { margin: var(--space-3) 0 var(--space-4); }
.free-check-text p { max-width: 620px; color: var(--text-soft); }
.free-check-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 var(--space-8); padding: 0; }
.free-check-chips li { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--n1-white); border: 1px solid rgba(18, 58, 119, .16); font-size: var(--text-sm); font-weight: 600; color: var(--n1-navy-800); }
.free-check-visual svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(18, 58, 119, .18)); }
.fc-track { stroke: var(--n1-sky-100); }
.fc-arc-1 { stroke: #2E7D4F; }
.fc-arc-2 { stroke: #F2B64B; }
.fc-arc-3 { stroke: var(--n1-sky-400); }
.fc-arc { animation: audit-fade .8s ease both; }
.fc-arc-2 { animation-delay: .2s; }
.fc-arc-3 { animation-delay: .4s; }
.fc-needle { transform-box: view-box; transform-origin: 110px 110px; animation: fc-sweep 4s ease-in-out infinite; }
.fc-needle path { stroke: var(--n1-navy-900); }
.fc-needle circle { fill: var(--n1-navy-900); }
@keyframes fc-sweep { 0%, 100% { transform: rotate(-70deg); } 50% { transform: rotate(80deg); } }

.footer-check { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-6) var(--space-8); margin-bottom: clamp(48px, 6vw, 72px); border: 1px solid rgba(137, 193, 241, .28); border-radius: 12px; background: linear-gradient(110deg, rgba(24, 85, 151, .45), rgba(0, 212, 255, .10)); }
.footer-check .audit-icon { width: 44px; height: 44px; padding: 9px; border-radius: 50%; color: var(--n1-cyan); background: rgba(0, 212, 255, .12); }
.footer-check p { margin: 0; flex: 1; color: rgba(255, 255, 255, .8); font-size: var(--text-sm); }
.footer-check strong { display: block; color: var(--n1-white); font-family: var(--font-heading); font-size: var(--text-lg); margin-bottom: 2px; }
.footer-check .btn { flex: none; }
@media (max-width: 760px) {
  .free-check-inner { grid-template-columns: 1fr; }
  .free-check-visual { max-width: 200px; }
  .footer-check { flex-direction: column; align-items: flex-start; padding: var(--space-6); }
}

.site-footer { padding-top: clamp(64px, 8vw, 100px); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 3fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--hairline);
}
.footer-mark { height: 54px; width: auto; margin-bottom: var(--space-5); }
.footer-brand p { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); max-width: 230px; }
.footer-brand .footer-contact { margin-top: var(--space-5); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: var(--text-sm); }
.footer-brand .footer-contact a { color: var(--n1-sky-300); display: inline-block; padding: 3px 0; } /* 24 px tap targets (WCAG 2.5.8) */

.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-8); }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}
.footer-col li + li { margin-top: var(--space-3); }
.footer-col a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--n1-cyan); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
}
.footer-bottom p, .footer-bottom a { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--n1-white); }
.footer-legal { display: flex; gap: var(--space-5); }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   13. Homepage sections — preserved from the original site;
       only colours re-mapped to the tone system.
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 180px) 0 clamp(90px, 12vw, 140px); }
#hero-canvas, #ai-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero-canvas { opacity: 0.8; }   /* original 0.55 on black; raised to stay equally visible on Dark Blue */
#ai-canvas { opacity: 0.9; }
.hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.hero-kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--n1-sky-300); margin-bottom: var(--space-6); }
.hero-headline { font-size: var(--text-display); font-weight: 500; }
.hero-sub { margin: var(--space-8) auto 0; max-width: 580px; font-size: var(--text-lg); }
.hero-actions { margin-top: var(--space-12); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.capabilities { padding: var(--section-y) 0; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.capability-card { position: relative; padding: 44px 36px 40px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; transition: background-color 0.4s var(--ease); }
.capability-card:hover { background: var(--card-hover); }
.capability-number, .eyebrow-mark { display: block; font-family: var(--font-heading); font-size: var(--text-base); color: var(--accent); margin-bottom: var(--space-6); }
.capability-card h3 { margin-bottom: 14px; }
.capability-card p { font-size: 0.98rem; }
.capability-card .capability-link { margin-top: auto; padding-top: 22px; align-self: flex-start; }
@media (max-width: 860px) { .capability-grid { grid-template-columns: 1fr; } }

.split-section { padding: var(--section-y) 0; }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }
.split-text h2 { margin-bottom: var(--space-5); }
.split-text p { font-size: var(--text-md); max-width: 500px; }
.split-link { margin-top: var(--space-6); }
.split-visual { display: flex; justify-content: center; }
.visual-svg { width: 100%; max-width: 380px; }
.visual-flow { max-width: 460px; }
@media (max-width: 860px) {
  .split-inner { grid-template-columns: 1fr; }
  .split-reverse .split-text, .split-reverse .split-visual { order: initial; }
  .split-visual { order: -1; }
}

/* Browser wireframe illustration */
.v-frame { fill: none; stroke: var(--hairline); stroke-width: 1; }
.v-line { stroke: var(--hairline); stroke-width: 1; }
.v-dot, .v-bar { fill: var(--hairline); }
.v-bar-strong { fill: var(--text-soft); opacity: 0.4; }
.v-block { fill: rgba(19, 67, 127, 0.14); }
.v-block-alt { fill: rgba(18, 58, 119, 0.18); }
.v-cta { fill: var(--accent); opacity: 0.9; }

/* Strategy → Growth flow illustration */
.flow-line { stroke: var(--hairline); stroke-width: 1; }
.flow-node circle { fill: var(--surface); stroke: var(--n1-sky-300); stroke-width: 2; }
.flow-node text { fill: var(--text-soft); font-family: var(--font-body); font-size: 12px; font-weight: 700; text-anchor: middle; }
.flow-node-final circle { fill: var(--n1-cyan); stroke: var(--n1-cyan); }
.flow-node-final text { fill: var(--n1-cyan); }

.ai-section { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 160px) 0; }
.ai-inner { position: relative; z-index: 2; text-align: center; max-width: calc(760px + 2 * var(--gutter)); }
.ai-section h1, .ai-section h2 { margin-bottom: var(--space-5); }
.ai-sub { font-size: var(--text-lg); max-width: 640px; margin: 0 auto; }
.ai-tag-list { margin-top: var(--space-12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ai-tag-list li { font-size: var(--text-xs); font-weight: 600; padding: 9px 18px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); color: rgba(255, 255, 255, 0.82); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.ai-tag-list li:hover { border-color: var(--n1-cyan); color: var(--n1-cyan); }
.ai-tag-list a { color: inherit; }
.ai-explore-link { margin-top: var(--space-10); }

.why-section { padding: var(--section-y) 0; }
.converge-wrap { position: relative; max-width: 720px; margin: 0 auto; }
.converge-svg { width: 100%; height: auto; }
.c-line { stroke: var(--hairline); stroke-width: 1.25; }
.c-line-final { stroke: var(--accent); stroke-width: 1.75; }
.c-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.c-dot-core { fill: var(--accent); stroke: none; }
.c-dot-final { fill: var(--accent); stroke: var(--highlight); stroke-width: 2; }
.c-label { font-family: var(--font-body); font-size: 17px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.c-label-final { font-family: var(--font-heading); font-size: 22px; font-weight: 600; font-style: italic; fill: var(--accent); }

.approach-section { padding: var(--section-y) 0; }
.approach-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; border-top: 1px solid var(--hairline); padding-top: var(--space-10); }
.approach-timeline li { position: relative; padding-right: 12px; }
.approach-timeline li::before { content: ""; position: absolute; top: -41px; left: 0; width: 100%; height: 2px; background: var(--hairline); }
.approach-timeline li:first-child::before { background: var(--n1-cyan); }
.approach-number { display: block; font-family: var(--font-heading); color: var(--n1-cyan); font-size: 1.4rem; margin-bottom: 18px; }
.approach-timeline h3 { margin-bottom: 10px; font-size: var(--text-lg); }
.approach-timeline p { font-size: 0.94rem; }
.approach-timeline.is-auto { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }   /* any number of steps */
@media (max-width: 960px) {
  .approach-timeline, .approach-timeline.is-auto { grid-template-columns: 1fr; gap: 0; }
  .approach-timeline li { padding: 28px 0 28px 24px; border-left: 2px solid var(--hairline); }
  .approach-timeline li:first-child { border-left-color: var(--n1-cyan); }
  .approach-timeline li::before { display: none; }
}

.equation-section { padding: clamp(90px, 11vw, 150px) 0; }
.equation-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 18px; text-align: center; }
.equation-term, .equation-op { font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 1.9rem); }
.equation-term { color: var(--text-soft); }
.equation-op { color: var(--accent); }
.equation-eq { color: var(--text); }
.equation-result {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  background: linear-gradient(120deg, var(--n1-navy-900), var(--n1-navy-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   14. Inner-page patterns (from the original inner pages)
   ========================================================= */
.content-section { padding: clamp(72px, 9vw, 120px) 0; }

.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.overview-card { background: var(--surface); padding: 36px 32px; display: flex; flex-direction: column; transition: background-color 0.35s var(--ease); }
.overview-card:hover { background: var(--card-hover); }
.overview-card h3 { margin-bottom: 12px; font-size: var(--text-lg); }
.overview-card p { font-size: 0.95rem; flex-grow: 1; }
.overview-card a { margin-top: var(--space-5); align-self: flex-start; }
@media (max-width: 960px) { .overview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .overview-grid { grid-template-columns: 1fr; } }

.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-10); }
.philosophy-card { padding-top: 22px; border-top: 2px solid var(--accent); }
.philosophy-card h3 { margin-bottom: 12px; font-size: var(--text-lg); }
.philosophy-card p { font-size: 0.96rem; }
@media (max-width: 860px) { .philosophy-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.difference-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .difference-row { grid-template-columns: 1fr; } }

.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.tech-col { background: var(--surface); padding: 32px 26px; }
.tech-col h3 { color: var(--highlight); font-size: var(--text-base); margin-bottom: 18px; }
.tech-col li { font-size: 0.92rem; color: var(--text-soft); padding: 7px 0; border-top: 1px solid var(--hairline); }
.tech-col li:first-child { border-top: none; }
.tech-note { margin-top: 28px; font-size: var(--text-sm); max-width: 640px; }
@media (max-width: 960px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

.consulting-block { margin-top: 60px; padding: var(--space-10); border: 1px solid var(--hairline); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.consulting-block h3 { margin-bottom: var(--space-2); }
.consulting-block p { max-width: 480px; }

.contact-page-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .contact-page-grid { grid-template-columns: 1fr; } }
.contact-side h2, .contact-side h3 { font-size: var(--text-base); margin-bottom: 10px; }
.contact-side p { font-size: 0.95rem; margin-bottom: var(--space-8); }
.contact-address { font-style: normal; font-size: 0.95rem; color: var(--text); margin-bottom: var(--space-3); line-height: 1.6; }
.contact-side a { color: var(--accent); font-weight: 700; border-bottom: 1px solid transparent; }
.contact-side a:hover { border-color: currentColor; }

/* =========================================================
   14b. Insights & legal pages (Phase 9)
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.post-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--surface); padding: 0 0 clamp(24px, 3vw, 32px);
  transition: background-color 0.35s var(--ease);
}
.post-card:hover { background: var(--card-hover); }
.post-card.is-linked { position: relative; }
.post-card.is-linked .card-link::before { content: ""; position: absolute; inset: 0; }
.post-card > :not(.post-card-image) { margin-left: clamp(24px, 3vw, 32px); margin-right: clamp(24px, 3vw, 32px); }
.post-card > :first-child:not(.post-card-image) { margin-top: clamp(24px, 3vw, 32px); }
.post-card-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: var(--space-2); }
.post-card-meta { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--text-soft); }
.post-card-title { font-size: var(--text-xl); line-height: 1.3; }
.post-card p { font-size: 0.97rem; }
.post-card .arrow-link { margin-top: auto; align-self: flex-start; }

.filter-list { margin-bottom: var(--space-10); }
.filter-list ul { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-list a {
  display: inline-block; padding: 8px 16px; font-size: var(--text-sm); font-weight: 600;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); color: var(--text);
}
.filter-list a:hover { border-color: var(--accent); }
.filter-list a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--btn-text); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6); margin-top: var(--space-12); font-size: var(--text-sm); }
.pagination a { color: var(--accent); font-weight: 700; }

.empty-state { max-width: var(--max-width-text); }
.empty-state h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: var(--space-4); }
.empty-state .hero-actions { justify-content: flex-start; margin-top: var(--space-8); }

.article-hero .page-eyebrow:hover { text-decoration: underline; }
.article-hero .article-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); margin-top: var(--space-6); }
.article-body { padding-top: clamp(40px, 5vw, 64px); }
.article-body .section-inner { max-width: calc(var(--max-width-text) + 2 * var(--gutter)); }
.article-cover { margin-bottom: var(--space-10); }
.article-cover img { width: 100%; height: auto; border-radius: var(--radius-md); }
.article-toc { border-left: 2px solid var(--accent); padding: var(--space-2) 0 var(--space-2) var(--space-5); margin-bottom: var(--space-10); }
.article-toc h2 { font-size: var(--text-base); margin-bottom: var(--space-3); }
.article-toc ol { list-style: decimal; padding-left: 1.25em; color: var(--text-soft); }
.article-toc li + li { margin-top: var(--space-2); }
.article-toc a { color: var(--accent); }
.article-toc a:hover { text-decoration: underline; }
.article-prose { font-size: var(--text-md); }
.article-prose p, .article-prose li { line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h4 { margin-top: var(--space-6); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: var(--space-5); font-style: italic; }
.prose code { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; padding: 1px 5px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-10) 0; }
.prose-figure img { width: 100%; height: auto; border-radius: var(--radius-md); }
.author-box { margin-top: var(--space-16); padding: var(--space-6); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.author-box p { font-size: 0.97rem; }
.author-box p + p { margin-top: var(--space-3); }

.legal-prose h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.legal-updated { font-size: var(--text-sm); font-weight: 600; }
.pending-notice, .preview-banner {
  max-width: var(--max-width-text); margin-bottom: var(--space-8); padding: var(--space-4) var(--space-5);
  background: #FFF3D6; color: #4A3500; border: 1px solid #E8C66A; border-radius: var(--radius-md); font-size: var(--text-sm);
}
.pending-notice strong, .preview-banner strong { color: #4A3500; }
.preview-banner { max-width: none; margin: 0; border-radius: 0; text-align: center; }
.preview-banner a { color: #4A3500; text-decoration: underline; margin-left: var(--space-3); }

/* Tables, captions and tags in articles (Enhancement E1) */
.table-wrap { overflow-x: auto; margin: var(--space-6) 0; border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); color: var(--text-soft); }
.prose th { color: var(--heading); font-family: var(--font-heading); font-weight: 600; background: var(--card-hover); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose-figure figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-soft); text-align: center; }
.article-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); margin-top: var(--space-10); }
.article-tags .tag-list { margin-top: 0; }
.article-tags-label { font-size: var(--text-sm); font-weight: 700; color: var(--text); }

/* Pages created in the admin (E2) */
.landing-hero { padding: clamp(80px, 11vw, 140px) 0 clamp(64px, 8vw, 104px); text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(19, 67, 127, 0.55), transparent 70%), var(--n1-dark-blue); }
.landing-hero .breadcrumbs ol { justify-content: center; }
.landing-hero h1 { max-width: 900px; margin: 0 auto; font-size: var(--text-display); font-weight: 500; }
.landing-hero .landing-lead { max-width: 640px; margin: var(--space-6) auto 0; font-size: var(--text-lg); }
.landing-hero .hero-actions { justify-content: center; margin-top: var(--space-10); }
.custom-page .custom-main { max-width: var(--max-width-text); }
.custom-page.is-standard .section-inner, .custom-page.is-landing .section-inner { max-width: calc(var(--max-width-text) + 2 * var(--gutter)); }
.custom-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.custom-aside { display: flex; flex-direction: column; gap: var(--space-6); position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { padding: var(--space-6); border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); }
.aside-card h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.aside-card p { font-size: 0.95rem; }
.aside-links { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-4) 0 var(--space-5); }
.aside-links a, .aside-nav a { color: var(--accent); font-weight: 600; }
.aside-nav li + li { margin-top: var(--space-2); }
.btn-block { display: flex; width: 100%; justify-content: center; }
@media (max-width: 960px) { .custom-with-aside { grid-template-columns: 1fr; } .custom-aside { position: static; } }

/* Our Team / Our Work (E3) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-10) var(--space-8); }
.team-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.team-photo { width: 100%; max-width: 320px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-3); background: var(--card-hover); }
.team-initials { display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 3rem; color: var(--accent); border: 1px solid var(--hairline); }
.team-name { font-size: var(--text-xl); }
.team-role { font-size: var(--text-sm); font-weight: 700; color: var(--accent); }
.team-bio { font-size: 0.97rem; }
.team-link { font-size: var(--text-sm); font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.author-box { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-5); }
.author-box > :not(.author-photo) { grid-column: 2; }
.author-photo { grid-row: 1 / span 4; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-6); align-items: center; }
.logo-wall li { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); }
.logo-wall img { max-height: 56px; width: auto; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s var(--ease), opacity 0.3s var(--ease); }
.logo-wall li:hover img, .logo-wall a:focus-visible img { filter: none; opacity: 1; }
.logo-wall-name { font-family: var(--font-heading); font-weight: 600; color: var(--text); text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-8); }
.testimonial { padding: var(--space-8); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: var(--radius-md); background: var(--surface); }
.testimonial blockquote p { font-size: var(--text-md); color: var(--text); font-style: italic; line-height: 1.7; }
.testimonial figcaption { margin-top: var(--space-4); font-size: var(--text-sm); display: flex; flex-direction: column; color: var(--text-soft); }
.article-body .testimonial { margin-top: var(--space-10); }
.case-services { margin-top: var(--space-6); }
.results-band { background: var(--n1-dark-blue); padding: var(--space-10) 0; }
.results-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-8); }
.results-list li { display: flex; flex-direction: column; gap: var(--space-2); }
.results-list strong { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--n1-cyan); line-height: 1.1; }
.results-list span { color: rgba(255, 255, 255, 0.8); font-size: 0.97rem; }
.case-back { margin-top: var(--space-10); }

/* News (E4) */
.news-kind { color: var(--accent); }
.media-contact, .press-boilerplate { margin-top: var(--space-12); padding: var(--space-6); border: 1px solid var(--hairline); border-radius: var(--radius-md); max-width: var(--max-width-text); }
.media-contact h2, .press-boilerplate h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.press-boilerplate h2 + p { margin-bottom: var(--space-6); }
.media-contact a, .press-boilerplate a, .news-source a { color: var(--accent); font-weight: 600; }
.news-source { margin-top: var(--space-8); font-size: var(--text-sm); }

/* Gallery (E5) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.gallery-item { display: flex; flex-direction: column; gap: var(--space-2); }
.gallery-open, .video-facade { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--n1-dark-blue); }
.gallery-open img, .video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-open:hover img, .gallery-open:focus-visible img { transform: scale(1.04); }
.gallery-open:focus-visible, .video-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-caption { font-size: var(--text-sm); }
.video-facade { background: radial-gradient(circle at 30% 20%, rgba(75, 171, 252, 0.35), transparent 60%), var(--n1-dark-blue); }
.video-facade.is-playing { aspect-ratio: 16 / 9; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer; }
.video-play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(8, 15, 34, 0.75); border: 2px solid var(--n1-cyan); }
.video-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -6px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--n1-white); }
.video-fallback { position: absolute; inset: auto 0 0 0; padding: var(--space-3); color: var(--n1-white); background: rgba(8, 15, 34, 0.8); }
.album-placeholder { display: block; background: radial-gradient(circle at 30% 20%, rgba(75, 171, 252, 0.35), transparent 60%), var(--n1-dark-blue); }
.lightbox { max-width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 15, 34, 0.92); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--radius-md); }
.lightbox figcaption { color: var(--n1-white); font-size: var(--text-sm); text-align: center; }
.lightbox button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(8, 15, 34, 0.7); color: var(--n1-white); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:focus-visible { outline: 3px solid var(--n1-cyan); outline-offset: 2px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }

/* Long article titles, URLs and words must wrap on phones, never widen the page. */
.article-hero .breadcrumbs li { min-width: 0; }
.article-hero .breadcrumbs [aria-current="page"], .prose, .article-hero h1, .post-card-title { overflow-wrap: break-word; }
.prose a, .prose code { overflow-wrap: anywhere; }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* =========================================================
   15. Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Cookie choice (consent.js): small bar at the bottom of the screen */
.consent { position: fixed; z-index: 90; left: var(--space-5); right: var(--space-5); bottom: var(--space-5); max-width: 560px; margin-left: auto;
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: 12px;
  border: 1px solid rgba(137, 193, 241, .28); background: var(--n1-navy-900); color: rgba(255, 255, 255, .9); box-shadow: 0 12px 32px rgba(5, 14, 36, .35); }
.consent p { margin: 0; flex: 1; font-size: var(--text-sm); line-height: 1.5; }
.consent a { color: var(--n1-sky-300); }
.consent-actions { display: flex; gap: var(--space-2); flex: none; }
.consent .btn-ghost { color: var(--n1-white); border-color: rgba(255, 255, 255, .45); }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent-actions { justify-content: flex-end; } }
.consent .btn { padding: 10px 18px; font-size: var(--text-sm); }
.consent { background: var(--n1-ink); border-color: rgba(137, 193, 241, .4); }
.consent p { color: rgba(255, 255, 255, .88); }
.consent .btn-primary { background: var(--n1-sky-300); border-color: var(--n1-sky-300); color: var(--n1-ink); }
.consent .btn-primary:hover { background: var(--n1-white); border-color: var(--n1-white); color: var(--n1-ink); }
.consent .btn-ghost:hover { border-color: var(--n1-white); color: var(--n1-white); }

/* =========================================================
   Client audit report (S2.1): /report/{token}/, prints as a PDF
   ========================================================= */
.cr-cover { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); background: radial-gradient(120% 140% at 0% 0%, rgba(75, 171, 252, .12), transparent 55%), var(--n1-mist); border-bottom: 1px solid rgba(18, 58, 119, .10); }
.cr-cover h1 { margin: var(--space-2) 0; font-size: clamp(2rem, 4.5vw, 3rem); word-break: break-word; }
.cr-meta { color: var(--text-soft); margin: 0 0 var(--space-5); }
.cr-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
.cr-scores { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 32px); }
.cr-scores .audit-gauge-wrap { min-width: 96px; }
.cr-body { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); max-width: 960px; }
.cr-section { margin-bottom: clamp(36px, 5vw, 56px); }
.cr-section h2, .cr-note h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: var(--space-4); }
.cr-section > p { max-width: 760px; }
.cr-note { margin-bottom: clamp(36px, 5vw, 56px); padding: var(--space-5) var(--space-6); border-left: 4px solid var(--n1-sky-300); background: var(--n1-mist); border-radius: 0 12px 12px 0; }
.cr-note h2 { font-size: var(--text-lg); }
.cr-hint { color: var(--text-soft); font-size: var(--text-sm); margin: 0 0 var(--space-3); }
.cr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin: var(--space-6) 0 0; }
.cr-facts div { padding: var(--space-4); border: 1px solid rgba(18, 58, 119, .12); border-radius: 10px; }
.cr-facts dt { font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.cr-facts dd { margin: var(--space-1) 0 0; font-weight: 600; color: var(--heading); }
.cr-group { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-6) 0 var(--space-1); font-size: var(--text-lg); }
.cr-group span { font-size: var(--text-xs); padding: 2px 8px; border-radius: 999px; background: var(--n1-mist); border: 1px solid rgba(18, 58, 119, .12); }
.cr-plan { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.cr-item { padding: var(--space-4) var(--space-5); border: 1px solid rgba(18, 58, 119, .12); border-left: 4px solid #8FA3C0; border-radius: 10px; break-inside: avoid; }
.cr-item.is-high { border-left-color: #B9473F; }
.cr-item.is-medium { border-left-color: #C77D12; }
.cr-item p { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.cr-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); }
.cr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-tag { font-size: var(--text-xs); padding: 2px 8px; border-radius: 999px; background: var(--n1-mist); border: 1px solid rgba(18, 58, 119, .12); color: var(--text-soft); }
.cr-tag.is-high { background: #FBEAE8; border-color: #F0C7C2; color: #9C3A33; }
.cr-tag.is-medium { background: #FDF1DD; border-color: #F2D7A6; color: #8A5A00; }
.cr-examples { margin: var(--space-2) 0 0; padding-left: 1.1em; font-size: var(--text-xs); color: var(--text-soft); word-break: break-all; }
.cr-service { color: var(--text-soft); }
.cr-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.cr-service-card { padding: var(--space-5); border: 1px solid rgba(18, 58, 119, .14); border-radius: 12px; break-inside: avoid; }
.cr-service-card h3 { font-size: var(--text-lg); margin: 0 0 var(--space-1); }
.cr-service-card ul { margin: var(--space-2) 0 0; padding-left: 1.1em; font-size: var(--text-sm); }
.cr-price { margin: var(--space-3) 0 0; font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--heading); }
.cr-total { margin: var(--space-5) 0 var(--space-1); font-size: var(--text-lg); }
.cr-passed { columns: 2 260px; padding-left: 1.1em; font-size: var(--text-sm); }
.cr-method p { font-size: var(--text-sm); color: var(--text-soft); }
.cr-cta { padding: clamp(24px, 4vw, 40px); border-radius: 14px; background: var(--n1-ink); color: rgba(255, 255, 255, .88); }
.cr-cta h2 { color: var(--n1-white); margin-top: 0; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .site-header, .site-footer, .skip-link, .no-print, .consent { display: none !important; }
  body { background: #fff; }
  .cr-cover { background: none; border-bottom: 2px solid #123A77; padding: 0 0 16px; }
  .cr-body { padding-top: 16px; max-width: none; }
  .cr-section { break-inside: auto; }
  .cr-section h2 { break-after: avoid; }
  .cr-item, .cr-service-card, .cr-facts div { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .audit-gauge-ring { transition: none; }
}
.cr-tally { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); max-width: 720px; }
.cr-tally li { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr auto; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid rgba(18, 58, 119, .12); border-radius: 10px; font-size: var(--text-sm); break-inside: avoid; }
.cr-tally meter { width: 100%; height: 10px; }
.cr-tally strong { color: var(--heading); white-space: nowrap; }
@media (max-width: 560px) { .cr-tally li { grid-template-columns: 1fr auto; } .cr-tally meter { grid-column: 1 / -1; grid-row: 2; } }
.cr-brand { display: none; margin-bottom: 18px; }
.cr-logo { height: 56px; width: auto; }
@media print { .cr-brand { display: block; } }
@media print {
  .cr-scores { flex-wrap: nowrap; gap: 10px; justify-content: space-between; }
  .cr-scores .audit-gauge-wrap { min-width: 0; }
  .cr-scores .audit-gauge { width: 64px; height: 64px; }
  .cr-scores .audit-gauge-value strong { font-size: 1.15rem; }
  .cr-scores .audit-gauge-wrap.is-large .audit-gauge { width: 112px; height: 112px; }
  .cr-scores .audit-gauge-wrap.is-large strong { font-size: 2.1rem; }
  .cr-scores .audit-gauge-label { font-size: 9pt; max-width: 90px; line-height: 1.25; }
}
@media print { .cr-scores { align-items: flex-start; } }
/* Contact block: only on the PDF (the screen has the "Talk to our team" box) */
.cr-contact { display: none; }
@media print {
  .cr-contact { display: block; margin-top: 18px; padding: 14px 18px; border: 1px solid #123A77; border-radius: 10px; break-inside: avoid; }
  .cr-contact h2 { font-size: 14pt; margin: 0 0 6px; }
  .cr-contact p { margin: 4px 0; font-size: 10pt; }
}

/* S2.2: competitor comparison table (admin audit page and client report) */
.cmp-wrap { overflow-x: auto; margin: 0 0 12px; border: 1px solid rgba(18, 58, 119, .14); border-radius: 12px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(18, 58, 119, .08); vertical-align: top; }
.cmp-table thead th { background: #F3F7FD; font-weight: 700; }
.cmp-table thead small { display: block; font-weight: 400; font-size: 12px; color: rgba(8, 15, 34, .62); }
.cmp-table tbody th[scope="row"] { font-weight: 500; color: rgba(8, 15, 34, .78); }
.cmp-table .is-client { background: rgba(75, 171, 252, .07); }
.cmp-table td.is-best { font-weight: 700; color: #1F6B43; }
.cmp-best { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #E5F3EA; color: #1F6B43; }
.cmp-group th { padding-top: 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #13437F; background: #fff; }
.cmp-line { margin: 6px 0; font-weight: 500; }
.cmp-note { margin: 6px 0 0; font-size: 12px; color: rgba(8, 15, 34, .62); }
@media print { .cmp-wrap { overflow: visible; border-radius: 0; } .cmp-table { min-width: 0; font-size: 9.5pt; } .cmp-table tr { break-inside: avoid; } }

/* S2.3: changes since the previous audit (admin audit page and client report) */
.chg-line { margin: 4px 0; font-weight: 500; }
.chg-scores { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.chg-scores li { padding: 10px 12px; border: 1px solid rgba(18, 58, 119, .12); border-left: 4px solid #8FA3C0; border-radius: 10px; display: grid; gap: 2px; break-inside: avoid; }
.chg-scores li.is-up { border-left-color: #2E7D4F; }
.chg-scores li.is-down { border-left-color: #B9473F; }
.chg-scores span { font-size: 12px; color: rgba(8, 15, 34, .62); }
.chg-scores strong { font-size: 20px; }
.chg-scores li.is-up small { color: #1F6B43; font-weight: 600; }
.chg-scores li.is-down small { color: #9C3A33; font-weight: 600; }
.chg-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.chg-list { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(18, 58, 119, .12); break-inside: avoid; }
.chg-list h3 { font-size: 14px; margin: 0 0 6px; }
.chg-list ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.chg-list.is-fixed { background: #EEF7F1; }
.chg-list.is-better { background: #F3F7FD; }
.chg-list.is-new { background: #FBEFEE; }
.chg-none, .chg-note { font-size: 13px; color: rgba(8, 15, 34, .62); }
