/* =========================================================
   Demandgap — site-wide system (original pink + ink palette)
   ========================================================= */
:root {
  /* Brand — Demandgap official palette (from 2026 research deck) */
  --ink: #16345C;            /* deep navy — primary */
  --ink-900: #0D1F3A;
  --ink-700: #16345C;
  --ink-500: #4A6080;
  --ink-300: #8395AE;
  --ink-100: #DCE2EC;

  --mint: #3FD4B0;           /* brand accent — mint teal */
  --mint-600: #22B896;
  --mint-100: #E0F7F0;

  --alert: #F04438;
  --alert-100: #FEE4E2;

  /* Aliases for services.html / linkedin-ads.html */
  --teal: var(--mint);
  --teal-600: var(--mint-600);
  --teal-50: var(--mint-100);
  --font-heavy: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Pink alias kept for legacy selectors — mapped to mint */
  --pink: var(--mint);
  --pink-600: var(--mint-600);
  --pink-100: var(--mint-100);

  --lime: #3FD4B0;
  --sun: #F4CF40;

  --paper: #FFFFFF;
  --paper-2: #F2F3F7;
  --paper-3: #E6E9F0;

  --line: #16345C;
  --line-soft: rgba(22, 52, 92, 0.12);
  --line-hair: rgba(22, 52, 92, 0.08);

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 0 rgba(14,31,54,0.04), 0 6px 24px -12px rgba(14,31,54,0.10);
  --shadow-md: 0 30px 60px -30px rgba(14,31,54,0.28);

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--mint); color: var(--ink); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.025em; color: var(--ink); margin: 0; line-height: 1.05; }
h1 { font-size: clamp(48px, 6.5vw, 88px); }
h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.serif { font-family: var(--font-display); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.text-pink { color: var(--pink); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-500); }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-500); max-width: 62ch; margin: 0; }
p { margin: 0 0 14px; color: var(--ink-500); }
p:last-child { margin-bottom: 0; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap, .container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.0; letter-spacing: -.02em; margin: 12px 0 24px; max-width: 22ch; }
.page-hero .lead { max-width: 62ch; }
.kicker-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.rule-teal { width: 40px; height: 2px; background: var(--mint); }
.reveal { opacity: 1; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.btn .arrow { transition: transform .2s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section.tight, .section-tight { padding: clamp(48px, 6vw, 88px) 0; position: relative; }
section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }

.sec-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.sec-head .right { font-size: 15px; color: var(--ink-500); line-height: 1.55; max-width: 40ch; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 20px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-spring), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .2s var(--ease-spring); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-900); }
.btn-pink { background: var(--pink); color: var(--paper); font-weight: 600; }
.btn-pink:hover { background: var(--pink-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-soft); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border: 1px solid var(--line-soft); }
.btn-light:hover { border-color: var(--ink); }
.btn-dark { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.28); }
.btn-dark:hover { border-color: var(--paper); }

/* Tags / pills */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink); border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.tag-pink { background: var(--pink-100); color: var(--pink); border-color: transparent; }
.tag-dark { background: rgba(255,255,255,.08); color: var(--paper); border-color: rgba(255,255,255,.16); }
.tag-lime { background: var(--lime); color: var(--ink); border-color: transparent; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.nav-logo img { height: 26px; width: auto; }
@media (max-width: 640px) {
  .nav-inner { padding-left: 4px; padding-right: 4px; gap: 12px; }
  .nav-logo img { height: 22px; }
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-500); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; background: var(--paper-2); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-availability {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-500);
}
.nav-availability .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(63,212,176,.5); } 50% { box-shadow: 0 0 0 6px rgba(63,212,176,0); } }

/* Burger — hidden on desktop */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: white;
  align-items: center; justify-content: center;
  padding: 0;
  transition: border-color .15s;
}
.nav-burger:hover { border-color: var(--ink); }
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .25s var(--ease-spring), opacity .2s;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease-spring), top .25s;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top: 6px; }
.nav-burger.is-open span { background: transparent; }
.nav-burger.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh; width: min(360px, 86vw);
  background: var(--paper);
  border-left: 1px solid var(--line-soft);
  box-shadow: -20px 0 60px -30px rgba(14,31,54,.3);
  transform: translateX(100%);
  transition: transform .3s var(--ease-out);
  z-index: 60;
  display: flex; flex-direction: column;
  padding: 80px 28px 28px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a.m-link {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-hair);
  transition: color .15s;
}
.mobile-drawer a.m-link:hover { color: var(--mint-600); }
.mobile-drawer .m-cta {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-drawer .m-cta .btn { justify-content: center; padding: 16px 22px; }
.mobile-drawer .m-avail {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line-hair);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-500);
  display: flex; align-items: center; gap: 8px;
}
.mobile-drawer .m-avail .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  animation: pulse 2.4s infinite;
}

/* Scrim */
.mobile-scrim {
  position: fixed; inset: 0;
  background: rgba(11, 28, 74, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 55;
}
.mobile-scrim.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  .nav-links, .nav-availability { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-burger { display: inline-flex; }
}
body.nav-locked { overflow: hidden; }

/* Big CTA block — shared across pages */
.cta-big {
  background: var(--ink); color: white;
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 88px);
  position: relative; overflow: hidden;
}
.cta-big::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  opacity: .25; border-radius: 50%; pointer-events: none;
}
.cta-big h2 { color: white; font-size: clamp(36px, 4.5vw, 56px); max-width: 22ch; line-height: 1.05; }
.cta-big h2 em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--mint); }
.cta-big p { color: rgba(255,255,255,.75); margin-top: 18px; max-width: 54ch; font-size: 17px; line-height: 1.5; position: relative; }
.cta-big .row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 72px 0 32px; position: relative; overflow: hidden; }
.footer a { color: rgba(255,255,255,.75); transition: color .15s; }
.footer a:hover { color: var(--mint); }
.footer-grid, .footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-logo img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-logo p, .footer-tag { color: rgba(255,255,255,.65); max-width: 32ch; font-size: 14px; margin: 0; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.6); flex-wrap: wrap; position: relative; z-index: 1; }
.footer-mega {
  position: absolute;
  left: 50%; bottom: -48px;
  transform: translateX(-50%);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(120px, 22vw, 340px);
  color: rgba(255,255,255,.04);
  letter-spacing: -.02em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  line-height: 1;
}
@media (max-width: 900px) { .footer-grid, .footer-top { grid-template-columns: 1fr 1fr; } }

/* Utilities */
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--paper); }
.bg-ink p { color: rgba(255,255,255,.75); }
.bg-ink .eyebrow { color: rgba(255,255,255,.6); }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 32px; transition: border-color .2s, transform .25s var(--ease-spring); }
.card:hover { border-color: var(--ink); }
.card-ink { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 32px; }
.card-ink h3, .card-ink h4 { color: var(--paper); }
.card-ink p { color: rgba(255,255,255,.75); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
details.faq:first-of-type { border-top: 1px solid var(--line-soft); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: 17px; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--pink); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 14px; max-width: 68ch; color: var(--ink-500); }

/* =========================================================
   AI Ecosystem — orbital visualisation used on home + platform pages
   ========================================================= */
.eco {
  --eco-line: rgba(22, 52, 92, 0.32);
  --eco-line-strong: rgba(22, 52, 92, 0.48);
  --eco-dim: 0.22;
  position: relative; width: 100%; max-width: 1200px; margin: 0 auto;
  aspect-ratio: 5 / 4; background: #FAFBFC;
  border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden;
}
.eco-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.eco-ring { fill: none; stroke: var(--eco-line); stroke-width: 1.25; stroke-dasharray: 4 6; }
.eco-ring-core { fill: rgba(22,52,92,0.04); stroke: var(--eco-line-strong); stroke-width: 1.5; stroke-dasharray: none; }
.eco-core-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 2; pointer-events: none; }
.eco-core-label .kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--mint-600); text-transform: uppercase; }
.eco-core-label .title { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink); margin-top: 4px; line-height: 1; }
.eco-node {
  position: absolute; transform: translate(-50%,-50%);
  background: #FFFFFF; border: 1px solid var(--eco-line-strong); border-radius: 999px;
  padding: 6px 12px; font-size: 11px; font-weight: 500; color: var(--ink);
  white-space: nowrap; line-height: 1.15; z-index: 3;
  transition: opacity .25s var(--ease-out), background .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.eco-node .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); margin-right: 6px; vertical-align: middle; transition: background .25s; }
.eco-node[data-layer="A"] { background: var(--ink); color: white; border-color: var(--ink); }
.eco-node[data-layer="A"] .dot { background: var(--mint); }
.eco-node[data-layer="C"] { background: #F4F5F8; border-style: dashed; }
.eco-node[data-layer="D"] { background: #FFFFFF; border-color: var(--ink-500); }
.eco-region-label { position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-300); text-transform: uppercase; z-index: 1; pointer-events: none; line-height: 1.2; }
.eco-region-label strong { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--ink-500); letter-spacing: -.01em; margin-top: 3px; text-transform: none; font-weight: 500; }
.eco[data-focus="none"] .eco-node { opacity: 1; }
.eco:not([data-focus="none"]) .eco-node { opacity: var(--eco-dim); }
.eco:not([data-focus="none"]) .eco-node.is-active { opacity: 1; }
.eco-node.is-active {
  background: var(--mint); border-color: var(--mint-600); color: var(--ink); font-weight: 600;
  box-shadow: 0 0 0 4px var(--mint-100), 0 10px 24px -8px rgba(22,52,92,.18);
  z-index: 5; transform: translate(-50%,-50%) scale(1.04);
}
.eco-node.is-active .dot { background: var(--ink); }
.eco-controls { max-width: 1200px; margin: 18px auto 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.eco-controls button {
  padding: 8px 14px; border: 1px solid var(--line-soft); border-radius: 999px; background: white;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-500); cursor: pointer; transition: all .2s;
}
.eco-controls button:hover { border-color: var(--ink); color: var(--ink); }
.eco-controls button.active { background: var(--ink); color: white; border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .eco-node { transition: none; }
  .eco-node.is-active { transform: translate(-50%,-50%); }
}
@media (max-width: 820px) {
  .eco { aspect-ratio: auto; padding: 24px 18px; }
  .eco-svg, .eco-region-label:not(:first-child) { display: none; }
  .eco-core-label { position: static; transform: none; text-align: left; margin-bottom: 12px; }
  .eco-node { position: static; transform: none; display: inline-flex; margin: 4px; }
  .eco-node.is-active { transform: none; }
}

/* Operators strip (compact "who runs your account" block for services/pricing) */
.operators-strip { border-top: 1px solid var(--line-soft); }
.operators-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  padding: 40px; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  align-items: center;
}
.operators-intro .eyebrow { color: var(--ink-500); }
.operators-intro h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 36px; line-height: 1.08; letter-spacing: -.01em;
  margin: 14px 0 12px;
}
.operators-intro p { font-size: 15px; color: var(--ink-700); line-height: 1.5; margin: 0; }
.operators-list { display: grid; gap: 14px; }
.operator {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; background: var(--paper-2);
  border-radius: 12px; border: 1px solid var(--line-soft);
}
.operator img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0;
  border: 1px solid var(--line-soft);
}
.operator > div { min-width: 0; line-height: 1.3; }
.operator strong { display: block; font-weight: 500; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.operator span {
  display: block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-500);
}
@media (max-width: 820px) {
  .operators-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .operators-intro h3 { font-size: 28px; }
}

/* ───── Mobile overflow safeguards ───── */
@media (max-width: 720px) {
  /* Force all multi-col grids to single column */
  .shift-grid,
  .camp-grid,
  .tools-grid,
  .results-grid,
  .founders-grid,
  .flow-grid,
  .svc-grid,
  .benefit-grid,
  .logos-grid,
  .principles-grid,
  .fr-mode-grid,
  .fr-hero-stats,
  .three-col,
  .two-col { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Tables and wide content scroll instead of overflow */
  .table-wrap, .pricing-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Process steps stack */
  .process-list { grid-template-columns: 1fr !important; }
  .process-step { padding: 20px !important; }

  /* Kill huge font-size elements that force width */
  .footer-mega { font-size: clamp(80px, 28vw, 180px) !important; }

  /* Sec-head stack */
  .sec-head { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Prevent any h1/h2 from forcing overflow */
  h1, h2 { word-break: break-word; }

  /* Generic: any direct grid in .wrap with >1 col collapses */
  .wrap > .grid-2, .wrap > .grid-3, .wrap > .grid-4 { grid-template-columns: 1fr !important; }

  /* CTA big stacks and shrinks padding */
  .cta-big { padding: 40px 24px !important; }
  .cta-big h2 { font-size: clamp(30px, 8vw, 40px) !important; }

  /* Page hero shrinks */
  .page-hero h1 { font-size: clamp(38px, 9vw, 56px) !important; }

  /* Section padding tightens */
  .section { padding-top: 56px !important; padding-bottom: 56px !important; }
}

/* Prevent any element from forcing horizontal overflow */
img, svg, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* Home: tools 3-col → stack */
@media (max-width: 860px) {
  .tools-3col { grid-template-columns: 1fr !important; }
}

/* Services: LinkedIn card stack mustn't overflow */
@media (max-width: 720px) {
  .li-stack { max-width: 100% !important; overflow: hidden; }
  .li-card.c1, .li-card.c2, .li-card.c3 { left: 0 !important; right: 0 !important; transform: rotate(-1deg) !important; }
  .li-card.c2 { transform: rotate(1deg) translateY(24px) !important; }
  .li-card.c3 { transform: rotate(-.5deg) translateY(48px) !important; }
}

/* Footer: stack sooner */
@media (max-width: 820px) {
  .footer-grid, .footer-top { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}
@media (max-width: 540px) {
  .footer-grid, .footer-top { grid-template-columns: 1fr !important; }
}

/* Load fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');
