/* =====================================================================
   Orange Orbits - Design System
   Brand orange #FE5B01 (sampled from web-logo.svg)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #FE5B01;        /* logo + accents on dark surfaces and non-text graphics */
  --brand-ink: #C74400;    /* orange TEXT on light surfaces - 4.9:1 on white */
  --brand-cta: #CC4700;    /* fills carrying white text - 4.7:1 */
  --brand-600: #E04E00;
  --brand-700: #B83F00;
  --brand-100: #FFE3D2;
  --brand-50: #FFF4ED;

  --ink: #0B0C0F;
  --ink-2: #14161B;
  --ink-3: #1E2128;
  --text: #191C22;
  --muted: #5B6270;
  --muted-2: #6B7280;   /* 4.8:1 on white */

  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #F1F3F6;
  --line: #E5E8EC;
  --line-2: #D6DAE1;

  --on-dark: #F4F5F7;
  --on-dark-muted: #9CA3B0;
  --dark-line: rgba(255, 255, 255, .12);
  --dark-surface: rgba(255, 255, 255, .04);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(11, 12, 15, .06), 0 1px 3px rgba(11, 12, 15, .04);
  --shadow: 0 4px 14px rgba(11, 12, 15, .07), 0 1px 3px rgba(11, 12, 15, .05);
  --shadow-lg: 0 18px 50px rgba(11, 12, 15, .12), 0 4px 12px rgba(11, 12, 15, .06);
  --shadow-brand: 0 12px 30px rgba(254, 91, 1, .28);

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 1.45rem + 3.5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-sm { padding-block: clamp(40px, 5vw, 68px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Typography utilities ---------- */

/* Phone and WhatsApp numbers. The spaces inside "+1 (613) 481-0261" are
   break opportunities, so in a narrow column or near the end of a line the
   browser will happily split it — half the digits on one line, half on the
   next. Unreadable, and impossible to copy in one go. */
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--muted); line-height: 1.65; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 14px; }
.text-brand { color: var(--brand-ink); }
.dark .text-brand { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-size: .97rem; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand-cta); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-lg { padding: 16px 30px; font-size: 1.03rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: .93rem; color: var(--brand-ink);
}
.dark .link-arrow { color: var(--brand); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Surfaces ---------- */
.dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p, .dark li { color: var(--on-dark-muted); }
.dark .lede { color: #C5CAD3; }
.dark .eyebrow { color: var(--brand); }
.glow::after {
  content: ""; position: absolute; inset: auto auto 0 50%;
  width: min(900px, 120%); aspect-ratio: 2 / 1; transform: translate(-50%, 45%);
  background: radial-gradient(ellipse at center, rgba(254,91,1,.30), transparent 65%);
  pointer-events: none; z-index: 0;
}
.dark > * { position: relative; z-index: 1; }
.alt { background: var(--surface); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .link-arrow { margin-top: auto; padding-top: 18px; }
.dark .card { background: var(--dark-surface); border-color: var(--dark-line); }
.dark .card:hover { border-color: rgba(254,91,1,.45); background: rgba(255,255,255,.06); }

.card-icon {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; flex: none;
  background: var(--brand-50); color: var(--brand-ink);
}
.card-icon svg { width: 25px; height: 25px; }
.dark .card-icon { background: rgba(254,91,1,.14); color: var(--brand); }

.card-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  line-height: 1; color: var(--brand-ink); margin-bottom: 14px;
  letter-spacing: -.04em;
}
.dark .card-num { color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { width: 280px; height: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem;
  padding: 10px 13px; border-radius: 9px; color: var(--text);
  background: none; border: 0; /* the dropdown triggers are <button>s */
  transition: color .16s ease, background .16s ease; cursor: pointer;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--brand-ink); background: var(--brand-50); }
.nav-link[aria-current="page"] { color: var(--brand-ink); }
.nav-link .chev { width: 13px; height: 13px; transition: transform .2s ease; opacity: .6; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }

.header-cta { flex: none; margin-left: 6px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-8px);
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 26px; z-index: 120;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-cols { display: grid; gap: 26px 34px; }
.mega-w2 { width: 620px; } .mega-w2 .mega-cols { grid-template-columns: repeat(2, 1fr); }
.mega-w3 { width: 900px; } .mega-w3 .mega-cols { grid-template-columns: repeat(3, 1fr); }
.mega-w4 { width: 1090px; } .mega-w4 .mega-cols { grid-template-columns: repeat(4, 1fr); }

.mega-title {
  font-family: var(--font-head); font-size: .73rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2);
  padding-bottom: 9px; margin-bottom: 7px; border-bottom: 1px solid var(--line);
}
.mega-link {
  display: block; padding: 8px 10px; border-radius: 9px;
  font-size: .91rem; font-weight: 500; color: var(--text);
  transition: background .14s ease, color .14s ease;
}
.mega-link:hover { background: var(--brand-50); color: var(--brand-ink); }
.mega-link span { display: block; font-size: .78rem; color: var(--muted-2); margin-top: 1px; }
.mega-link:hover span { color: var(--brand-700); }

.mega-foot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.mega-foot p { font-size: .9rem; color: var(--muted); }
.mega-foot strong { color: var(--ink); font-family: var(--font-head); }

/* ---------- Mobile nav ---------- */
@media (max-width: 1140px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  /* backdrop-filter makes the header a containing block for position:fixed,
     which would trap the drawer inside the header strip. */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(420px, 100%);
    background: #fff; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 18px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  /* <button> does not fill its container by default, which left the dividers short. */
  .nav-link { width: 100%; padding: 14px 4px; font-size: 1.02rem; border-radius: 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .nav-link:hover, .nav-item.open > .nav-link { background: transparent; }
  .nav-item { width: 100%; }
  /* The header CTA moves into the drawer rather than disappearing. */
  .header-cta { display: flex; width: 100%; margin-top: 24px; }
  .mega {
    position: static; transform: none; width: auto !important; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 6px 0 16px; display: none;
  }
  .nav-item.open .mega { display: block; transform: none; }
  .mega-cols { grid-template-columns: 1fr !important; gap: 18px; }
  .mega-foot { display: none; }
  .nav .btn { margin-top: 20px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 7vw, 104px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
/* The hero headline sits in a column, not the full width, so it needs a lower
   ceiling than the page-wide h1 scale. */
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.3rem); margin-bottom: 20px; }
.hero .lede { max-width: 56ch; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 30px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid var(--dark-line);
  font-size: .85rem; font-weight: 500; color: #D3D8E0; margin-bottom: 24px;
}
.pill b {
  background: var(--brand-cta); color: #fff; font-family: var(--font-head);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.pill-light { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 6vw, 84px); }
.page-hero .lede { max-width: 62ch; }
.page-hero h1 { margin-bottom: 18px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; margin-bottom: 20px; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; opacity: .45; }
.crumbs a { color: var(--on-dark-muted); transition: color .15s; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--dark-line); border-radius: var(--radius-lg); overflow: hidden; }
.stats.on-light { background: var(--line); }
.stat { background: var(--ink); padding: 30px 24px; text-align: center; }
.stats.on-light .stat { background: #fff; }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.03em; }
.stats.on-light .stat-num { color: var(--brand-ink); }
.stat-label { font-size: .88rem; color: var(--on-dark-muted); margin-top: 9px; text-wrap: balance; }
.stats.on-light .stat-label { color: var(--muted); }
/* 2x2 for the hero, where the band sits in a narrow column. */
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stats.stats-2 .stat { padding: 34px 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tech logos ----------
   External monochrome SVGs. They render black (fill="currentColor" resolves to
   the initial colour in a standalone image), which suits the light surfaces they
   sit on; dark surfaces invert them. */
.tech-logo { width: 100%; height: 100%; object-fit: contain; }
.dark .tech-logo { filter: invert(1); }

/* ---------- Logo / tech marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee-track > span { width: 34px; height: 34px; flex: none; opacity: .5; transition: opacity .2s ease, transform .2s ease; }
.marquee-track > span:hover { opacity: 1; transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; } }

/* ---------- Tech grid ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.tech-chip {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-align: center; transition: all .2s ease;
}
.tech-chip:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.tech-chip .tech-logo { width: 30px; height: 30px; opacity: .78; transition: opacity .2s ease, transform .2s ease; }
.tech-chip:hover .tech-logo { opacity: 1; transform: scale(1.08); }
.tech-chip span { font-size: .8rem; font-weight: 600; color: var(--muted); font-family: var(--font-head); }
.dark .tech-chip { background: var(--dark-surface); border-color: var(--dark-line); }
.dark .tech-chip .tech-logo { opacity: .85; }
.dark .tech-chip span { color: var(--on-dark-muted); }

.tech-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.tech-tab {
  font-family: var(--font-head); font-size: .89rem; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; transition: all .18s ease;
}
.tech-tab:hover { border-color: var(--brand); color: var(--brand-ink); }
.tech-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tech-panel[hidden] { display: none; }

/* Industry jump-links and headings on the case studies index. */
a.tech-tab { text-decoration: none; }
a.tech-tab:hover { border-color: var(--brand); color: var(--brand-ink); }
.tab-count { font-weight: 800; color: var(--brand-ink); margin-left: 2px; }
a.tech-tab:hover .tab-count { color: var(--brand-ink); }
.industry-head { margin-bottom: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Case study cards ---------- */
.case-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; height: 100%;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.case-card:hover .case-media img { transform: scale(1.04); }
.case-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { margin-bottom: 10px; }
.case-body p { color: var(--muted); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag {
  font-size: .73rem; font-weight: 700; font-family: var(--font-head);
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
}
.dark .tag { background: rgba(254,91,1,.15); color: #FFB183; }

.result-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.result b { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--brand-ink); line-height: 1.1; }
.dark .result b { color: var(--brand); }
.result span { font-size: .8rem; color: var(--muted); }

/* ---------- Process / steps ----------
   Separate bordered cards rather than a seamless band: the step count varies
   (6 for delivery, 4 for hiring) and a shared background showed through as an
   empty cell whenever the last row was short. */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: #fff; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s ease, box-shadow .2s ease; }
.step:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.alt .step { background: #fff; }
.dark .step { background: var(--dark-surface); border-color: var(--dark-line); }
.dark .step h3 { color: #fff; }
.step-n {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: .95rem; margin-bottom: 16px;
}
.step:hover .step-n { background: var(--brand-cta); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ---------- Feature list ---------- */
.checks { display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.checks svg { width: 21px; height: 21px; flex: none; color: var(--brand); margin-top: 2px; }

.split, .split-wide { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split { grid-template-columns: 1fr 1fr; }
.split-wide { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* ---------- Accordion / FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
  background: currentColor; transition: transform .22s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq details[open] summary { color: var(--brand-ink); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-body { padding-bottom: 24px; color: var(--muted); max-width: 90ch; }
.faq-body > * + * { margin-top: 12px; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; height: 100%;
}
.quote-mark { font-family: Georgia, serif; font-size: 3.4rem; line-height: .7; color: var(--brand); margin-bottom: 12px; }
.quote blockquote { font-size: 1.03rem; color: var(--text); margin-bottom: 22px; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.quote cite { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink); display: block; }
.quote figcaption span { font-size: .84rem; color: var(--muted); }
.quote figcaption .avatar { color: #fff; font-size: .95rem; }
.quote-brand { display: block; font-size: .84rem; color: var(--muted); text-decoration: none; }
.quote-brand:hover, .quote-brand:focus-visible { color: var(--brand); text-decoration: underline; }
.dark .quote figcaption span { color: var(--on-dark-muted); }
.dark .quote figcaption .avatar { background: var(--brand-cta); color: #fff; }
.dark .quote-brand { color: var(--on-dark-muted); }
.dark .quote-brand:hover, .dark .quote-brand:focus-visible { color: var(--brand); }
.dark .faq summary:hover, .dark .faq details[open] summary { color: var(--brand); }
.dark .prose a { color: var(--brand); }
.dark .quote { background: var(--dark-surface); border-color: var(--dark-line); }
.dark .quote blockquote { color: #E6E9ED; }
.dark .quote cite { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 5vw, 72px); text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lede { max-width: 58ch; margin: 0 auto 30px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: .87rem; color: var(--ink); }
.field label .req { color: var(--brand-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; font-size: .97rem; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(254,91,1,.13);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-2 { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }

/* ---------- Article / prose ---------- */
.prose { max-width: 74ch; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); margin-top: 2em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .55em; }
.prose ul li { list-style: none; position: relative; padding-left: 4px; }
.prose ul li::before { content: ""; position: absolute; left: -1.1em; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--brand-ink); font-weight: 700; font-family: var(--font-head); }
.link-inline { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link-inline:hover { color: var(--brand-700); }
.dark .link-inline { color: var(--brand); }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--brand-700); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 22px;
  font-size: 1.1rem; color: var(--ink); font-style: italic;
}
/* Wide comparison tables scroll sideways on narrow screens instead of
   stretching the page. tabindex on the wrapper keeps it keyboard-scrollable. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 1.3em; border-radius: var(--radius); }
.table-scroll:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.table-scroll table { margin: 0; min-width: 520px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-head); font-weight: 700; color: var(--ink); background: var(--surface); }

.callout {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius); padding: 22px 24px;
}
.callout p { color: var(--brand-700); font-size: .98rem; }
.callout strong { color: var(--brand-700); }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
/* Generated per post by build/lib/blog-art.js - see the Blog artwork note in README. */
.post-media { display: block; aspect-ratio: 1200 / 630; background: var(--ink-2); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted-2); margin-bottom: 13px; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .95rem; }
/* ---------- Blog filters + loader ---------- */
.filter-row { flex-wrap: wrap; }
.filter-row .tech-tab { cursor: pointer; }
.filter-row .tech-tab[aria-pressed="true"] { background: var(--brand-cta); border-color: var(--brand-cta); color: #fff; }
.post-count { color: var(--muted-2); font-size: .9rem; margin-bottom: 20px; }
.post-count b { color: var(--ink); }
.post-count-note { color: var(--muted-2); }
.empty-state { color: var(--muted); padding: 40px 0; text-align: center; }
.load-more-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.load-more-row .btn[disabled] { opacity: .7; cursor: default; }
.spinner { display: none; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* Feature image at the head of an article. */
.post-hero { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 32px; display: block; }

/* ---------- Table of contents ---------- */
.toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.toc .toc-title { font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 13px; }
.toc li + li { margin-top: 9px; }
.toc a { font-size: .9rem; color: var(--muted); }
.toc a:hover { color: var(--brand-ink); }
.article-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
/* Grid items default to min-width:auto, which lets wide content (a scrollable
   table) stretch the column instead of scrolling inside it. */
.article-layout > *, .split > *, .split-wide > * { min-width: 0; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: clamp(48px, 6vw, 76px) 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px 30px; padding-bottom: 48px; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 680px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
.footer-brand img { width: 178px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: .93rem; margin-bottom: 20px; max-width: 34ch; }
@media (max-width: 680px) { .footer-brand { grid-column: 1 / -1; } }

.footer-col .footer-title { font-family: var(--font-head); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: .91rem; color: var(--on-dark-muted); transition: color .15s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-col a.btn { color: #fff; }
.footer-col a.btn:hover { color: #fff; }

.contact-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .91rem; margin-bottom: 12px; }
.contact-list svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 4px; }
.contact-list a:hover { color: var(--brand); }
/* Kept at the full muted tone - opacity here would drop it under 4.5:1. */
.contact-note { font-size: .82em; color: var(--on-dark-muted); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--dark-line); color: var(--on-dark-muted); transition: all .18s ease;
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid var(--dark-line); padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  font-size: .86rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- Misc ---------- */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--brand-cta); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 10px;
  font-family: var(--font-head); font-weight: 700; transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.badge svg { width: 15px; height: 15px; color: var(--brand); }
.dark .badge { background: var(--dark-surface); border-color: var(--dark-line); color: var(--on-dark-muted); }

.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(36px, 4vw, 56px); }
.dark .divider { background: var(--dark-line); }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}
