/* ============================================================
   Bytewren — "Bright Studio" design system
   Light, airy, graphic-rich. Off-white canvas · deep-ink type ·
   teal accent used with intent · ink feature bands for rhythm ·
   one warm coral kept inside graphics only.
   Space Grotesk (display) / Inter (body) / JetBrains Mono (labels).
   Restraint over decoration. Respect prefers-reduced-motion.
   ============================================================ */

/* ---- Design tokens ------------------------------------------------ */
:root {
  /* Light canvas + surfaces */
  --bg:          #fbfcfe;
  --bg-2:        #f3f6fb;
  --surface:     #ffffff;
  --surface-2:   #f6f8fc;
  --border:      #e6eaf1;
  --border-soft: #eef1f6;
  --border-strong:#d9dfe9;

  /* Ink / text levels */
  --ink:    #0d1422;          /* headings */
  --text:   #0d1422;
  --text-2: #525c6b;          /* body grey */
  --text-3: #8a94a3;          /* muted / labels */

  /* Accents — teal primary, coral only inside graphics */
  --accent:        #00bd8c;   /* readable teal on white */
  --accent-bright: #00d9a3;   /* brand teal — graphics/glow */
  --accent-2:      #00a87d;
  --accent-ink:    #00271d;
  --accent-soft:   #e6faf3;   /* teal tint surface */
  --accent-line:   #bdeede;   /* teal hairline */
  --accent-glow:   rgba(0, 217, 163, 0.18);
  --coral:         #ff7a59;   /* warm secondary */
  --coral-2:       #e85d3c;   /* readable coral text/icon on white */
  --coral-soft:    #fff0eb;   /* coral tint surface */
  --coral-line:    #ffd2c4;   /* coral hairline */
  --coral-glow:    rgba(255, 122, 89, 0.16);
  --violet:        #6c5ce7;   /* soft secondary */
  --violet-2:      #5a4bd1;   /* readable violet text/icon on white */
  --violet-soft:   #f0eefe;   /* violet tint surface */
  --violet-line:   #d6cffb;   /* violet hairline */
  --violet-glow:   rgba(108, 92, 231, 0.16);

  /* Type families */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Soft, premium shadows for a light theme */
  --shadow-xs:  0 1px 2px rgba(13, 20, 34, 0.04);
  --shadow-sm:  0 4px 14px rgba(13, 20, 34, 0.05);
  --shadow-md:  0 14px 36px rgba(13, 20, 34, 0.08);
  --shadow-lg:  0 30px 70px rgba(13, 20, 34, 0.10);
  --shadow-teal:0 18px 44px rgba(0, 189, 140, 0.18);

  /* Tokens that flip between themes (defaults = light). Referenced by
     components that need a per-theme value the base token can't give. */
  --ink-band:       var(--ink);          /* ink feature-band background */
  --ink-band-text:  #ffffff;             /* text on the ink band */
  --on-accent:      #ffffff;             /* text on a solid teal button */
  --hero-card:      #ffffff;             /* hero SVG card fills */
  --hero-card-2:    #f6f8fc;             /* hero SVG chrome bar */
  --hero-stroke:    #e6eaf1;             /* hero SVG hairlines */
  --hero-grid:      #eef1f6;             /* hero SVG chart grid */
  --skel-base:      #eef1f6;             /* skeleton shimmer base */
  --skel-mid:       #d6f3ea;             /* skeleton shimmer highlight */
  --wa-green:       #1fab54;             /* WhatsApp brand green */
  --score-good:     #00a87d;
  --score-avg:      #d99100;
  --score-bad:      #e04e3a;
  --err-bg:         #fff1ee;
  --err-border:     #ffd1c5;
  --err-text:       #c0432a;
}

/* ============================================================
   DARK THEME — a deliberate, premium re-map of every token.
   Deep charcoal canvas, elevated surfaces, a teal accent that
   pops against the dark, readable text greys, and soft glows
   instead of the hard light-mode drop shadows.
   ============================================================ */
:root[data-theme="dark"] {
  --bg:          #0b0d12;   /* deep charcoal canvas */
  --bg-2:        #0f1219;
  --surface:     #141821;   /* elevated panels */
  --surface-2:   #1b2029;
  --border:      #262d3a;
  --border-soft: #1e242f;
  --border-strong:#323b4b;

  --ink:    #f2f5fa;        /* headings now light */
  --text:   #e6eaf2;
  --text-2: #aab3c2;        /* body grey */
  --text-3: #7c8696;        /* muted / labels */

  --accent:        #16e0a8; /* teal pops on dark */
  --accent-bright: #2bf0bb;
  --accent-2:      #4cf0c4; /* readable teal text on dark */
  --accent-ink:    #03130d;
  --accent-soft:   #112a23; /* teal-tinted dark surface */
  --accent-line:   #1d4a3c; /* teal hairline */
  --accent-glow:   rgba(43, 240, 187, 0.22);
  --coral:         #ff8a6b;
  --coral-2:       #ff9d83;
  --coral-soft:    #2a1813;
  --coral-line:    #5a2e22;
  --coral-glow:    rgba(255, 138, 107, 0.20);
  --violet:        #8b7bf0;
  --violet-2:      #a99bf5;
  --violet-soft:   #1c1830;
  --violet-line:   #342a55;
  --violet-glow:   rgba(139, 123, 240, 0.22);

  /* Soft glow shadows (cool, not the warm ink shadows of light mode) */
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm:  0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-md:  0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow-lg:  0 34px 80px rgba(0, 0, 0, 0.6);
  --shadow-teal:0 18px 48px rgba(22, 224, 168, 0.28);

  /* The "ink band" in dark mode becomes an elevated, glassy panel
     rather than a near-black slab against a near-black page. */
  --ink-band:       #181d28;
  --ink-band-text:  #f2f5fa;
  --on-accent:      #03130d;   /* dark text reads better on bright teal */
  --hero-card:      #161b24;
  --hero-card-2:    #1b212c;
  --hero-stroke:    #2a3340;
  --hero-grid:      #232b37;
  --skel-base:      #1b2029;
  --skel-mid:       #163b30;
  --wa-green:       #25d366;
  --score-good:     #2bf0bb;
  --score-avg:      #ffce5c;
  --score-bad:      #ff7a6b;
  --err-bg:         #2a1512;
  --err-border:     #5a2a22;
  --err-text:       #ff9d88;
}

/* Smooth cross-fade when toggling themes (disabled for reduced motion). */
:root:not(.no-theme-transition) body,
:root:not(.no-theme-transition) .topbar,
:root:not(.no-theme-transition) .tool-card,
:root:not(.no-theme-transition) .insight-card,
:root:not(.no-theme-transition) nav,
:root:not(.no-theme-transition) .mega,
:root:not(.no-theme-transition) .service-card,
:root:not(.no-theme-transition) .stat-cell,
:root:not(.no-theme-transition) .work-card,
:root:not(.no-theme-transition) .step-card,
:root:not(.no-theme-transition) .price-card,
:root:not(.no-theme-transition) .faq-item,
:root:not(.no-theme-transition) .testi-card,
:root:not(.no-theme-transition) .industry-card,
:root:not(.no-theme-transition) .tech-pill,
:root:not(.no-theme-transition) .audit-box,
:root:not(.no-theme-transition) .quote-wrap,
:root:not(.no-theme-transition) .mini-form,
:root:not(.no-theme-transition) .band-ink,
:root:not(.no-theme-transition) .cta,
:root:not(.no-theme-transition) footer,
:root:not(.no-theme-transition) .bw-chat-panel {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* ---- Reset + base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Ambient canvas: a couple of very soft tinted washes, fixed. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 50% -6%, rgba(0, 217, 163, 0.11), transparent 60%),
    radial-gradient(ellipse 45% 40% at 92% 8%, rgba(108, 92, 231, 0.09), transparent 62%),
    radial-gradient(ellipse 50% 45% at 4% 96%, rgba(255, 122, 89, 0.08), transparent 60%);
  pointer-events: none;
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 60% 45% at 50% -6%, rgba(43, 240, 187, 0.08), transparent 60%),
    radial-gradient(ellipse 45% 40% at 92% 8%, rgba(139, 123, 240, 0.07), transparent 62%),
    radial-gradient(ellipse 50% 45% at 4% 96%, rgba(255, 138, 107, 0.05), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
code, .mono { font-family: var(--font-mono); }
::selection { background: rgba(0, 189, 140, 0.18); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Grain overlay kept as a no-op so the markup hook stays valid but stays clean/bright. */
.grain { display: none; }

/* ---- Graphic primitives ------------------------------------------ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(13, 20, 34, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
}
.divider {
  height: 1px; border: 0; background: var(--border); margin: 0;
}

/* Refined centre-marked divider: a hairline that fades from the edges
   into a small teal diamond in the middle. Decorative only. */
.divider-fancy {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 8px auto 0; max-width: 1160px; padding: 0 24px;
  color: var(--accent);
}
.divider-fancy::before, .divider-fancy::after {
  content: ''; height: 1px; flex: 1; max-width: 240px;
  background: linear-gradient(90deg, transparent, var(--border-strong));
}
.divider-fancy::after { background: linear-gradient(90deg, var(--border-strong), transparent); }
.divider-fancy svg { width: 16px; height: 16px; opacity: 0.9; }

/* Small spot-graphic that sits beside a section eyebrow. */
.spot-accent { display: inline-flex; vertical-align: middle; margin-right: 9px; color: var(--accent); }
.spot-accent svg { width: 18px; height: 18px; }

/* Soft decorative blob anchored to a section (token-tinted, both themes). */
.sec-blob {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
}
:root[data-theme="dark"] .sec-blob { opacity: 0.35; filter: blur(70px); }

/* ---- Scroll reveal (.reveal -> .visible) -------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible, .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  /* Disable the theme cross-fade entirely. */
  :root body, :root nav, :root .mega, :root .service-card, :root .stat-cell,
  :root .work-card, :root .step-card, :root .price-card, :root .faq-item,
  :root .testi-card, :root .industry-card, :root .tech-pill, :root .audit-box,
  :root .quote-wrap, :root .mini-form, :root .band-ink, :root .cta,
  :root footer, :root .bw-chat-panel { transition: none !important; }
}

/* ============================================================
   Nav
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg, rgba(251, 252, 254, 0.82));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}
nav, .nav-inner { overflow: visible; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 18px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo span { color: var(--accent); }
.logo .mark { width: 42px; height: 24px; flex-shrink: 0; color: var(--ink); }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.005em;
  margin-left: auto;
  align-items: center;
}
.nav-links a { transition: color 0.18s; position: relative; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.22s ease;
}
.nav-links > a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1100px) { .nav-links { gap: 22px; font-size: 0.92rem; } }
@media (max-width: 980px)  { .nav-links { display: none; } }

/* ---- Mega-menu --------------------------------------------------- */
.has-mega { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; color: var(--text-2); transition: color 0.18s;
  font: inherit; font-weight: 500;
}
.nav-trigger:hover { color: var(--ink); }
.nav-trigger .chev { width: 13px; height: 13px; transition: transform 0.24s; }
.has-mega:hover .nav-trigger .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: 100%;
  left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(1080px, 96vw); padding: 30px 32px 24px; margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease; z-index: 200;
}
.mega::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* The theme-transition rule (higher specificity) was overriding .mega's open
   transition, making it pop. Re-declare at matching specificity + later source
   so the dropdown slides/fades smoothly AND still animates theme colors. */
:root:not(.no-theme-transition) .mega {
  transition: opacity 0.26s ease,
              transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.35s ease, border-color 0.35s ease;
}
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 20px; }
@media (max-width: 640px) { .mega-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 16px; } }
.mega-cat { margin-bottom: 16px; }
.mega-cat h6 {
  font-family: var(--font-mono);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin: 0 0 8px; font-weight: 500; white-space: nowrap;
}
.mega-cat a {
  display: block; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.mega-cat a:hover { color: var(--ink); background: var(--accent-soft); }
.mega-cta {
  margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mega-cta p { font-size: 0.9rem; color: var(--text-2); max-width: 460px; }

/* ============================================================
   Mobile nav — hamburger + slide-in drawer
   ============================================================ */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.nav-burger:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.nav-burger .burger-lines { position: relative; width: 20px; height: 14px; display: block; }
.nav-burger .burger-lines span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.nav-burger .burger-lines span:nth-child(1) { top: 0; }
.nav-burger .burger-lines span:nth-child(2) { top: 6px; }
.nav-burger .burger-lines span:nth-child(3) { top: 12px; }
.nav-burger[aria-expanded="true"] .burger-lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-lines span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.mobile-nav.open { visibility: visible; pointer-events: auto; }
.mobile-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 20, 34, 0.28);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(360px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px rgba(13, 20, 34, 0.16);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.mobile-nav-close {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.mobile-nav-close:hover { color: var(--accent); border-color: var(--accent); }
.mobile-nav-close svg { width: 20px; height: 20px; }
.mobile-nav-links { display: flex; flex-direction: column; padding: 12px 14px; gap: 2px; flex: 1; }
.mobile-nav-links > a,
.m-services-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 500; color: var(--text-2);
  background: transparent; font-family: inherit; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-links > a:hover,
.m-services-toggle:hover { background: var(--accent-soft); color: var(--ink); }
.m-services-toggle .chev { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s ease; }
.m-services.open .m-services-toggle .chev { transform: rotate(180deg); }
.m-services-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.m-services.open .m-services-panel { max-height: 320px; }
.m-services-panel a {
  display: block; padding: 11px 14px 11px 28px; border-radius: var(--r-sm);
  font-size: 0.92rem; color: var(--text-3); transition: background 0.15s, color 0.15s;
}
.m-services-panel a:hover { background: var(--accent-soft); color: var(--ink); }
.mobile-nav-foot { padding: 16px 18px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.mobile-nav-foot .btn { flex: 1; text-align: center; }
body.nav-open { overflow: hidden; }

@media (max-width: 980px) { .nav-burger { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-backdrop, .mobile-nav-panel, .m-services-panel,
  .m-services-toggle .chev, .nav-burger .burger-lines span { transition: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  padding: 13px 22px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-teal); background: var(--accent-bright); }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent); color: var(--accent-2); box-shadow: var(--shadow-sm); }

/* WhatsApp icon button */
.wa-btn {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: #1fab54; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.wa-btn:hover { border-color: var(--wa-green); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.wa-btn svg { width: 20px; height: 20px; }

/* Theme toggle button (sun / moon swap) */
.theme-toggle {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.theme-toggle svg { width: 20px; height: 20px; }
.mobile-nav-foot .theme-toggle { width: 48px; height: 48px; }

/* ============================================================
   Hero — split: copy + custom SVG graphic
   ============================================================ */
.hero {
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 720px; height: 620px;
  background: radial-gradient(circle, rgba(0, 217, 163, 0.16) 0%, rgba(108, 92, 231, 0.08) 42%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* A second warm wash on the opposite corner so the hero reads colourful, not flat. */
.hero::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -140px;
  width: 560px; height: 520px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.12) 0%, rgba(108, 92, 231, 0.05) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
:root[data-theme="dark"] .hero::before { background: radial-gradient(circle, rgba(43, 240, 187, 0.12) 0%, rgba(139, 123, 240, 0.07) 42%, transparent 70%); }
:root[data-theme="dark"] .hero::after { background: radial-gradient(circle, rgba(255, 138, 107, 0.08) 0%, rgba(139, 123, 240, 0.05) 45%, transparent 72%); }
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { order: -1; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  margin-bottom: 26px;
}
.eyebrow .dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  margin-right: 9px; vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(0, 189, 140, 0.16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
h1 .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--violet) 55%, var(--coral) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-2); /* fallback */
}
:root[data-theme="dark"] h1 .grad {
  background: linear-gradient(100deg, var(--accent-bright) 0%, var(--violet-2) 55%, var(--coral-2) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: 1.12rem;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Hero custom SVG graphic ------------------------------------- */
.hero-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-art .blob-a { top: 6%; right: -4%; width: 300px; height: 300px; background: rgba(0, 217, 163, 0.20); }
.hero-art .blob-b { bottom: 0%; left: -6%; width: 240px; height: 240px; background: rgba(255, 122, 89, 0.16); }
.hero-svg {
  position: relative; z-index: 2;
  width: 100%; max-width: 520px; height: auto;
  filter: drop-shadow(0 30px 60px rgba(13, 20, 34, 0.12));
}
.float-soft   { animation: floaty 7s ease-in-out infinite; }
.float-soft-2 { animation: floaty 6s ease-in-out infinite; animation-delay: -2s; }
.float-soft-3 { animation: floaty 8s ease-in-out infinite; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
  .float-soft, .float-soft-2, .float-soft-3 { animation: none; }
}

/* ============================================================
   Stats / trust bar
   ============================================================ */
.stats-bar {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 760px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  padding: 22px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.stat-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent-line); }
.stat-cell .stat-head {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px;
}
.stat-cell .stat-head svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }
.stat-cell .stat-sub {
  font-family: var(--font-mono);
  font-size: 0.71rem; color: var(--text-3); margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============================================================
   Section heads
   ============================================================ */
section { padding: 100px 0; position: relative; }
.sec-head { margin-bottom: 54px; max-width: 760px; }
.sec-head[style*="center"] { margin-left: auto; margin-right: auto; }
.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem; color: var(--accent-2);
  text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 500; margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.12;
  color: var(--ink);
}
.sec-sub { margin-top: 14px; color: var(--text-2); max-width: 640px; font-size: 1.04rem; }

/* ============================================================
   Cards — shared light surface
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 189, 140, 0.06), transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}
.service-card:hover::after { opacity: 1; }
.service-card.spotlight {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-soft) 100%);
}
.service-ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2); margin-bottom: 22px;
}
.service-ic svg { width: 26px; height: 26px; }
.service-card.spotlight .service-ic { background: #fff; }
.service-card h3 { font-family: var(--font-display); font-size: 1.24rem; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
.service-card p { margin-top: 10px; color: var(--text-2); font-size: 0.95rem; }
.service-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  font-family: var(--font-mono);
  font-size: 0.69rem; padding: 4px 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-3);
}
.service-card .spot-flag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 4px 9px; border-radius: 999px;
}

/* ---- Value props (inside the ink AI band) ------------------------ */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 26px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.value-card:hover { border-color: rgba(0, 217, 163, 0.45); transform: translateY(-3px); background: rgba(255, 255, 255, 0.06); }
.value-card .v-ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(0, 217, 163, 0.14); display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright); margin-bottom: 18px;
}
.value-card .v-ic svg { width: 22px; height: 22px; }
.value-card h4 { font-family: var(--font-display); font-size: 1.06rem; color: #fff; font-weight: 600; }
.value-card p { margin-top: 9px; color: rgba(255, 255, 255, 0.66); font-size: 0.9rem; }

/* ============================================================
   Ink feature band (AI highlight + reusable .band-ink)
   ============================================================ */
.band-ink {
  background: var(--ink-band);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  color: var(--ink-band-text);
  border: 1px solid transparent;
}
:root[data-theme="dark"] .band-ink { border-color: var(--border); }
.band-ink::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 88% 12%, rgba(0, 217, 163, 0.20), transparent 60%),
    radial-gradient(ellipse 46% 60% at 6% 96%, rgba(108, 92, 231, 0.18), transparent 60%);
}
.band-ink::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 10%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 80% at 80% 10%, #000, transparent 70%);
}
.band-ink > * { position: relative; z-index: 1; }
.band-ink .sec-eyebrow { color: var(--accent-bright); }
.band-ink h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink-band-text); }
.band-ink > p { color: rgba(255, 255, 255, 0.72); }
:root[data-theme="dark"] .band-ink > p { color: var(--text-2); }

/* ============================================================
   Work grid
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: block;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.work-thumb {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92); font-weight: 500;
  text-align: center; padding: 16px; position: relative; overflow: hidden;
}
.work-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 20, 34, 0.5) 100%);
  pointer-events: none; z-index: 1;
}
.work-thumb span { position: relative; z-index: 2; word-break: break-all; }
.work-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; z-index: 0;
  opacity: 0; transition: opacity 0.4s ease;
}
.work-thumb img.loaded { opacity: 1; }
.work-thumb.has-image > span:not(.role-badge) { display: none; }

/* Role badge */
.role-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem; padding: 4px 10px; border-radius: 999px;
  font-weight: 500; letter-spacing: 0.03em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.role-build    { background: rgba(0, 217, 163, 0.2); color: #073f30; border: 1px solid rgba(0, 217, 163, 0.5); }
.role-frontend { background: rgba(77, 208, 225, 0.2); color: #0b3b40; border: 1px solid rgba(77, 208, 225, 0.5); }
.role-seo      { background: rgba(255, 200, 87, 0.22); color: #5a420a; border: 1px solid rgba(255, 200, 87, 0.5); }

/* Tinted gradient placeholders (shown under screenshot until it loads) */
.t-nextjs    { background: linear-gradient(135deg, #0d1422 0%, #2d3748 100%); }
.t-react     { background: linear-gradient(135deg, #0d2230 0%, #2a7d8a 100%); }
.t-node      { background: linear-gradient(135deg, #0d2017 0%, #2e7d5b 100%); }
.t-angular   { background: linear-gradient(135deg, #2a0d11 0%, #a83244 100%); }
.t-wordpress { background: linear-gradient(135deg, #0d1722 0%, #2a6a8a 100%); }
.t-astro     { background: linear-gradient(135deg, #1a0f24 0%, #b25a2e 100%); }
.t-static    { background: linear-gradient(135deg, #1a1a1a 0%, #555 100%); }
.t-nocode    { background: linear-gradient(135deg, #1c1226 0%, #7d4faf 100%); }
.t-other     { background: linear-gradient(135deg, #0d1f1f 0%, #2e8a8a 100%); }

.work-body { padding: 22px; }
.work-url { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-3); font-weight: 500; word-break: break-all; }
.work-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem; padding: 3px 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); font-weight: 500;
}
.badge.accent { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.work-note { margin-top: 14px; font-size: 0.86rem; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   Process steps
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.step-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.step-card .step-no {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--accent-2); line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.step-card h4 { font-family: var(--font-display); margin-top: 18px; font-size: 1.12rem; color: var(--ink); font-weight: 600; }
.step-card p { margin-top: 10px; color: var(--text-2); font-size: 0.92rem; }

/* ============================================================
   Tech ribbon
   ============================================================ */
.tech-ribbon { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-pill {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  font-family: var(--font-mono);
  font-size: 0.84rem; color: var(--text-2);
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.tech-pill:hover { border-color: var(--accent-line); color: var(--accent-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ============================================================
   Testimonials — auto-scrolling marquee (pause on hover/focus)
   ============================================================ */
.testi-marquee {
  position: relative;
  overflow: hidden;
  /* fade the edges so cards slide in/out gracefully */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.testi-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 6px 24px;
  animation: testi-scroll 56s linear infinite;
}
.testi-marquee:hover .testi-track,
.testi-marquee:focus-within .testi-track { animation-play-state: paused; }
@keyframes testi-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 10px)); } /* half = one full set + half the gap */
}
@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .testi-marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; }
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  width: 360px; flex-shrink: 0;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.testi-card::before {
  content: '\201C';
  position: absolute; top: 6px; right: 22px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1;
  color: var(--accent); opacity: 0.1; pointer-events: none;
}
.testi-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.testi-stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 18px; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-quote { color: var(--text); font-size: 0.97rem; flex: 1; line-height: 1.7; margin: 0; font-style: normal; }
.testi-foot { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  color: #fff;
  background: var(--av, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 4px 12px color-mix(in srgb, var(--av, var(--accent)) 40%, transparent);
}
.testi-name { display: block; font-size: 0.92rem; color: var(--ink); font-weight: 600; }
.testi-meta { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); margin-top: 3px; }
@media (max-width: 480px) { .testi-card { width: 300px; padding: 24px; } }

/* ============================================================
   Industries grid
   ============================================================ */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.industry-card {
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: 13px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.industry-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.industry-card .icon {
  width: 40px; height: 40px; background: var(--accent-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--accent-2); flex-shrink: 0;
}
.industry-card .icon svg { width: 20px; height: 20px; }
.industry-card .name { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

/* ============================================================
   Audit tool (preserved component — restyled light)
   ============================================================ */
.audit-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 880px; margin: 0 auto;
}
.audit-box::before {
  content: '';
  position: absolute; top: -130px; right: -110px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0, 217, 163, 0.12), transparent 70%);
  pointer-events: none;
}
.audit-box > * { position: relative; z-index: 1; }
.audit-box h3 { font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.audit-box .audit-sub { margin-top: 10px; color: var(--text-2); font-size: 0.95rem; }
.audit-form { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.audit-form input {
  flex: 1; min-width: 220px; padding: 15px 18px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); color: var(--ink); font-family: inherit;
  font-size: 0.95rem; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.audit-form input::placeholder { color: var(--text-3); }
.audit-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: #fff; }
.audit-form button {
  padding: 15px 26px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; border-radius: var(--r-sm); white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: transform 0.18s, opacity 0.18s, box-shadow 0.18s, background 0.18s;
}
.audit-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.audit-form button:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow-teal); background: var(--accent-2); }

.audit-loading, .audit-error, .audit-results { display: none; }
.audit-loading.show, .audit-error.show, .audit-results.show { display: block; }
.audit-loading { margin-top: 30px; }

.audit-progress { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.audit-step {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-3);
  transition: all 0.3s ease;
}
.audit-step .step-icon {
  width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.78rem; font-weight: 700;
}
.audit-step.pending .step-icon { background: var(--border); color: var(--text-3); }
.audit-step.pending .step-icon::before { content: '\2022'; }
.audit-step.active { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.audit-step.active .step-icon {
  background: transparent; border: 2px solid var(--accent); border-top-color: transparent;
  animation: spin 0.7s linear infinite; box-sizing: border-box;
}
.audit-step.active .step-icon::before { content: ''; }
.audit-step.done { color: var(--text-2); border-color: var(--accent-line); }
.audit-step.done .step-icon { background: var(--accent); color: #fff; }
.audit-step.done .step-icon::before { content: '\2713'; }
@keyframes spin { to { transform: rotate(360deg); } }

.audit-skeletons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.skel-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.skel-block {
  background: linear-gradient(90deg, var(--skel-base) 0%, var(--skel-mid) 50%, var(--skel-base) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 4px;
}
.skel-circle  { width: 52px; height: 52px; border-radius: 50%; }
.skel-line-l  { width: 60%; height: 10px; }
.skel-line-s  { width: 30%; height: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.audit-skel-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.skel-metric { background: var(--surface-2); padding: 14px; border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 8px; }

.audit-tip {
  margin-top: 24px; padding: 14px 18px;
  background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: var(--r-sm);
  font-size: 0.88rem; color: var(--text-2); min-height: 50px;
  display: flex; align-items: center; transition: opacity 0.4s; line-height: 1.5;
}
.audit-tip strong { color: var(--accent-2); margin-right: 6px; font-weight: 700; }

.audit-scores-sm { margin-top: 12px; }
.audit-scores-sm .score-card { padding: 14px; }
.audit-scores-sm .score-card .score { font-size: 1.6rem; }
.audit-scores-sm .score-card .label { font-size: 0.72rem; margin-top: 4px; }

.audit-note {
  margin-top: 18px; padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.78rem; color: var(--text-3); line-height: 1.55;
}
.audit-note strong { color: var(--text-2); }
.audit-error {
  margin-top: 22px; padding: 14px 18px;
  background: var(--err-bg); border: 1px solid var(--err-border); border-radius: var(--r-sm);
  color: var(--err-text); font-size: 0.88rem;
}
.audit-error a { color: var(--accent-2); }
.audit-results { margin-top: 30px; }
.audit-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.score-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; text-align: center; }
.score-card .score { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.score-card .score.good { color: var(--score-good); }
.score-card .score.avg  { color: var(--score-avg); }
.score-card .score.bad  { color: var(--score-bad); }
.score-card .label { font-family: var(--font-mono); margin-top: 8px; font-size: 0.71rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.audit-metrics { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; font-size: 0.88rem; }
.audit-metric { background: var(--surface-2); border: 1px solid var(--border); padding: 12px 14px; border-radius: var(--r-sm); color: var(--text-2); }
.audit-metric strong { color: var(--ink); display: block; font-size: 1.05rem; margin-bottom: 2px; }
.audit-cta {
  margin-top: 26px; padding: 26px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-md); text-align: center;
}
.audit-cta p { color: var(--text-2); margin-bottom: 16px; font-size: 0.92rem; }
.audit-cta strong { color: var(--ink); }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.price-card.featured {
  border-color: transparent;
  background: var(--ink-band);
  color: var(--ink-band-text);
  box-shadow: var(--shadow-lg);
}
:root[data-theme="dark"] .price-card.featured { border: 1px solid var(--accent-line); box-shadow: var(--shadow-md), 0 0 0 1px rgba(43,240,187,0.12); }
.price-card.featured .price-name { color: var(--accent-bright); }
.price-card.featured .price-amount { color: #fff; }
.price-card.featured .price-amount small { color: rgba(255, 255, 255, 0.66); }
.price-card.featured .price-desc { color: rgba(255, 255, 255, 0.7); }
.price-card.featured li { color: rgba(255, 255, 255, 0.82); }
.price-card.featured li::before { color: var(--accent-bright); }
.price-card .badge-feat {
  align-self: flex-start; padding: 5px 12px; background: var(--accent-bright); color: var(--accent-ink);
  border-radius: 999px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.06em; margin-bottom: 14px; text-transform: uppercase;
}
.price-card .price-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.price-card .price-amount { font-family: var(--font-display); margin-top: 10px; font-size: 2.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.price-card .price-amount small { font-size: 0.95rem; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.price-card .price-desc { margin-top: 12px; color: var(--text-2); font-size: 0.9rem; }
.price-card ul { margin-top: 22px; list-style: none; flex: 1; }
.price-card li { padding: 8px 0 8px 28px; color: var(--text-2); font-size: 0.92rem; position: relative; }
.price-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .price-cta { margin-top: 26px; }
.price-card .price-cta .btn { width: 100%; text-align: center; }
.price-card.featured .price-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.price-card.featured .price-cta .btn-outline:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq-summary {
  width: 100%; background: transparent; border: none; cursor: pointer;
  padding: 20px 24px; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  user-select: none; text-align: left; font-family: inherit; transition: background 0.15s;
}
.faq-summary:hover { background: var(--surface-2); }
.faq-icon {
  font-size: 1.5rem; color: var(--accent); font-weight: 300; line-height: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 12px; flex-shrink: 0; display: inline-block;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-answer-inner { padding: 0 24px 22px; color: var(--text-2); font-size: 0.95rem; }
.faq-answer-inner p { margin-bottom: 10px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner strong { color: var(--ink); }

/* ============================================================
   CTA section (reuses .band-ink look via the .cta class)
   ============================================================ */
.cta {
  background: var(--ink-band);
  border-radius: var(--r-xl);
  padding: 68px 44px; text-align: center; position: relative; overflow: hidden;
  color: var(--ink-band-text);
  border: 1px solid transparent;
}
:root[data-theme="dark"] .cta { border-color: var(--border); }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 50% -10%, rgba(0, 217, 163, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 100%, rgba(108, 92, 231, 0.16), transparent 60%);
}
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 75%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.025em;
  color: var(--ink-band-text); max-width: 720px; margin: 0 auto; line-height: 1.12;
}
.cta p { color: rgba(255, 255, 255, 0.72); margin-top: 16px; }
:root[data-theme="dark"] .cta p { color: var(--text-2); }
.cta-ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cta .btn-outline:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
/* When .cta is reused as a left-aligned AI band (inline styles in markup) */
.cta .value-grid { text-align: left; }

/* ============================================================
   Footer
   ============================================================ */
footer { border-top: 1px solid var(--border); padding: 60px 0 48px; color: var(--text-3); font-size: 0.88rem; background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-brand { max-width: 340px; }
.footer-brand .logo { margin-bottom: 14px; color: var(--ink); }
.footer-brand .logo .mark { color: var(--ink); }
.footer-brand p { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; color: var(--text-2); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3);
}

/* ============================================================
   Mini lead form (in hero)
   ============================================================ */
.mini-form {
  margin-top: 30px; display: flex; gap: 8px; max-width: 500px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 8px; box-shadow: var(--shadow-sm);
}
.mini-form input {
  flex: 1; min-width: 0; padding: 12px 14px;
  background: transparent; border: none; border-radius: var(--r-sm);
  color: var(--ink); font-family: inherit; font-size: 0.95rem; outline: none;
}
.mini-form input::placeholder { color: var(--text-3); }
.mini-form button {
  padding: 12px 20px; background: var(--accent); color: var(--on-accent); font-weight: 600;
  font-size: 0.9rem; border-radius: var(--r-sm); transition: transform 0.18s, box-shadow 0.18s, background 0.18s; white-space: nowrap;
}
.mini-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-teal); background: var(--accent-2); }
.mini-form .hint { width: 100%; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); margin-top: 4px; padding: 0 6px 4px; }

/* ============================================================
   Quote form
   ============================================================ */
.quote-wrap {
  max-width: 720px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px;
  box-shadow: var(--shadow-md);
}
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .quote-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.73rem; color: var(--text-2); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field select, .field textarea {
  padding: 13px 15px; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); color: var(--ink); font-family: inherit; font-size: 0.94rem;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.quote-wrap .btn { margin-top: 22px; width: 100%; text-align: center; }
.quote-alt { margin-top: 18px; text-align: center; font-size: 0.86rem; color: var(--text-3); }
.quote-alt a { color: var(--accent-2); font-weight: 500; }

/* ============================================================
   AI chat widget (.bw-chat*) — restyled for light theme
   chatbot.js builds these nodes and reads a few inline var(--accent)
   / var(--font-mono) references; all kept defined above.
   ============================================================ */
.bw-chat { position: fixed; bottom: 24px; right: 24px; z-index: 400; }

.bw-chat-launch {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 189, 140, 0.34), 0 4px 14px rgba(13, 20, 34, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.bw-chat-launch:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 22px 52px rgba(0, 189, 140, 0.4); }
.bw-chat-launch svg { width: 27px; height: 27px; }
.bw-chat-launch::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0.4;
  animation: chat-ping 2.6s ease-out infinite;
}
@keyframes chat-ping { 0% { transform: scale(1); opacity: 0.4; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.bw-chat.open .bw-chat-launch { display: none; }

.bw-chat-panel {
  position: absolute; bottom: 0; right: 0;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 48px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.bw-chat.open .bw-chat-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.bw-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}
.bw-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center; color: var(--accent-2); flex-shrink: 0;
}
.bw-chat-avatar svg { width: 20px; height: 20px; }
.bw-chat-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.bw-chat-status { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent-2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.bw-chat-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 189, 140, 0.18); }
.bw-chat-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--border); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; transition: color 0.15s, border-color 0.15s;
}
.bw-chat-close:hover { color: var(--accent); border-color: var(--accent); }
.bw-chat-close svg { width: 18px; height: 18px; }

.bw-chat-body {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2);
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.bw-chat-body::-webkit-scrollbar { width: 6px; }
.bw-chat-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.bw-msg {
  max-width: 82%; padding: 11px 15px; font-size: 0.9rem; line-height: 1.55;
  border-radius: 16px; word-wrap: break-word;
}
.bw-msg-bot {
  align-self: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); border-bottom-left-radius: 5px; box-shadow: var(--shadow-xs);
}
.bw-msg-user {
  align-self: flex-end;
  background: var(--accent); border: 1px solid var(--accent);
  color: var(--on-accent); border-bottom-right-radius: 5px;
}
.bw-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; border-bottom-left-radius: 5px; }
.bw-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: bw-bounce 1.2s infinite ease-in-out; }
.bw-typing span:nth-child(2) { animation-delay: 0.15s; }
.bw-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bw-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

.bw-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 4px; background: var(--bg-2); }
.bw-chip {
  font-family: var(--font-mono); font-size: 0.74rem; padding: 7px 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--text-2); transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.bw-chip:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }

.bw-chat-foot { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.bw-chat-foot input {
  flex: 1; min-width: 0; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  color: var(--ink); font-family: inherit; font-size: 0.9rem; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.bw-chat-foot input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.bw-chat-send {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.bw-chat-send:hover { transform: translateY(-1px); box-shadow: var(--shadow-teal); background: var(--accent-2); }
.bw-chat-send svg { width: 20px; height: 20px; }

@media (max-width: 640px) { .bw-chat { bottom: 16px; right: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .bw-chat-launch::after, .bw-typing span, .eyebrow .dot { animation: none; }
  .bw-chat-panel { transition: opacity 0.2s; transform: none; }
}

/* ============================================================
   DARK THEME — component-level overrides
   (Most components flow from the re-mapped tokens above; these
   handle the few places that hard-coded a light-only colour.)
   ============================================================ */
:root[data-theme="dark"] {
  --nav-bg: rgba(11, 13, 18, 0.78);
}

/* Inputs that flashed pure white on focus in light mode should land on
   the elevated surface in dark mode instead. */
:root[data-theme="dark"] .audit-form input:focus,
:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field select:focus,
:root[data-theme="dark"] .field textarea:focus { background: var(--surface-2); }

/* Spotlight service card: keep the subtle teal wash readable on dark. */
:root[data-theme="dark"] .service-card.spotlight {
  background: linear-gradient(160deg, var(--surface) 0%, var(--accent-soft) 140%);
}
:root[data-theme="dark"] .service-card.spotlight .service-ic { background: var(--accent-soft); }

/* Work-thumb tinted gradients are intentionally dark already — nudge the
   plain ones so they sit on the dark canvas without a hard seam. */
:root[data-theme="dark"] .role-build    { color: #c7ffe9; }
:root[data-theme="dark"] .role-frontend { color: #c7f4ff; }
:root[data-theme="dark"] .role-seo      { color: #ffe9b0; }

/* Hero ambient blobs glow a touch warmer in dark. */
:root[data-theme="dark"] .hero-art .blob-a { background: rgba(22, 224, 168, 0.18); }
:root[data-theme="dark"] .hero-art .blob-b { background: rgba(255, 138, 107, 0.12); }
:root[data-theme="dark"] .hero-svg { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }

/* Skeleton metric placeholders use surface-2 directly. */
:root[data-theme="dark"] .skel-card,
:root[data-theme="dark"] .skel-metric { background: var(--surface-2); }

/* Chat header gradient + featured-card outline tuning. */
:root[data-theme="dark"] .bw-chat-head { background: linear-gradient(180deg, var(--accent-soft), transparent); }

/* ---- Hero custom SVG: re-tint the hand-authored fills for dark ---- */
:root[data-theme="dark"] .hero-svg rect[fill="#ffffff"] { fill: var(--hero-card); }
:root[data-theme="dark"] .hero-svg rect[fill="#f6f8fc"] { fill: var(--hero-card-2); }
:root[data-theme="dark"] .hero-svg rect[stroke="#e6eaf1"],
:root[data-theme="dark"] .hero-svg [stroke="#e6eaf1"] { stroke: var(--hero-stroke); }
:root[data-theme="dark"] .hero-svg [stroke="#eef1f6"] { stroke: var(--hero-grid); }
:root[data-theme="dark"] .hero-svg rect[fill="#0d1422"] { fill: #cdd6e4; }
:root[data-theme="dark"] .hero-svg circle[fill="#ffffff"] { fill: var(--hero-card); }
:root[data-theme="dark"] .hero-svg [fill="#c7cedb"] { fill: #5a6675; }
:root[data-theme="dark"] .hero-svg text[fill="#0d1422"] { fill: #f2f5fa; }
/* The dark "Traffic" chip stays dark in both themes (it's an accent slab),
   but lift it slightly so it doesn't vanish on the dark canvas. */
:root[data-theme="dark"] .hero-svg rect[fill="#0d1422"][width="148"],
:root[data-theme="dark"] .hero-svg rect[width="148"][fill="#0d1422"] { fill: #20283a; }
:root[data-theme="dark"] .hero-svg path[fill="#0d1422"] { fill: #e6eaf2; }
:root[data-theme="dark"] .hero-svg rect[fill="#e6faf3"],
:root[data-theme="dark"] .hero-svg circle[fill="#e6faf3"] { fill: var(--accent-soft); }

/* ============================================================
   LIGHT-THEME VIBRANCY — tasteful multi-hue accents
   Rotate teal / coral / violet across icon tiles so the light
   theme reads colourful and premium (not flat, not childish).
   Dark mode inherits via the re-mapped *-soft / *-line tokens.
   ============================================================ */
.service-card:nth-child(3n+2) .service-ic { background: var(--coral-soft); border-color: var(--coral-line); color: var(--coral-2); }
.service-card:nth-child(3n+3) .service-ic { background: var(--violet-soft); border-color: var(--violet-line); color: var(--violet-2); }
.service-card.spotlight .service-ic { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }

.industry-card:nth-child(3n+2) .icon { background: var(--coral-soft); color: var(--coral-2); }
.industry-card:nth-child(3n+3) .icon { background: var(--violet-soft); color: var(--violet-2); }

/* Section eyebrow spot-accents pick up the warm hues here and there. */
#tools-teaser .spot-accent { color: var(--violet-2); }
#insights .spot-accent { color: var(--coral-2); }

/* ============================================================
   TOP CONTACT BAR (slim utility bar above nav)
   ============================================================ */
.topbar {
  background: var(--ink-band);
  color: var(--ink-band-text);
  border-bottom: 1px solid transparent;
  position: relative; z-index: 101;
  font-size: 0.82rem;
}
:root[data-theme="dark"] .topbar { border-bottom-color: var(--border); }
.topbar::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 120% at 88% 50%, rgba(0, 217, 163, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 120% at 8% 50%, rgba(108, 92, 231, 0.16), transparent 60%);
}
.topbar-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar-contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255, 255, 255, 0.82); font-weight: 500;
  transition: color 0.15s;
}
.topbar-link:hover { color: var(--accent-bright); }
.topbar-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
  padding-right: 6px; margin-right: 2px;
}
.topbar-soc {
  width: 26px; height: 26px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.topbar-soc:hover { color: #fff; background: rgba(0, 217, 163, 0.22); border-color: rgba(0, 217, 163, 0.5); transform: translateY(-1px); }
.topbar-soc svg { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .topbar-inner { justify-content: center; }
  .topbar-tag { display: none; }
  .topbar-contact { gap: 16px; }
}

/* ============================================================
   FREE TOOLS teaser
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tool-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--coral));
  opacity: 0; transition: opacity 0.25s;
}
.tool-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.tool-card:hover::after { opacity: 1; }
.tool-ic {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-2);
}
.tool-ic svg { width: 25px; height: 25px; }
.ic-teal   { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.ic-coral  { background: var(--coral-soft);  border-color: var(--coral-line);  color: var(--coral-2); }
.ic-violet { background: var(--violet-soft); border-color: var(--violet-line); color: var(--violet-2); }
.tool-card h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
.tool-card p { margin-top: 9px; color: var(--text-2); font-size: 0.9rem; flex: 1; }
.tool-go {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--accent-2); transition: gap 0.18s;
}
.tool-go svg { width: 15px; height: 15px; }
.tool-card:hover .tool-go { gap: 10px; }
.tools-foot { margin-top: 34px; display: flex; justify-content: center; }

/* ============================================================
   INSIGHTS / BLOG cards
   ============================================================ */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.insight-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.insight-thumb {
  aspect-ratio: 16 / 8;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.insight-thumb svg { width: 52px; height: 52px; position: relative; z-index: 1; }
.insight-thumb::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 75%);
  opacity: 0.5;
}
.thumb-teal   { background: linear-gradient(140deg, var(--accent-soft), color-mix(in srgb, var(--accent) 22%, var(--surface))); color: var(--accent-2); }
.thumb-coral  { background: linear-gradient(140deg, var(--coral-soft),  color-mix(in srgb, var(--coral) 24%, var(--surface)));  color: var(--coral-2); }
.thumb-violet { background: linear-gradient(140deg, var(--violet-soft), color-mix(in srgb, var(--violet) 24%, var(--surface))); color: var(--violet-2); }
.insight-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.insight-cat {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 4px 10px;
  margin-bottom: 14px;
}
.insight-card:nth-child(2) .insight-cat { color: var(--coral-2); background: var(--coral-soft); border-color: var(--coral-line); }
.insight-card:nth-child(3) .insight-cat { color: var(--violet-2); background: var(--violet-soft); border-color: var(--violet-line); }
.insight-card h3 { font-family: var(--font-display); font-size: 1.16rem; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.insight-excerpt { margin-top: 10px; color: var(--text-2); font-size: 0.92rem; flex: 1; }
.insight-read {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--accent-2); transition: gap 0.18s;
}
.insight-read svg { width: 15px; height: 15px; }
.insight-card:hover .insight-read { gap: 10px; }

/* ============================================================
   FOOTER — newsletter + social + extra columns
   ============================================================ */
.footer-news { margin-top: 20px; max-width: 320px; }
.footer-news-label { display: block; font-size: 0.8rem; color: var(--text-3); margin-bottom: 8px; }
.footer-news-row {
  display: flex; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 5px; box-shadow: var(--shadow-xs);
}
.footer-news-row input {
  flex: 1; min-width: 0; padding: 9px 12px;
  background: transparent; border: none; outline: none;
  color: var(--ink); font-family: inherit; font-size: 0.88rem;
}
.footer-news-row input::placeholder { color: var(--text-3); }
.footer-news-row button {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px;
  background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.footer-news-row button:hover { transform: translateY(-1px); box-shadow: var(--shadow-teal); background: var(--accent-2); }
.footer-news-row button svg { width: 18px; height: 18px; }
.footer-soc { display: flex; gap: 10px; margin-top: 20px; }
.footer-soc a {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: color 0.15s, border-color 0.15s, transform 0.15s, background 0.15s;
}
.footer-soc a:hover { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.footer-soc a svg { width: 17px; height: 17px; }
.footer-col:nth-child(2) a:hover { color: var(--coral-2); }
.footer-col:nth-child(3) a:hover { color: var(--violet-2); }
@media (max-width: 760px) { .footer-cols { gap: 34px 48px; } }

/* ============================================================
   Shared responsive trims
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
  .band-ink { padding: 38px 24px; }
  .cta { padding: 48px 24px; }
  .quote-wrap { padding: 28px 20px; }
  .audit-box { padding: 28px 20px; }
}

/* ============================================================
   BLOG / INSIGHTS — index hero + breadcrumb + article layout
   Theme-aware (light + dark), responsive, readable prose.
   ============================================================ */

/* Breadcrumb (index + article) */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em;
  color: var(--text-3); margin-bottom: 22px;
}
.crumbs a { color: var(--text-2); transition: color 0.15s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs .sep { color: var(--border-strong); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* Blog index hero band */
.blog-hero { padding: 64px 0 0; position: relative; overflow: hidden; }
.blog-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 12% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 50% 60% at 92% 0%, var(--violet-glow), transparent 62%);
}
.blog-hero > .container { position: relative; z-index: 1; }
.blog-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.06;
  max-width: 760px;
}
.blog-hero .blog-lead {
  margin-top: 18px; color: var(--text-2); font-size: 1.1rem;
  max-width: 600px; line-height: 1.7;
}

/* Article meta row used on cards + article header */
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3);
  letter-spacing: 0.02em;
}
.post-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ---- Article layout ---- */
.article-wrap { padding: 44px 0 0; }
.article {
  max-width: 760px; margin: 0 auto;
}
.article-head { margin-bottom: 40px; }
.article-head .insight-cat { margin-bottom: 18px; }
.article-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.article-head .article-standfirst {
  font-size: 1.16rem; color: var(--text-2); line-height: 1.7; max-width: 680px;
}
.article-head .post-meta { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.article-author {
  display: inline-flex; align-items: center; gap: 10px;
}
.article-author .testi-avatar { width: 34px; height: 34px; font-size: 0.78rem; }

/* Tinted hero strip per article */
.article-banner {
  height: 8px; border-radius: 999px; margin-bottom: 34px;
  background: linear-gradient(90deg, var(--accent), var(--violet) 60%, var(--coral));
}
:root[data-theme="dark"] .article-banner {
  background: linear-gradient(90deg, var(--accent-bright), var(--violet-2) 60%, var(--coral-2));
}

/* Prose */
.prose { color: var(--text); font-size: 1.06rem; line-height: 1.78; }
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--ink);
  margin-top: 46px; scroll-margin-top: 90px;
}
.prose h3 {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600;
  letter-spacing: -0.015em; color: var(--ink); margin-top: 34px;
}
.prose p { color: var(--text-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-2); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 22px; color: var(--text-2); }
.prose li { margin-top: 10px; }
.prose li::marker { color: var(--accent); }
.prose ul li::marker { content: '▸  '; }
.prose blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 24px; color: var(--ink); font-size: 1.06rem;
}
.prose blockquote p { color: var(--ink); }
.prose code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 7px; padding: 2px 7px; color: var(--accent-2);
}
.prose hr { border: 0; height: 1px; background: var(--border); margin: 40px 0; }

/* Callout card inside articles */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--shadow-xs);
}
.callout p { color: var(--text-2); margin: 0; font-size: 0.98rem; }
.callout strong { color: var(--ink); }
.callout.coral  { border-left-color: var(--coral); }
.callout.violet { border-left-color: var(--violet); }

/* Key-takeaways box at top of article */
.key-points {
  background: linear-gradient(150deg, var(--accent-soft), var(--surface) 80%);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  padding: 24px 26px; box-shadow: var(--shadow-xs);
}
.key-points h2 {
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-2); margin: 0 0 14px;
}
.key-points ul { padding-left: 20px; margin: 0; color: var(--text-2); }
.key-points li { margin-top: 8px; }

/* Article end-CTA (reuses .cta ink band, trimmed) */
.article-cta { margin-top: 56px; padding: 48px 40px; }
.article-cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Related / read-next strip */
.read-next { margin-top: 70px; }
.read-next .sec-eyebrow { margin-bottom: 22px; }

/* Author byline footer in article */
.article-foot {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.article-foot .testi-avatar { width: 48px; height: 48px; }
.article-foot .af-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.article-foot .af-role { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); margin-top: 3px; }

@media (max-width: 640px) {
  .article-cta { padding: 36px 24px; }
  .prose { font-size: 1.02rem; }
}

/* ===== Brand logo image (Option 1 — B-bird-W) ===== */
.brand-logo{height:46px;width:auto;display:block}
nav .brand-logo{height:50px}
.footer-brand .brand-logo,.mobile-nav-head .brand-logo{height:42px}
@media(max-width:560px){nav .brand-logo{height:40px}}

/* ===== Brand wordmark — gradient matching the B-bird-W logo ===== */
.logo .brandname{
  font-family:'Space Grotesk',sans-serif;font-weight:700;letter-spacing:-.015em;
  background:linear-gradient(115deg,#00d9a3 0%,#19b6c9 45%,#1d6fb8 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.logo .logo-dot{color:#1d6fb8;-webkit-text-fill-color:#1d6fb8}

/* ===== opt-9 logo (bird + bytewren wordmark in one image) ===== */
.logo .brandname{display:none}
.brand-logo{height:52px}
nav .brand-logo{height:58px}
.footer-brand .brand-logo,.mobile-nav-head .brand-logo{height:50px}
@media(max-width:560px){nav .brand-logo{height:46px}}

/* ===== Horizontal logo lockup + taller navbar + gap ===== */
nav .nav-inner{height:86px}
.logo{display:inline-flex;align-items:center;gap:14px}
.logo-mark{height:54px;width:auto;display:block;flex-shrink:0}
.logo-word{height:30px;width:auto;display:block}
.footer-brand .logo{gap:12px}.footer-brand .logo-mark{height:46px}.footer-brand .logo-word{height:27px}
.mobile-nav-head .logo{gap:11px}.mobile-nav-head .logo-mark{height:44px}.mobile-nav-head .logo-word{height:25px}
@media(max-width:600px){nav .nav-inner{height:68px}.logo-mark{height:42px}.logo-word{height:24px}.logo{gap:10px}}

/* ===== Taller navbar for the stacked logo (final) ===== */
nav .nav-inner{height:110px}
.brand-logo{height:66px;width:auto;display:block}
nav .brand-logo{height:66px}
.footer-brand .brand-logo{height:48px}
.mobile-nav-head .brand-logo{height:44px}
@media(max-width:600px){nav .nav-inner{height:72px}nav .brand-logo{height:54px}}

/* ref-nav-align */
nav .nav-inner{align-items:center}
.logo{align-self:center}

/* ============================================================
   EDITABLE NAV/LOGO CONTROLS  (change ONE value -> updates everywhere)
   ============================================================ */
:root{
  --nav-h: 112px;          /* navbar height */
  --logo-h: 98px;          /* logo size in nav */
  --footer-logo-h: 48px;   /* logo size in footer */
  --drawer-logo-h: 44px;   /* logo size in mobile drawer */
  --logo-gap: 14px;        /* gap between logo parts */
}
nav .nav-inner{ height: var(--nav-h); align-items:center; }
nav .brand-logo{ height: var(--logo-h); }
.brand-logo{ height: var(--logo-h); width:auto; display:block; }
.footer-brand .brand-logo{ height: var(--footer-logo-h); }
.mobile-nav-head .brand-logo{ height: var(--drawer-logo-h); }
.logo{ gap: var(--logo-gap); }
@media(max-width:600px){ :root{ --nav-h:72px; --logo-h:46px; } }

/* Tools de-emphasised — hidden from nav/footer everywhere (pages stay live & directly linkable) */
a[href$="tools/index.html"]{ display:none !important; }

/* ============================================================
   MOBILE RESPONSIVE FIXES  — kill horizontal overflow + tidy phones
   Root cause of edge-clipping: the top utility bar and nav CTA row
   packed more items than fit, forcing the whole page wider than the
   screen. Trim those on small screens; everything else reflows.
   ============================================================ */
/* NOTE: do NOT put overflow-x:hidden on <html> — it breaks the sticky navbar.
   The blob-clipping below + body's existing overflow-x:hidden handle overflow. */

/* Contain decorative background blobs — their negative offsets (right:-140px,
   left:-120px, etc.) were spilling past every section and forcing the page to
   ~480px wide on phones, which clipped all text at the right edge. Clip X per
   section so the glow stays but never widens the page. */
.hero, section, footer, .blog-hero { overflow-x: clip; }

/* Top bar: keep only email + WhatsApp on phones; the tag + social
   icons were the main width-forcing culprit. */
@media (max-width: 820px) {
  .topbar-social { display: none; }
  .topbar-inner { justify-content: flex-start; gap: 18px; }
}
@media (max-width: 460px) {
  .topbar { font-size: 0.74rem; }
  .topbar-contact { gap: 16px; }
  .topbar-link svg { width: 14px; height: 14px; }
}

/* Nav on phones: hide the wide "Get a free quote" text button
   (it already lives in the drawer); keep toggle + WhatsApp + burger. */
@media (max-width: 980px) {
  .nav-cta > a.btn { display: none; }
  .nav-cta { gap: 6px; }
}

/* Hero graphic + copy must fit the viewport, never overflow. */
@media (max-width: 940px) {
  .hero-art { max-width: 100%; overflow: hidden; }
  .hero-svg { width: 100%; max-width: 460px; }
}
@media (max-width: 520px) {
  .container { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.55rem); }
  .hero-sub { font-size: 1.02rem; margin-top: 20px; }
  .eyebrow { font-size: 0.66rem; padding: 6px 11px; margin-bottom: 18px; }
  .sec-title { font-size: clamp(1.7rem, 7.5vw, 2.1rem); }
}

/* Universal safety net: no image or wide media escapes its box. */
img { max-width: 100%; height: auto; }
.hero-svg, .work-thumb img, .insight-card img { max-width: 100%; }
