/* ==========================================================================
   OutForce — Design System
   Palette: Ink navy / Paper / Amber / Coral
   Type: Fraunces (display) · Public Sans (body) · IBM Plex Mono (labels)
   Fonts are self-hosted (GDPR): files in assets/fonts/, latin subset.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Fraunces-italic-500.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: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Fraunces-normal-500.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: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Fraunces-normal-600.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: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Fraunces-normal-700.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-normal-400.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-normal-500.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: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PublicSans-normal-400.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: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/PublicSans-normal-600.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: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PublicSans-normal-700.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;
}

:root {
  --ink: #152647;
  --ink-deep: #0E1A33;
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --amber: #F4A340;
  --amber-deep: #C97607;
  /* darker companions that pass WCAG AA as text on light backgrounds */
  --amber-text: #A15F0E;
  --coral: #EC6A5E;
  --coral-text: #BC4434;
  --slate: #51607A;
  --line: #E2E6EE;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-pill: 999px;
  --container: 1160px;
  --shadow: 0 18px 40px -20px rgba(21, 38, 71, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.9vw, 2.85rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 9px;
  border-radius: var(--radius-pill);
  background: var(--amber);
}

.accent-i { font-style: italic; color: var(--amber-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink-deep); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: var(--line-dark); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-nav a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.main-nav a { transition: background-color 0.15s ease, color 0.15s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }

.has-sub { position: relative; }
.has-sub > a::after { content: " \25BE"; font-size: 0.7em; }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 70;
}
/* Invisible bridge so the pointer can cross the 8px gap without closing the menu */
.sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.sub-menu li { list-style: none; }
.sub-menu a { display: block; border-radius: 8px; }
@media (hover: hover) {
  .has-sub:hover .sub-menu { display: block; }
}
.has-sub:focus-within .sub-menu,
.has-sub.open .sub-menu { display: block; }

/* Clock chip — signature element */
.clock-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  white-space: nowrap;
}
.clock-chip .tz { display: flex; align-items: center; gap: 6px; }
.clock-chip .tz b { font-weight: 600; color: var(--slate); }
.clock-chip .sep { color: var(--amber-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }

/* ---------- Hero backdrops: blueprint grid + soft brand glows ---------- */
.page-hero { position: relative; overflow: hidden; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 23v10M23 28h10' fill='none' stroke='%23152647' stroke-opacity='.18'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(860px 480px at 78% -10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(860px 480px at 78% -10%, #000 30%, transparent 75%);
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 320px at 82% -8%, rgba(244, 163, 64, 0.13), transparent 65%),
    radial-gradient(420px 260px at 4% 112%, rgba(236, 106, 94, 0.07), transparent 70%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.hero p.lede { font-size: 1.15rem; margin: 22px 0 32px; max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scale Smarter hero photo bleed */
.page-hero.has-scale-photo { display: flex; align-items: center; overflow: hidden; }
.page-hero.has-scale-photo .container { flex: 1 1 auto; margin: 0; padding: 0 24px 0 max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
/* The left padding grows with the viewport, so let the text box grow with it: past 1920px
   the text column would otherwise shrink to nothing. Keeps the photo on the site grid. */
.page-hero.has-scale-photo .container { max-width: max(var(--container), calc((100vw + var(--container)) / 2 - 380px)); }
.scale-photo { flex: 0 0 auto; align-self: center; width: 380px; max-width: 42vw; }
.scale-photo img { display: block; width: 100%; height: auto; }

/* Process page hero collage */
.page-hero.has-collage { overflow: visible; }
.process-collage { position: absolute; z-index: -1; top: -10px; right: -10px; width: 460px; height: 480px; transition: gap 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.process-collage .collage-bg { position: absolute; top: 40%; right: 30px; width: 360px; max-width: 100%; opacity: 0.9; z-index: 1; transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.process-collage .collage-photo { position: absolute; display: block; height: auto; transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.process-collage .collage-photo--2 { top: 0; right: 20px; width: 160px; z-index: 2; }
.process-collage .collage-photo--1 { top: 56%; left: -20px; width: 260px; z-index: 2; }

.about-photo { position: relative; z-index: -1; margin-top: -104px; }
.about-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent), linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent), linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-composite: intersect;
}
.about-photo .dot { position: absolute; bottom: -22px; width: 56px; height: 56px; border-radius: 50%; background: var(--amber); opacity: 0.55; z-index: 0; }
.about-photo .dot:nth-child(1) { left: -20px; }
.about-photo .dot:nth-child(2) { left: 44px; }
.about-photo .dot:nth-child(3) { left: 108px; }

.hero-panel {
  background: var(--ink);
  color: var(--white);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.hero-panel h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.bridge-clocks { display: grid; gap: 18px; }
.bridge-clocks .row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line-dark); padding-bottom: 14px; }
.bridge-clocks .row:last-child { border-bottom: 0; padding-bottom: 0; }
.bridge-clocks .city { font-weight: 700; }
.bridge-clocks .city small { display: block; font-weight: 400; color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.bridge-clocks .time { font-family: var(--font-mono); font-size: 1.7rem; color: var(--amber); }
.hero-panel .note { margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
/* Inherited text (checklists, stat labels) must not stay slate-on-ink */
.section-dark { background: var(--ink); color: rgba(255, 255, 255, 0.85); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.82); }
/* Bright coral passes on ink, where the darker text variant would not */
.section-dark .eyebrow { color: var(--coral); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; }

/* Stats */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-top: 3px solid var(--amber); padding-top: 18px; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--ink); }
.section-dark .stat .num { color: var(--white); }
.stat .lbl { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .pill-ico {
  width: 38px; height: 16px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  position: relative;
}
.card .pill-ico::after {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
}
.card .pill-ico { margin-bottom: 18px; }
.card .more { margin-top: auto; font-weight: 700; color: var(--amber-text); font-size: 0.92rem; }

/* Checklist */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 9px;
  border-radius: var(--radius-pill);
  background: var(--amber);
}
.check-list li strong { color: var(--ink); }
.section-dark .check-list li strong { color: var(--white); }

/* Certification badge row */
.badge-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 28px; margin-top: 40px; }
.badge-row img { height: 130px; width: auto; flex-shrink: 0; }

/* Process steps — numbered because it is a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  color: var(--coral-text);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; }
/* Step cards keep their white background inside dark sections */
.section-dark .step h3 { color: var(--ink); }
.section-dark .step p { color: var(--slate); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.media-card img { display: block; width: 100%; height: auto; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-card blockquote { font-size: 1rem; color: var(--ink); font-style: italic; }
.quote-card cite { font-style: normal; margin-top: auto; }
.quote-card cite b { display: block; color: var(--ink); }
.quote-card cite span { font-size: 0.85rem; }

/* FAQ accordion */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-text); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 24px 22px; }
.faq-item .faq-body ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }

/* Page hero (interior pages) */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 64ch; margin-top: 18px; font-size: 1.1rem; }

/* Case study */
.cs-meta { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 22px; }
.cs-meta span b { color: var(--ink); display: block; font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-family: var(--font-body); }
.prose { max-width: 760px; display: grid; gap: 18px; }

/* Responsive video embed */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Case study pull quote */
.cs-quote { margin: 10px 0 0; padding: 24px 28px; border-left: 4px solid var(--amber); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.cs-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.cs-quote cite { display: block; margin-top: 16px; font-style: normal; }
.cs-quote cite b { display: block; color: var(--ink); }
.cs-quote cite span { font-size: 0.9rem; color: var(--slate); }
.prose h2 { margin-top: 26px; }
.prose ul { margin-left: 22px; display: grid; gap: 8px; }
.prose p strong { color: var(--ink); }

/* Article comparison table — scrolls on narrow screens */
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--white); font-size: 0.98rem; }
.prose thead th { background: var(--ink); color: var(--white); text-align: left; font-family: var(--font-body); font-weight: 700; font-size: 0.88rem; padding: 13px 18px; vertical-align: bottom; }
.prose tbody td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- Article charts (self-hosted inline SVG) ---------- */
.chart {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 20px;
}
.chart-head { margin-bottom: 4px; }
.chart-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.12rem; line-height: 1.25; }
.chart-note { font-size: 0.9rem; color: var(--slate); margin-top: 5px; }
.chart-legend { display: flex; gap: 22px; margin: 12px 0 2px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.chart-legend .lk { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend .sw { width: 14px; height: 14px; border-radius: 4px; }
.chart-legend .sw--navy { background: var(--ink); }
.chart-legend .sw--amber { background: var(--amber); }
.chart-scroll { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.chart-svg { display: block; width: 100%; min-width: 500px; height: auto; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis { stroke: #C4CCD9; stroke-width: 1; }
.chart-svg .bar { fill: #7E8BA3; }
.chart-svg .bar--hl { fill: var(--amber); }
.chart-svg .bar--navy { fill: var(--ink); }
.chart-svg .cat { font-family: var(--font-mono); font-size: 13px; fill: var(--slate); }
.chart-svg .val { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; fill: var(--ink); }
.chart-svg .tick { font-family: var(--font-mono); font-size: 11.5px; fill: #97A0B2; }
.chart-source { font-size: 0.82rem; color: var(--slate); font-style: italic; margin-top: 14px; }
.chart-data { margin-top: 12px; }
.chart-data summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-text); width: max-content; }
.chart-data summary:hover { color: var(--amber-deep); }
.chart-data table { width: 100%; min-width: 0; border-collapse: collapse; background: transparent; box-shadow: none; margin-top: 12px; font-size: 0.92rem; }
.chart-data thead th { background: transparent; color: var(--slate); text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.chart-data tbody th { text-align: left; font-weight: 600; color: var(--ink); padding: 7px 12px 7px 0; border-top: 1px solid var(--line); }
.chart-data tbody td { text-align: right; font-family: var(--font-mono); color: var(--ink); padding: 7px 0; border-top: 1px solid var(--line); vertical-align: middle; }

/* Client logo marquee — 4 rows of logos scrolling left on a white band */
.section-clients { background: var(--white); }
.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* fade the two edges so logos slide in/out softly into the white */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  /* fallback pace before JS normalizes each row to one shared speed via
     the --marquee-duration var (set inline per row) */
  animation: marquee-scroll var(--marquee-duration, 60s) linear infinite;
}
/* The logo marquee is decorative but reads as broken when frozen, so keep it
   scrolling even under prefers-reduced-motion — which the global reset near
   the top would otherwise stop. Re-declared with !important to beat that
   reset; the pace still comes from the JS-set --marquee-duration var. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: marquee-scroll var(--marquee-duration, 60s) linear infinite !important; }
  /* keep the gentle per-logo fade too — the global reset would otherwise kill it */
  .marquee.fade-in .marquee-track img { transition: opacity 0.5s ease !important; }
}
/* uniform height, natural width — no tile, straight onto the white.
   spacing lives on the item (margin, not flex gap) so the -50% loop
   stays perfectly seamless after the row is duplicated. */
.marquee-track img {
  flex: none;
  height: 54px;
  width: auto;
  margin-right: 60px;
  object-fit: contain;
}
/* JS adds .fade-in so each logo eases in as it loads instead of popping.
   JS-driven so no-JS visitors, who never get the class, still see every logo. */
.marquee.fade-in .marquee-track img { opacity: 0; transition: opacity 0.5s ease; }
.marquee.fade-in .marquee-track img.is-loaded { opacity: 1; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-deep) 100%);
  border-radius: 22px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 10px; max-width: 48ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.78); margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.site-footer h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-brand .logo img { height: 30px; }
.footer-brand p { margin-top: 14px; font-size: 0.95rem; max-width: 34ch; }
.footer-contact li { font-size: 0.95rem; }
.footer-contact b { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; }

/* ---------- Responsive ---------- */
/* Header gets crowded before the content grids do: drop the clock chip
   first, then collapse the nav to the hamburger menu */
@media (max-width: 1280px) {
  .clock-chip { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    margin-left: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 16px; }
  .has-sub > a::after { content: ""; }
  .header-cta { display: none; }
}

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .badge-row img { height: 90px; }
  .about-photo { margin-top: -32px; }
  .process-collage { position: relative; z-index: 0; top: auto; left: auto; right: auto; bottom: auto; width: 100%; height: auto; max-width: 440px; margin: 32px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow: visible; }
  .process-collage .collage-bg { top: 50%; left: 50%; right: auto; width: 92%; transform: translate(-50%, -50%); z-index: 0; }
  .process-collage .collage-photo { position: relative; z-index: 1; top: auto; right: auto; bottom: auto; left: auto; }
  .process-collage .collage-photo--1 { order: 1; width: 50%; }
  .process-collage .collage-photo--2 { order: 2; width: 36%; }
  .page-hero.has-scale-photo { flex-direction: column; min-height: 0; gap: 32px; padding-bottom: 0; }
  .page-hero.has-scale-photo .container { flex: 0 0 auto; padding: 0 24px; }
  .scale-photo { width: 100%; max-width: 460px; align-self: center; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .steps, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .badge-row { gap: 16px; }
  .badge-row img { height: 64px; }
  .marquee { gap: 22px; }
  .marquee-track img { height: 40px; margin-right: 40px; }
}

/* ---------- Motion ---------- */
/* Scroll reveal: main.js adds .reveal, then .in when the element scrolls
   into view. Skipped entirely under prefers-reduced-motion. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Dropdown menus ease in each time they appear */
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.main-nav .sub-menu { animation: menu-in 0.18s ease; }

/* Gentle lift on cards that don't already have one */
.step, .quote-card, article.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover, .quote-card:hover, article.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Card link arrows nudge forward on hover */
.card .more { transition: transform 0.18s ease; }
a.card:hover .more { transform: translateX(5px); }

/* The header clock separator pulses like a heartbeat */
@keyframes chip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.clock-chip .sep { animation: chip-pulse 2.4s ease-in-out infinite; }

/* AI robot illustration floats */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.media-card img { animation: floaty 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .main-nav .sub-menu,
  .clock-chip .sep,
  .media-card img { animation: none; }
}

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 760px;
  margin: 0 auto;
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.consent-banner p { flex: 1 1 320px; font-size: 0.95rem; margin: 0; }
.consent-banner a { color: var(--amber); }
.consent-actions { display: flex; gap: 10px; }
.consent-banner .btn { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- High contrast preference ---------- */
@media (prefers-contrast: more) {
  body { color: #3D4A63; }
  .section-dark, .section-dark p { color: rgba(255, 255, 255, 0.95); }
  .site-footer, .site-footer a { color: rgba(255, 255, 255, 0.95); }
  .eyebrow { color: #9E3528; }
  .card .more, .faq-item summary::after { color: #7F4A0A; }
  .hero::before, .page-hero::before { display: none; }
}

/* ---------- Workspace gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 0.92rem; color: var(--slate); }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 5; }
.section-dark .card { border-color: transparent; }
.section-dark .card h3 { color: var(--ink); }
.section-dark .card p { color: var(--slate); }
.media-card.media-photo { padding: 0; overflow: hidden; }
.media-card.media-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide img { aspect-ratio: 16 / 9; }
}
