/* ============================================================
   SCOUT — SITE COMPONENTS
   Shared chrome and section patterns for the marketing site.
   Depends on tokens.css. Mobile-first; max-width queries stack grids.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Layout helpers ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-narrow { max-width: 760px; margin: 0 auto; text-align: center; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: 22px; }

/* ---- Type ---- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-weight: 700; letter-spacing: -0.04em; }
p { margin: 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); }
.muted { color: var(--text-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 16px;
}
.h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }

/* ---- Bolt mark ---- */
.bolt {
  display: inline-block;
  background: var(--accent);
  clip-path: var(--bolt);
  width: 18px; height: 18px;
  flex: none;
}
.bolt.sm { width: 14px; height: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  padding: 13px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent-text); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }
.btn-text { color: var(--accent-text); padding: 13px 6px; }
.btn-text:hover { color: var(--accent); }
.btn-invert { background: #fff; color: var(--accent-ink); }
.btn-invert:hover { transform: translateY(-1px); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; margin-left: 36px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; margin: -6px; line-height: 0; }
.nav-toggle .ico-close { display: none; }
.nav.nav-open .nav-toggle .ico-menu { display: none; }
.nav.nav-open .nav-toggle .ico-close { display: block; }

/* Segmented theme toggle */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 8px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--text-2); cursor: pointer; transition: all .18s ease;
}
.seg button svg { display: block; width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* Scout Recon brand chip (header link to the Recon property) */
.recon-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 13.5px; letter-spacing: -.01em;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.recon-chip:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px -10px rgba(14,143,230,.5); }
.recon-chip .bolt { width: 13px; height: 13px; background: var(--accent); clip-path: var(--bolt); display: inline-block; flex: none; }
.recon-chip .arr { width: 11px; height: 11px; color: var(--text-3); flex: none; }
/* Variant B: fixed near-black pill, white wordmark, cerulean bolt */
.recon-chip.solid { background: #0B0B0B; border-color: rgba(255,255,255,.16); color: #fff; }
.recon-chip.solid .arr { color: rgba(255,255,255,.55); }
/* Size variants: sm for the footer, lg for the marketing CTAs */
.recon-chip.sm { padding: 6px 12px; font-size: 12.5px; gap: 7px; }
.recon-chip.sm .bolt { width: 12px; height: 12px; }
.recon-chip.lg { padding: 12px 22px; font-size: 15px; gap: 10px; }
.recon-chip.lg .bolt { width: 15px; height: 15px; }
.recon-chip.lg .arr { width: 13px; height: 13px; }

/* ---- Dropdown navigation ---- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-top { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-2); }
.nav-top:hover { color: var(--text); }
.nav-top .caret { opacity: .6; transition: transform .2s ease; }
.nav-item:hover .caret, .nav-item:focus-within .caret, .nav-item.open .caret { transform: rotate(180deg); opacity: 1; }

.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: -14px;
  min-width: 340px; padding: 14px;
  background: rgba(16, 16, 19, 0.97);
  backdrop-filter: saturate(140%) blur(30px); -webkit-backdrop-filter: saturate(140%) blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px;
  box-shadow: 0 28px 64px -22px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.99);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
/* invisible bridge so the panel doesn't vanish crossing the gap */
.nav-dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
/* cerulean hairline accent along the top edge */
.nav-dropdown::after { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.open > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.nd-eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: #5FB8F2; padding: 4px 12px 10px; margin: 0; }
.nd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; transition: background .15s ease; }
.nd-item:hover { background: rgba(255, 255, 255, 0.07); }
.nd-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
.nd-text { display: flex; flex-direction: column; gap: 3px; }
.nd-label { font-size: 14px; font-weight: 500; color: #F5F5F7; letter-spacing: -.01em; }
.nd-item:hover .nd-label { color: #5FB8F2; }
.nd-desc { font-size: 12.5px; line-height: 1.45; color: #B5B5B8; }
.nd-all { display: block; margin-top: 6px; padding: 11px 12px 4px; font-size: 13px; font-weight: 500; color: #5FB8F2; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.nd-all:hover { color: #fff; }
.nd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.nd-item.slim { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: #B5B5B8; }
.nd-item.slim:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.recon-menu { left: auto; right: -14px; min-width: 560px; }
.nd-recon { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4px 20px; }
.nd-rcol-b { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.10); padding-left: 18px; }
.nd-cta { margin-top: 10px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); }
.nd-cta p { font-size: 12.5px; line-height: 1.45; color: #B5B5B8; margin: 9px 0 12px; }
.nd-cta .btn-primary { width: 100%; justify-content: center; }
.nd-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.1px; color: #5FB8F2; }
.nd-badge .bolt { width: 12px; height: 12px; background: var(--accent); clip-path: var(--bolt); display: inline-block; flex: none; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, var(--glow), transparent 70%),
    linear-gradient(180deg, #161616, #0B0B0B);
  pointer-events: none;
}
[data-theme="light"] .hero-bg { background: radial-gradient(ellipse 60% 55% at 50% 0%, var(--glow), transparent 70%), var(--bg); }
.hero-inner { position: relative; padding: 92px var(--gutter) 100px; max-width: 880px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: .99; margin: 0 0 22px; }
.hero .lead { max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---- Trust bar ---- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; padding: 20px 0; }
.trust-row span.t { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }

/* ---- Service tiers (big numbered rows) ---- */
.tier { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); }
.tier:last-child { border-bottom: 1px solid var(--line); }
.tier .num { font-family: var(--font-mono); font-size: 46px; font-weight: 500; color: var(--accent); line-height: 1; }
.tier h3 { font-size: 26px; margin-bottom: 10px; }
.tier p { color: var(--text-2); max-width: 640px; }
.tier-n { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 1.5px; color: var(--accent-text); margin-bottom: 12px; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Founder card */
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--accent-text); }
.person .role { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-text); margin: 2px 0 10px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card .label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }

/* Project cards */
.project { overflow: hidden; padding: 0; }
.project .shot { aspect-ratio: 16/10; background: linear-gradient(135deg, #161616, #1E1E1E); display: flex; align-items: center; justify-content: center; }
.project .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project .shot .ph { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }
.project .body { padding: 24px 28px 28px; }
.project .cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-text); }
.project h3 { font-size: 21px; margin: 8px 0 8px; }
.project .domain { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); margin-top: 12px; display: inline-block; }

/* E-E-A-T grid item */
.eeat .label { color: var(--accent-text); }

/* ---- Scout Recon callout ---- */
.recon-callout { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--r-pill); }
.recon-bullets { list-style: none; padding: 0; margin: 20px 0 24px; }
.recon-bullets li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-2); }
.recon-shot { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.recon-shot img { display: block; width: 100%; height: auto; }
.card .recon-shot { margin-bottom: 16px; }

/* ---- Cerulean closing / exclusivity band ---- */
.band { background: var(--accent); color: #fff; overflow: hidden; }
.band .marquee { border-bottom: 1px solid rgba(255,255,255,.25); overflow: hidden; white-space: nowrap; }
.band .marquee div { display: inline-block; padding: 12px 0; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; animation: marquee 26s linear infinite; }
.band .marquee span { padding: 0 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.band-inner { text-align: center; padding: 90px 0; max-width: 720px; margin: 0 auto; }
.band-inner h2 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); }
.band-inner p { color: rgba(255,255,255,.9); margin: 18px auto 28px; max-width: 560px; }

/* ---- Badges ---- */
.badges { display: flex; gap: 18px; align-items: center; margin-top: 24px; }
.badges img { height: 72px; width: auto; }

/* ---- Steps ---- */
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step .num { font-family: var(--font-mono); font-size: 14px; color: var(--accent-text); }
.step h3 { font-size: 19px; margin: 8px 0 8px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 300; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--text-2); font-size: 15px; padding: 0 2px 24px; max-width: 700px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-main { display: grid; grid-template-columns: 1fr 1.9fr; gap: 48px; padding: 64px 0 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 360px; }
.footer-brand .brand { font-size: 18px; }
.footer-tag { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--text-3); font-weight: 500; margin: 0 0 4px; }
.footer-col a { font-size: 14px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 22px 0 44px; border-top: 1px solid var(--line); }
.footer-base .nap, .footer-base .legal { font-size: 12.5px; color: var(--text-3); margin: 0; }
.footer-base .legal a { color: var(--text-2); }
.footer-base .legal a:hover { color: var(--text); }

/* Back-to-top button */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, border-color .15s ease, color .15s ease; box-shadow: var(--shadow-lg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent-text); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; } }

/* ============================================================
   MOTION + RICHER VISUALS  (additive; brand tokens only)
   ============================================================ */

/* ---- Scroll reveal (opt-in via [data-anim] on <html>, set by reveal.js).
   No JS / reduced-motion => nothing is hidden. ---- */
html[data-anim] .reveal { opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
html[data-anim] .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.65,.25,1), transform .7s cubic-bezier(.2,.65,.25,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html[data-anim] .hero-inner > * { opacity: 0; transform: translateY(16px); animation: heroRise .8s cubic-bezier(.2,.65,.25,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + .05s); }
@keyframes heroRise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html[data-anim] .reveal, html[data-anim] .reveal.in,
  html[data-anim] .hero-inner > * { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---- Hover life on cards ---- */
.card { transition: transform .28s cubic-bezier(.2,.65,.25,1), border-color .28s ease, box-shadow .28s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.eeat:hover .label .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Project shots: zoom on hover, subtle top sheen */
.project .shot { position: relative; overflow: hidden; }
.project .shot img { transition: transform .5s cubic-bezier(.2,.65,.25,1); }
.project:hover .shot img { transform: scale(1.045); }
.project .shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%, transparent 75%, rgba(0,0,0,.10));
}
.project .domain { transition: color .2s ease, letter-spacing .2s ease; }
.project:hover .domain { letter-spacing: .2px; }

/* Browser-framed thumbnail inside a project card (homepage + work grid) */
.project .browser { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.project .browser .viewport { aspect-ratio: 16/11; overflow: hidden; }
.project .browser .viewport img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s cubic-bezier(.2,.65,.25,1); }
.project:hover .browser .viewport img { transform: scale(1.045); }

/* Branded placeholder for shots without a screenshot yet */
.shot.brand {
  position: relative;
  background:
    radial-gradient(120% 120% at 18% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
}
.shot.brand::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px;
  transform: translate(-50%,-58%); background: color-mix(in srgb, var(--accent) 85%, #fff);
  clip-path: var(--bolt); opacity: .9;
}
.shot.brand .ph { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; }

/* ---- Stats band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.stat { background: var(--surface); padding: 34px 26px; text-align: center; }
.stat .kpi { font-family: var(--font-sans); font-weight: 600; font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.stat .kpi .u { color: var(--accent); }
.stat .lbl { display: block; margin-top: 12px; font-size: 14px; color: var(--text-2); line-height: 1.4; }

/* ---- Media / photo blocks ---- */
.figure { position: relative; border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure.tall { aspect-ratio: 4/5; }
.figure.wide { aspect-ratio: 16/10; }
.figure .cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: #fff; background: color-mix(in srgb, var(--accent) 90%, #000); padding: 6px 12px; border-radius: var(--r-pill);
}

/* About: photo + copy split */
.about-split { display: grid; grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: center; }
.about-split .figure { aspect-ratio: 5/4; }

/* Real headshots inside the founder avatar */
.person .avatar { width: 72px; height: 72px; overflow: hidden; padding: 0; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ============================================================
   CASE STUDY — browser frames + layout
   ============================================================ */

/* Browser chrome mock (no images) */
.browser { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.browser .chrome { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser .dots { display: inline-flex; gap: 7px; flex: none; }
.browser .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser .dots i:nth-child(1) { background: #FF5F57; }
.browser .dots i:nth-child(2) { background: #FEBC2E; }
.browser .dots i:nth-child(3) { background: #28C840; }
.browser .url { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 14px; max-width: 320px; margin: 0 auto; }
.browser .url .lock { width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid var(--text-3); border-bottom: none; position: relative; }
.browser .viewport { display: block; background: var(--surface); }
.browser .viewport img { width: 100%; display: block; }

/* Scroll-to-reveal full-page screenshot */
.browser.scroll .viewport { height: clamp(360px, 56vh, 560px); overflow: hidden; position: relative; }
.browser.scroll .viewport img { transition: transform 7s cubic-bezier(.33,0,.4,1); }
.browser.scroll:hover .viewport img,
.browser.scroll.playing .viewport img { transform: translateY(calc(-100% + clamp(360px, 56vh, 560px))); }
.browser .scrollhint { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: color-mix(in srgb, var(--accent) 92%, #000); padding: 5px 11px; border-radius: var(--r-pill); opacity: .9; pointer-events: none; }
.browser.scroll:hover .scrollhint { opacity: 0; transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .browser.scroll .viewport img { transition: none; }
  .browser.scroll:hover .viewport img, .browser.scroll.playing .viewport img { transform: none; }
}

/* Branded placeholder inside a browser frame (for sites without a screenshot yet) */
.browser .ph-fill { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 18% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%), linear-gradient(135deg, var(--surface), var(--surface-2)); }
.browser .ph-fill::before { content: ""; width: 60px; height: 60px; background: color-mix(in srgb, var(--accent) 85%, #fff); clip-path: var(--bolt); opacity: .9; transform: translateY(-12px); }
.browser .ph-fill span { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); }

/* Case study layout */
.case-hero { padding: 56px 0 8px; }
.breadcrumb { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); margin: 0 0 18px; }
.breadcrumb a { color: var(--accent-text); }
.case-hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.02; margin: 0 0 16px; max-width: 16ch; color: var(--text); }
.case-hero .tagline { font-size: 20px; color: var(--text-2); max-width: 60ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: 40px 0; }
.case-meta > div { flex: 1 1 150px; background: var(--surface); padding: 22px 24px; }
.case-meta .k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); display: block; margin-bottom: 8px; }
.case-meta .v { font-size: 15px; font-weight: 500; color: var(--text); }
.case-prose { max-width: 720px; }
.case-prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 18px; }
.case-prose p { color: var(--text-2); font-size: 17px; margin: 0 0 18px; }
.case-prose p:last-child { margin-bottom: 0; }
.figcap { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); margin-top: 14px; text-align: center; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; }
.result .kpi { font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent-text); line-height: 1; }
.result .lbl { display: block; margin-top: 12px; color: var(--text-2); font-size: 15px; }
@media (max-width: 820px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
}

/* ---- Photo hero treatment (background image + dark overlay, white text) ---- */
.hero-photo .hero-bg { background-size: cover; background-position: center; }
.hero-photo .hero-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, var(--glow), transparent 70%),
    linear-gradient(90deg, rgba(11,11,11,.62) 0%, rgba(11,11,11,.32) 55%, rgba(11,11,11,.10) 100%),
    linear-gradient(180deg, rgba(11,11,11,.16), rgba(11,11,11,.52));
}
[data-theme="light"] .hero-photo .hero-bg::after {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(14,143,230,.22), transparent 70%),
    linear-gradient(90deg, rgba(11,11,11,.66) 0%, rgba(11,11,11,.36) 55%, rgba(11,11,11,.12) 100%),
    linear-gradient(180deg, rgba(11,11,11,.18), rgba(11,11,11,.56));
}
.hero-photo .hero-inner, .hero-photo h1 { color: #fff; }
.hero-photo .lead { color: rgba(255,255,255,.86); }
.hero-photo .eyebrow { color: #8FD0FF; }

/* ---- Next / previous pager card ---- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 32px; box-shadow: var(--shadow-sm); transition: transform .26s cubic-bezier(.2,.65,.25,1), border-color .26s ease, box-shadow .26s ease; }
.pager:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.pager .pager-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); display: block; margin-bottom: 8px; }
.pager .pager-t { font-size: clamp(20px, 3vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.pager .pager-link { color: var(--accent-text); font-weight: 500; white-space: nowrap; flex: none; }
@media (max-width: 560px) { .pager { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ============================================================
   BLOG / ARTICLE
   ============================================================ */
.prose { max-width: 720px; margin: 0 auto; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 46px 0 16px; }
.prose h3 { font-size: 20px; letter-spacing: -0.01em; margin: 34px 0 12px; }
.prose p { color: var(--text-2); font-size: 17px; line-height: 1.75; margin: 0 0 20px; }
.prose ul, .prose ol { color: var(--text-2); font-size: 17px; line-height: 1.7; margin: 0 0 22px; padding-left: 22px; }
.prose li { margin: 0 0 10px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--text); font-size: 19px; }
/* Data tables in article prose */
.prose .table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose thead th { text-align: left; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-3); font-weight: 500; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.prose tbody td { padding: 14px 18px; color: var(--text-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { color: var(--text); font-weight: 500; }
/* Stat callouts */
.prose .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 30px 0; }
.prose .stat { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-card); padding: 22px 24px; }
.prose .stat-num { font-size: 38px; font-weight: 600; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.prose .stat-label { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Article byline (theme-aware; white when over a photo hero) */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.byline .who { line-height: 1.3; }
.byline .who b { display: block; font-weight: 600; color: var(--text); font-size: 15px; }
.byline .who span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); }
.hero-photo .byline img { border-color: rgba(255,255,255,.25); }
.hero-photo .byline .who b { color: #fff; }
.hero-photo .byline .who span { color: rgba(255,255,255,.75); }

/* Coded graphic cover (generative SVG, no images) */
.blog-cover { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #141414, #0c0c0c); box-shadow: var(--shadow-lg); height: clamp(220px, 34vw, 360px); }
[data-theme="light"] .blog-cover { background: linear-gradient(135deg, #141414, #0c0c0c); }
.blog-cover svg { display: block; width: 100%; height: 100%; }
@keyframes cvpulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes cvdrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cv-pulse { animation: cvpulse 3s ease-in-out infinite; }
.cv-drift { animation: cvdrift 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .cv-pulse, .cv-drift { animation: none; } }

/* Author bio card */
.author-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; max-width: 720px; margin: 52px auto 0; }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card .name { font-weight: 600; }
.author-card .role { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--accent-text); margin: 2px 0 10px; }
.author-card p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* Blog index cards (coded-graphic cover + body) */
.post { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post .cover { height: 156px; overflow: hidden; background: linear-gradient(135deg, #141414, #0c0c0c); border-bottom: 1px solid var(--line); }
[data-theme="light"] .post .cover { background: linear-gradient(135deg, #141414, #0c0c0c); }
.post .cover svg { display: block; width: 100%; height: 100%; }
.post-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post .meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--accent-text); }
.post h3 { font-size: 19px; letter-spacing: -0.01em; margin: 10px 0 12px; }
.post .by { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-3); margin-top: auto; }

/* Category filter chips */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 780px; margin: 0 auto 40px; }
.chip { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.chip.active { color: #fff; background: var(--c, var(--accent)); border-color: transparent; }
.chip.active .cdot { background: rgba(255,255,255,.85); }
.post.hide { display: none; }
.blog-featured.hide { display: none; }

/* Featured "cornerstone" post */
.blog-featured { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); margin: 0 0 40px; }
.blog-featured .bf-cover { position: relative; min-height: 340px; display: block; }
.blog-featured .bf-body { padding: 40px 44px; display: flex; flex-direction: column; }
.blog-featured .meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-text); }
.blog-featured h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; line-height: 1.07; margin: 14px 0 14px; text-wrap: balance; }
.blog-featured h2 a { color: var(--text); }
.blog-featured p { color: var(--text-2); font-size: 16px; line-height: 1.6; margin: 0 0 26px; }
.blog-featured .bf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }
.byline { display: inline-flex; align-items: center; gap: 12px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.byline .bn { display: block; font-weight: 600; font-size: 14px; }
.byline .bd { display: block; font-size: 12.5px; color: var(--text-3); }
.readmore { color: var(--accent-text); font-weight: 500; white-space: nowrap; }
.readmore:hover { color: var(--accent); }
@media (max-width: 760px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured .bf-cover { min-height: 200px; } .blog-featured .bf-body { padding: 28px 26px; } }

/* Numbered, category-colored post covers */
.post a.cover { display: block; text-decoration: none; }
.post .cover { height: 188px; }
.cv-num { position: absolute; top: 16px; left: 20px; font-family: var(--font-mono); font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: rgba(255,255,255,.92); }
.cv-tag { position: absolute; bottom: 16px; left: 20px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.92); }
.cover-bolt.lg { width: 140px; height: 140px; right: -16px; bottom: -16px; opacity: .14; }

/* Pagination (the_posts_pagination output) — shared across blog + archives */
.pagination { display: flex; justify-content: center; margin-top: 52px; }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--r-chip); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.pagination a.page-numbers:hover { border-color: var(--text-3); color: var(--text); }
.pagination .page-numbers.current { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.pagination .page-numbers.dots { border: 0; background: transparent; min-width: 0; padding: 0 4px; }
.pagination .page-numbers.prev, .pagination .page-numbers.next { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; transition: width .08s linear; }

/* Article two-column layout */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: start; max-width: 1080px; margin: 0 auto; }
.article-main { min-width: 0; }
.article-main .prose { max-width: none; margin: 0; }
.article-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; gap: 36px; } .article-aside { position: static; } }

/* TL;DR + table of contents */
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-card); padding: 24px 26px; margin: 0 0 40px; }
.tldr .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-text); margin-bottom: 12px; }
.tldr p { color: var(--text-2); font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.tldr .toc { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.tldr .toc a { display: inline-flex; gap: 9px; color: var(--text); font-size: 14.5px; text-decoration: none; align-items: baseline; }
.tldr .toc a::before { content: "\2192"; color: var(--accent); }
.tldr .toc a:hover { color: var(--accent-text); }
.prose h2 { scroll-margin-top: 86px; }

/* Sidebar cards */
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; }
.aside-card h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); margin: 0 0 14px; }
.aside-card.author .name { font-weight: 600; }
.aside-card.author .row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.aside-card.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.aside-card.author .role { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-text); }
.aside-card.author p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 0; }
.sources { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sources a { color: var(--text); font-size: 14px; line-height: 1.4; text-decoration: none; display: inline-flex; gap: 8px; }
.sources a::before { content: "\2197"; color: var(--accent); flex: none; }
.sources a:hover { color: var(--accent-text); }

/* Share buttons */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row a, .share-row button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease; padding: 0; }
.share-row a:hover, .share-row button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.share-row svg { width: 16px; height: 16px; fill: currentColor; }
.share-copy.copied { border-color: var(--positive); color: var(--positive); }
/* Article main column: let prose fill the column, anchors clear the sticky nav */
.article-grid .prose { max-width: none; margin: 0; }
.prose h2 { scroll-margin-top: 90px; }
.aside-card .further { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.aside-card .further a { color: var(--text); font-size: 14px; line-height: 1.4; text-decoration: none; }
.aside-card .further a:hover { color: var(--accent-text); }
/* Sidebar sources / references */
.aside-card .sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.aside-card .sources a { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); font-size: 13.5px; line-height: 1.45; text-decoration: none; }
.aside-card .sources a:hover { color: var(--accent-text); }
.aside-card .sources .ext { width: 11px; height: 11px; color: var(--text-3); flex: none; align-self: center; }
/* Sidebar mini-CTA to Services */
.aside-card.cta-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }
.btn.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Narrow signpost CTA strip (e.g. "Run a law firm?" on Services) */
.cta-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.cta-strip p { margin: 0; color: var(--text-2); font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
.cta-strip p strong { color: var(--text); font-weight: 600; }
.cta-strip .bolt.sm { width: 14px; height: 14px; background: var(--accent); clip-path: var(--bolt); display: inline-block; flex: none; }
@media (max-width: 600px) { .cta-strip-row { flex-direction: column; align-items: flex-start; gap: 14px; } }
/* Compact "Keep reading" row */
.readnext { background: var(--surface); }
.readnext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.readnext .rn { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--accent)); border-radius: var(--r-card); padding: 22px 24px; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.readnext .rn:hover { transform: translateY(-2px); border-color: var(--text-3); }
.readnext .rn .cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-text); }
.readnext .rn h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.25; margin: 10px 0 16px; color: var(--text); }
.readnext .rn .rn-go { margin-top: auto; color: var(--accent-text); font-weight: 500; font-size: 14px; }
@media (max-width: 820px) { .readnext-grid { grid-template-columns: 1fr; } }
.copied { position: absolute; font-size: 11px; color: var(--positive); margin-top: 44px; }

/* Related articles */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .related-grid { grid-template-columns: 1fr; } }

/* Accessible focus ring */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Service tier deliverables */
.tier .deliv { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tier .deliv li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.tier .deliv li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); }
.field input, .field textarea { font-family: var(--font-sans); font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 12px 14px; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-detail { display: flex; flex-direction: column; gap: 14px; }
.contact-detail .line { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 15px; }
.contact-detail .line .dot { width: 7px; height: 7px; }

/* Gravity Forms — adopt the brand form styling (GF's own theme CSS is disabled
   via the gform_disable_form_theme_css filter so these win cleanly). */
.gform_wrapper .gform_fields { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.gform_wrapper .gfield { display: flex; flex-direction: column; gap: 7px; }
.gform_wrapper .gfield_label { font-family: var(--font-mono) !important; font-size: 11px !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: 1px; color: var(--text) !important; margin: 0 0 2px !important; opacity: 1 !important; }
.gform_wrapper .gfield_required { color: var(--text-2) !important; margin-left: 5px; font-weight: 500; }
.gform_wrapper .ginput_container { margin: 0; }
.gform_wrapper input[type=text],
.gform_wrapper input[type=email],
.gform_wrapper input[type=tel],
.gform_wrapper input[type=url],
.gform_wrapper input[type=number],
.gform_wrapper textarea,
.gform_wrapper select {
  font-family: var(--font-sans) !important; font-size: 16px !important; color: var(--text) !important;
  background: var(--surface-2) !important; border: 1px solid var(--line) !important;
  border-radius: var(--r-chip) !important; padding: 14px 16px !important; width: 100%; box-sizing: border-box;
  -webkit-appearance: none; appearance: none; box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gform_wrapper textarea { min-height: 140px !important; resize: vertical; line-height: 1.6; }
.gform_wrapper input:hover, .gform_wrapper textarea:hover, .gform_wrapper select:hover { border-color: var(--text-3) !important; }
.gform_wrapper input:focus, .gform_wrapper textarea:focus, .gform_wrapper select:focus {
  outline: none; border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(14,143,230,.22) !important;
}
.gform_wrapper input::placeholder, .gform_wrapper textarea::placeholder { color: var(--text-3); opacity: 1; }
/* the native select arrow is invisible on a dark fill: draw our own caret */
.gform_wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.gform_wrapper select { color-scheme: dark; }
[data-theme="light"] .gform_wrapper select { color-scheme: light; }
.gform_wrapper select option { background: var(--surface); color: var(--text); }
.gform_wrapper .gform_footer { margin: 24px 0 0 !important; padding: 0 !important; }
.gform_wrapper .gform_button,
.gform_wrapper input[type=submit] {
  font-family: var(--font-sans) !important; font-weight: 500 !important; font-size: 16px !important;
  background: var(--accent) !important; color: var(--on-accent) !important; border: none !important;
  border-radius: var(--r-pill) !important; padding: 14px 32px !important; width: auto !important;
  cursor: pointer; transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px -8px rgba(14,143,230,.6) !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type=submit]:hover { filter: brightness(1.07); transform: translateY(-1px); }
.gform_wrapper .gform_button:active,
.gform_wrapper input[type=submit]:active { transform: none; }
.gform_wrapper .gfield_description.validation_message,
.gform_wrapper .gform_validation_errors { color: var(--negative); font-size: 13px; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea, .gform_wrapper .gfield_error select { border-color: var(--negative); }
.gform_confirmation_message { color: var(--text-2); font-size: 16px; line-height: 1.6; }

/* Case study "more from the build" gallery */
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-gallery .cg-item { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 11; box-shadow: var(--shadow-sm); }
.case-gallery .cg-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: object-position 9s cubic-bezier(.33,0,.4,1); }
.case-gallery .cg-item:hover img { object-position: bottom center; }
@media (prefers-reduced-motion: reduce) { .case-gallery .cg-item img { transition: none; } .case-gallery .cg-item:hover img { object-position: top center; } }
@media (max-width: 700px) { .case-gallery { grid-template-columns: 1fr; } }

/* "Rather just reach out?" list */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; font-size: 15px; color: var(--text); }
.contact-list .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--text-3); }
.contact-list a { color: var(--accent-text); }
.contact-list a:hover { color: var(--text); }

/* Social icon row (footer + contact) */
.social-icons { display: inline-flex; align-items: center; gap: 14px; }
.social-icons a { display: inline-flex; color: var(--text-3); transition: color .15s ease, transform .15s ease; }
.social-icons a:hover { color: var(--accent-text); transform: translateY(-1px); }
.social-label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-2); margin-bottom: 12px; }

/* Serving the Triangle */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.area-chips span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px; }
.area-chips span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.map-frame { margin-top: 36px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 16/6; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Subtle texture behind the closing band (static, restrained) */
.band .band-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .22; }
.band .marquee, .band .band-inner { position: relative; z-index: 1; }

/* ---- Glow accents ---- */
.glow-section { position: relative; overflow: hidden; }
.glow-section::before {
  content: ""; position: absolute; top: -10%; right: -8%; width: 480px; height: 480px; pointer-events: none;
  background: radial-gradient(circle, var(--glow), transparent 65%); filter: blur(8px);
}

/* Animated underline for text links with the › glyph */
.btn-text { position: relative; }

/* ============================================================
   HOMEPAGE PERSONALITY LAYER  (scoped to body.home — other pages unaffected)
   Asymmetric hero, left-aligned section heads, offset work feature.
   Keeps the brand: cerulean spark, #0B0B0B/#161616 ladder, Hanken+Geist, bolt.
   ============================================================ */
.home .hero-inner{max-width:none;padding:70px var(--gutter) 44px}
.home .hero::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);background-size:26px 26px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 72%);mask-image:linear-gradient(180deg,#000,transparent 72%);opacity:.55;pointer-events:none}
.home-hero{position:relative;display:grid;grid-template-columns:1.12fr .88fr;gap:48px;align-items:center}
.home-hero h1{font-size:clamp(38px,5.8vw,66px);line-height:.99;letter-spacing:-.04em;margin:20px 0 0;text-wrap:balance}
.home-hero h1 .pop{color:var(--accent);white-space:nowrap}
.home-hero .lead{margin-top:22px;max-width:46ch}
.home-hero .hero-cta{margin-top:30px}
.home-hero .stamp{margin-top:30px;display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;font-family:var(--font-mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-3)}
.home-hero .stamp .dot{width:5px;height:5px}

/* offset live-site cards */
.h-stack{position:relative;min-height:360px}
.h-stack .shotcard{position:absolute;width:300px;max-width:78%;border-radius:var(--r-card);overflow:hidden;border:1px solid var(--line-2,rgba(255,255,255,.18));background:var(--surface);box-shadow:0 30px 60px -24px rgba(0,0,0,.8)}
.h-stack .shotcard img{width:100%;height:170px;object-fit:cover;object-position:top}
.h-stack .shotcard .cap{display:flex;justify-content:space-between;align-items:center;padding:10px 14px}
.h-stack .shotcard .cap b{font-size:13px}
.h-stack .shotcard .cap small{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3)}
.h-stack .one{top:8px;left:0;transform:rotate(-3.5deg)}
.h-stack .two{top:160px;right:0;transform:rotate(3deg)}
.h-stack .livechip{position:absolute;top:-6px;right:34px;z-index:3;font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;background:var(--accent);color:#fff;padding:7px 12px;border-radius:var(--r-pill);box-shadow:0 8px 24px -6px rgba(14,143,230,.6)}

/* left-aligned section heads on home */
.home .section-head{margin:0 0 40px;text-align:left;max-width:780px}
.home .section-head .muted{margin-left:0}
.home .ixlabel{font-family:var(--font-mono);font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--text-3);display:flex;align-items:center;gap:10px;margin-bottom:10px}
.home .ixlabel .n{color:var(--accent)}

/* bigger tier numerals + hover nudge */
.home .tier{grid-template-columns:104px 1fr;align-items:flex-start;transition:padding-left .2s ease}
.home .tier:hover{padding-left:10px}
.home .tier .num{font-size:58px}

/* asymmetric work feature: one large + two stacked */
.home .work-feature{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}
.home .work-feature .col2{display:grid;gap:18px}
.home .work-feature .project .shot{aspect-ratio:auto}
.home .work-feature .lg .shot{height:320px}
.home .work-feature .sm .shot{height:150px}
.home .work-feature .lg h3{font-size:24px}

/* footer coordinate stamp */
.footer .coord{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;color:var(--text-3)}

@media (max-width:860px){
  .home-hero{grid-template-columns:1fr;gap:30px}
  .h-stack{display:none}
  .home .work-feature{grid-template-columns:1fr}
  .home .work-feature .lg .shot{height:220px}
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .recon-grid, .cs-points, .post-wrap { grid-template-columns: 1fr; }
  .recon-grid { gap: 28px; }
  .post-aside { position: static; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .tier { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .tier .num { font-size: 32px; }
}

/* Mobile header: collapse the nav + actions behind a toggle */
@media (max-width: 880px) {
  .nav-row { padding: 16px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 22px;
    margin: 0; padding: 22px 24px 28px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.nav-open .nav-menu { display: flex; }
  .nav-menu .nav-links { flex-direction: column; gap: 18px; align-items: stretch; }
  .nav-menu .nav-links a { font-size: 16px; }
  /* Dropdowns expand inline on mobile so every page is visible and tappable */
  .nav-menu .nav-item { display: block; }
  .nav-menu .nav-top { font-size: 16px; display: flex; align-items: center; justify-content: space-between; }
  .nav-menu .nav-top .caret { display: inline-block; opacity: .7; }
  .nav-menu .nav-dropdown {
    display: none;
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 10px 0 6px; padding: 4px 0 4px 14px;
    background: transparent; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-menu .nav-dropdown::before, .nav-menu .nav-dropdown::after { display: none; }
  .nav-menu .nav-item.open > .nav-dropdown { display: block; }
  .nav-menu .nd-eyebrow { padding-left: 12px; color: var(--accent-text); }
  .nav-menu .nd-cols { grid-template-columns: 1fr; }
  .nav-menu .nd-recon { grid-template-columns: 1fr; gap: 0; }
  .nav-menu .nd-rcol-b { border-left: 0; padding-left: 0; }
  .nav-menu .recon-item { width: 100%; }
  /* Inline (mobile) menu sits on the theme surface, so reset the dark-glass text
     colors back to theme tokens for contrast. */
  .nav-menu .nd-label { color: var(--text); }
  .nav-menu .nd-item:hover .nd-label { color: var(--accent-text); }
  .nav-menu .nd-desc { color: var(--text-2); }
  .nav-menu .nd-item:hover { background: transparent; }
  .nav-menu .nd-item.slim { color: var(--text-2); }
  .nav-menu .nd-item.slim:hover { color: var(--accent-text); background: transparent; }
  .nav-menu .nd-all { color: var(--accent-text); border-top-color: var(--line); }
  .nav-menu .nav-right { flex-direction: column; align-items: stretch; gap: 14px; }
  .nav-menu .nav-right .seg { align-self: flex-start; }
  .nav-menu .recon-chip { justify-content: center; }
  .nav-menu .btn-primary { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* Footer responsive */
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 32px; }
  .footer-brand { max-width: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 0 40px; }
}

/* Mobile breathing room: wider gutter + a touch more vertical air */
@media (max-width: 600px) {
  body { overflow-x: hidden; }
  :root { --gutter: 30px; }
  .hero-inner { padding: 132px var(--gutter) 88px; }
  .home .hero-inner { padding: 132px var(--gutter) 76px; }
  .section { padding: 72px 0; }
}
/* Tablet / iPad: give heroes more vertical air */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero-inner { padding: 120px var(--gutter) 96px; }
  .home .hero-inner { padding: 120px var(--gutter) 84px; }
}
@media (max-width: 380px) {
  :root { --gutter: 22px; }
}

/* ---- Page-template components (consolidated from per-page styles) ---- */
/* About: "How we work" values list */
.vals { display: flex; flex-direction: column; max-width: 820px; margin: 0 auto; }
.val { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.val:first-child { border-top: 0; }
.val .vn { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--accent); letter-spacing: -.02em; line-height: 1.5; }
.val h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.val p { font-size: 15.5px; line-height: 1.6; color: var(--text-2); margin: 0; }
@media (max-width: 560px) { .val { grid-template-columns: 44px 1fr; gap: 16px; } }

/* Law-firms sell sheet: "what's included" two-column list */
.ls-incl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; max-width: 880px; margin: 0 auto; }
.ls-incl div { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.ls-incl .b { width: 9px; height: 9px; margin-top: 6px; background: var(--accent); clip-path: var(--bolt); flex: none; }
@media (max-width: 680px) { .ls-incl { grid-template-columns: 1fr; } }

/* ---- Services page components ---- */
  .svc-hero { position: relative; overflow: hidden; height: 540px; }
  .svc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
  .svc-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,8,.55) 0%, rgba(7,7,8,.36) 38%, rgba(7,7,8,.92) 100%); }
  .svc-hero .inner { position: absolute; left: 0; right: 0; bottom: 56px; }
  .svc-hero .eyebrow { color: #fff; }
  .svc-hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: .99; font-weight: 600; letter-spacing: -.04em; margin: 0 0 22px; max-width: 900px; color: #fff; text-wrap: balance; }
  .svc-hero p { font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.86); max-width: 640px; margin: 0; letter-spacing: -.01em; }

  .svc-tiers { display: grid; gap: 24px; }
  .svc-tier { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 48px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .svc-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
  .svc-tier .head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
  .svc-tier .num { flex: none; }
  .svc-tier .num { font-family: var(--font-mono); font-size: 48px; font-weight: 500; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
  .svc-tier .tname { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
  .svc-tier h3 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 600; letter-spacing: -.025em; margin: 0; }
  .svc-tier .inc { font-size: 14px; font-weight: 500; color: var(--accent-text); margin: 0 0 16px; }
  .svc-tier .desc { font-size: 17px; line-height: 1.65; color: var(--text-2); margin: 0 0 32px; max-width: 720px; }
  .svc-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
  .svc-checks div { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--text); }
  .svc-checks .dia { width: 9px; height: 9px; background: var(--accent); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); flex: none; }
  .svc-note { font-size: 14px; color: var(--text-3); margin: 18px 0 0; }

  .svc-process { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; }
  .svc-step { position: relative; padding-left: 54px; }
  .svc-step .n { position: absolute; left: 0; top: -4px; font-family: var(--font-mono); font-size: 32px; font-weight: 500; color: var(--accent); }
  .svc-step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
  .svc-step p { font-size: 16px; line-height: 1.65; color: var(--text-2); margin: 0; }

  .svc-recon { position: relative; overflow: hidden; padding: 96px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .svc-recon .glow { position: absolute; top: -180px; right: -100px; width: 720px; height: 560px; background: radial-gradient(ellipse 50% 50% at 60% 40%, var(--glow), transparent 70%); pointer-events: none; }
  .svc-recon .grid { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; align-items: center; }
  .svc-recon .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 980px; background: var(--accent); margin-bottom: 22px; }
  .svc-recon .badge .bolt { width: 12px; height: 12px; background: #fff; clip-path: var(--bolt); }
  .svc-recon .badge span { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; }
  .svc-recon h2 { font-size: clamp(30px, 4.2vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 18px; text-wrap: balance; }
  .svc-recon .lead { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0 0 24px; max-width: 480px; }
  .svc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; max-width: 480px; }
  .svc-chips span { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 980px; padding: 8px 15px; }
  .svc-chips i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .svc-shot { position: relative; }
  .svc-frame { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .svc-frame .chrome { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
  .svc-frame .chrome i { width: 10px; height: 10px; border-radius: 50%; }
  .svc-frame .chrome .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-left: 10px; }
  .svc-frame img { width: 100%; display: block; }

  @media (max-width: 860px) {
    .svc-recon .grid { grid-template-columns: 1fr; gap: 40px; }
    .svc-process { grid-template-columns: 1fr; gap: 32px; }
  }
  @media (max-width: 720px) {
    .svc-hero { height: 460px; }
    .svc-tier { padding: 32px 24px; }
    .svc-checks { grid-template-columns: 1fr; }
  }

/* ---- WP blog covers (category-colored decorative) ---- */
.post .cover, .blog-cover { position: relative; }
.cover-bolt { position: absolute; right: 18px; bottom: 14px; width: 30px; height: 30px; background: #fff; opacity: .16; clip-path: var(--bolt); }

/* ---- Hero photo: keep headline/lead off the bright side of the image ---- */
.hero-photo .hero-inner { max-width: 1200px; }
.hero-photo .hero-inner h1 { max-width: 15ch; }
.hero-photo .hero-inner .lead { max-width: 540px; }
.hero-photo .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(11,11,11,.78) 0%, rgba(11,11,11,.45) 48%, rgba(11,11,11,.08) 100%),
    linear-gradient(180deg, rgba(11,11,11,.20), rgba(11,11,11,.55));
}
[data-theme="light"] .hero-photo .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(11,11,11,.80) 0%, rgba(11,11,11,.48) 48%, rgba(11,11,11,.10) 100%),
    linear-gradient(180deg, rgba(11,11,11,.22), rgba(11,11,11,.58));
}

/* Recon "What you get": crop the dashboard shots to a window and slow-pan them
   on hover (the dashboard appears to scroll), with a gentle lift + cerulean glow. */
.recon-features .card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.recon-features .card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 22px 54px -26px rgba(14,143,230,.5); }
.recon-features .recon-shot { aspect-ratio: 16 / 11; overflow: hidden; }
.recon-features .recon-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: object-position 2.6s cubic-bezier(.22,.61,.18,1), transform .5s ease; }
.recon-features .card:hover .recon-shot img { object-position: bottom center; transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) { .recon-features .recon-shot img, .recon-features .card { transition: none; } .recon-features .card:hover .recon-shot img { object-position: top center; transform: none; } }

/* Recon "What you get" bento: one large lead feature + a row of three */
.recon-bento { display: grid; gap: 20px; }
.recon-bento .bento-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recon-bento .feat-lg { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.recon-bento .feat-lg .recon-shot { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; height: 100%; min-height: 340px; margin: 0; }
.recon-bento .feat-lg .recon-shot img { height: 100%; }
.recon-bento .feat-lg .feat-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.recon-bento .feat-lg .feat-body h3 { font-size: clamp(22px, 2.6vw, 28px); }
.recon-bento .feat-lg .feat-body p { font-size: 16px; }
@media (max-width: 860px) {
  .recon-bento .bento-row { grid-template-columns: 1fr; }
  .recon-bento .feat-lg { grid-template-columns: 1fr; }
  .recon-bento .feat-lg .recon-shot { min-height: 0; aspect-ratio: 16 / 11; }
  .recon-bento .feat-lg .feat-body { padding: 28px 26px; }
}

/* Legacy/Recon footer (brand + link row + product line). Used by the served
   Recon pages and the static preview pages, which keep the pre-1.4.0 markup. */
.footer .footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 40px 0; }
.footer .footer-row .brand { font-size: 16px; }
.footer .footer-row .footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; margin: 0; }
.footer .footer-row .footer-links a { font-size: 14px; color: var(--text-2); }
.footer .footer-row .footer-links a:hover { color: var(--text); }
.footer .footer-row .footer-links a.foot-recon { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 500; }
.footer .footer-row .footer-links a.foot-recon .bolt { width: 12px; height: 12px; background: var(--accent); clip-path: var(--bolt); display: inline-block; flex: none; }
.footer .footer-row .nap { font-size: 13px; color: var(--text-3); margin-left: auto; }
.footer .footer-row .legal { font-size: 12.5px; color: var(--text-3); width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .footer .footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer .footer-row .nap { margin-left: 0; }
}

/* ============================================================
   Search, sitemap, accessibility, helpful 404  (1.22.0)
   ============================================================ */

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- nav search control --- */
.nav-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--text-2); cursor: pointer;
  padding: 6px; line-height: 0; border-radius: 8px; transition: color .15s ease;
}
.nav-search-toggle:hover { color: var(--text); }
.nav-search-toggle[aria-expanded="true"] { color: var(--accent-text); }

.nav-search {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(20px); -webkit-backdrop-filter: saturate(140%) blur(20px);
}
.nav-search[hidden] { display: none; }
.nav-search .container { padding-top: 14px; padding-bottom: 14px; }

/* --- the search form itself --- */
.scout-search { display: flex; align-items: center; gap: 10px; position: relative; }
.scout-search-ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); line-height: 0; pointer-events: none;
}
.scout-search-input {
  flex: 1 1 auto; min-width: 0;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-pill, 980px);
  padding: 13px 18px 13px 46px; font: inherit; font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.scout-search-input::placeholder { color: var(--text-3); }
.scout-search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.scout-search-go {
  flex: 0 0 auto; background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: var(--r-pill, 980px); padding: 12px 24px;
  font: inherit; font-weight: 500; cursor: pointer; transition: filter .15s ease;
}
.scout-search-go:hover { filter: brightness(1.06); }

.search-refine, .e404-search { max-width: 520px; margin-top: 26px; }
.e404-search { margin-left: auto; margin-right: auto; }

/* --- helpful 404 links --- */
.e404-links {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  margin-top: 26px;
}
.e404-links a { color: var(--text-2); font-size: 15px; }
.e404-links a:hover { color: var(--accent-text); }

/* --- HTML sitemap page --- */
.sitemap { max-width: 860px; }
.sitemap-group { margin-bottom: 48px; }
.sitemap-group > h2 {
  font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em;
  padding-bottom: 12px; margin: 0 0 20px; border-bottom: 1px solid var(--line);
}
.sitemap-cat { font-size: 15px; margin: 26px 0 10px; }
.sitemap-cat a { color: var(--text); }
.sitemap-list { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
@media (max-width: 640px) { .sitemap-list { grid-template-columns: 1fr; } }
.sitemap-list li { line-height: 1.4; }
.sitemap-list a { color: var(--text-2); }
.sitemap-list a:hover { color: var(--accent-text); }
