/* ===========================================================
   AI GrownLeads — Design System
   Clean light corporate + bold accent
   =========================================================== */

:root {
  /* Brand */
  --ink:        #0B1220;
  --ink-2:      #1E293B;
  --muted:      #5B6472;
  --muted-2:    #8A93A3;
  --line:       #E6E9F0;
  --line-2:     #EEF1F7;
  --bg:         #FFFFFF;
  --bg-soft:    #F7F8FC;
  --bg-soft-2:  #F1F3FA;

  --brand:      #4F46E5;   /* indigo */
  --brand-700:  #4338CA;
  --brand-600:  #4F46E5;
  --brand-300:  #A5B4FC;
  --brand-50:   #EEF0FE;
  --violet:     #7C3AED;
  --green:      #16A34A;
  --green-50:   #E9F8EF;
  --amber:      #F59E0B;

  --grad:       linear-gradient(100deg, #4F46E5 0%, #7C3AED 55%, #2563EB 100%);
  --grad-soft:  linear-gradient(135deg, #EEF0FE 0%, #F3EEFE 100%);

  /* Type */
  --font-head:  "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius:     16px;
  --radius-lg:  24px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow:     0 10px 30px -12px rgba(16,24,40,.18);
  --shadow-lg:  0 30px 60px -20px rgba(31,27,90,.28);
  --ring:       0 0 0 4px rgba(79,70,229,.14);

  --container:  1180px;
  --nav-h:      76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg.icon { width: 18px; height: 18px; flex: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.14; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.bg-soft { background: var(--bg-soft); }
.bg-ink  { background: var(--ink); color: #D6DBE6; }
.bg-ink h1,.bg-ink h2,.bg-ink h3 { color: #fff; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }

.grid { display: grid; gap: 28px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow.center-eb { justify-content: center; }
.lead { font-size: 1.14rem; color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: .25s ease; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(79,70,229,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(79,70,229,.7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-lg { padding: 17px 30px; font-size: 1.04rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow:hover .icon { transform: translateX(3px); }
.btn-arrow .icon { transition: .2s; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; flex: none; }
.brand .logo-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.brand .logo-mark img { width: 42px; height: 42px; object-fit: contain; display: block; }
.brand .logo-mark svg { width: 22px; height: 22px; }
.brand .ai { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; transition: .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); background: var(--brand-50); }
.nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(60px, 8vw, 110px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(124,58,237,.12), transparent 60%),
    radial-gradient(50% 50% at 5% 10%, rgba(79,70,229,.12), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.2rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: var(--muted); font-size: .95rem; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; fill: var(--amber); stroke: var(--amber); }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.hero-card .hc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hc-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--brand-50); padding: 6px 12px; border-radius: 999px; }
.hc-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-50); }
.hc-metric { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-soft); }
.hc-metric .n { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.hc-metric .l { font-size: .82rem; color: var(--muted); }
.hc-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 16px; }
.hc-bars span { flex: 1; border-radius: 6px 6px 0 0; background: var(--brand-50); }
.hc-bars span.hi { background: var(--grad); }
.hero-float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink);
}
.hero-float .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-float .ic svg { width: 18px; height: 18px; }
.hero-float.f1 { top: -18px; right: 24px; } .hero-float.f1 .ic { background: var(--green); }
.hero-float.f2 { bottom: -20px; left: -18px; } .hero-float.f2 .ic { background: var(--grad); }
.hero-float small { display: block; font-weight: 500; color: var(--muted); font-family: var(--font-body); font-size: .72rem; }

/* ---------- Marquee / clients ---------- */
.marquee-wrap { padding: 30px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.marquee-label { text-align: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; font-family: var(--font-head); font-weight: 600; }
.marquee { display: flex; gap: 56px; align-items: center; width: max-content; animation: slide 26s linear infinite; }
.marquee span { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: #B9C0CE; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem,4vw,3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.stat .l { color: var(--muted); font-size: .98rem; margin-top: 4px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: .3s ease; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-300); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand); margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.card-link svg { width: 16px; height: 16px; transition: .2s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* Pillar block */
.pillar { margin-bottom: 72px; }
.pillar:last-child { margin-bottom: 0; }
.pillar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.pillar-head .lead { max-width: 560px; margin: 0; }

/* ---------- Case studies ---------- */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: .3s; height: 100%; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-top { padding: 26px 26px 0; }
.case-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); color: var(--green); font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.case-client { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin: 16px 0 2px; }
.case-industry { color: var(--muted); font-size: .9rem; }
.case-summary { padding: 16px 26px 0; color: var(--muted); font-size: .96rem; flex: 1; }
.case-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line-2); margin-top: 22px; border-top: 1px solid var(--line-2); }
.case-metrics div { background: #fff; padding: 18px 14px; text-align: center; }
.case-metrics .m-n { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.case-metrics .m-l { font-size: .72rem; color: var(--muted); line-height: 1.3; margin-top: 3px; }

/* ---------- Process ---------- */
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%; }
.step .num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Feature list (why us) ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--brand); border: 1px solid var(--line); flex: none; box-shadow: var(--shadow-sm); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Split (image/text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel { background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.panel .kv { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.panel .kv:last-child { margin-bottom: 0; }
.panel .kv .ic { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; color: var(--brand); flex: none; box-shadow: var(--shadow-sm); }
.panel .kv .ic svg { width: 20px; height: 20px; }
.panel .kv h4 { font-family: var(--font-head); margin: 0 0 3px; color: var(--ink); }
.panel .kv p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); height: 100%; }
.quote-card .q-icon { color: var(--brand-300); }
.quote-card .q-icon svg { width: 40px; height: 40px; }
.quote-card blockquote { font-size: 1.12rem; color: var(--ink-2); margin: 14px 0 22px; line-height: 1.6; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote-card .who b { font-family: var(--font-head); color: var(--ink); }
.quote-card .who small { display: block; color: var(--muted); }

/* ---------- Industries / pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: .2s; }
.pill:hover { border-color: var(--brand-300); color: var(--brand); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .ph { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; box-shadow: var(--shadow); }
.team-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-card .role { color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-q .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; transition: .3s; }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: clamp(40px,6vw,70px); overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 120% at 100% 0%, rgba(124,58,237,.5), transparent 55%), radial-gradient(50% 100% at 0% 100%, rgba(79,70,229,.45), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7CDDA; max-width: 560px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(50px,7vw,90px) 0 clamp(36px,5vw,56px); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(50% 80% at 90% 0%, rgba(124,58,237,.1), transparent 60%); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }
.contact-info .ci-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-info .ic svg { width: 22px; height: 22px; }
.contact-info h4 { font-family: var(--font-head); margin: 0 0 2px; color: var(--ink); }
.contact-info a, .contact-info span { color: var(--muted); }
.contact-info a:hover { color: var(--brand); }
.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .96rem; }
.alert-ok { background: var(--green-50); color: #0f7a37; border: 1px solid #b7e4c7; }
.alert-err { background: #FEF2F2; color: #b42318; border: 1px solid #FECACA; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9AA3B2; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 34px; margin-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer p { color: #9AA3B2; font-size: .95rem; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #9AA3B2; padding: 6px 0; font-size: .95rem; transition: .2s; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--grad); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -6px rgba(37,211,102,.6); transition: .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 14px 24px 20px; box-shadow: var(--shadow);
  }
  .nav-menu-open .nav-links a { padding: 13px 14px; border-radius: 10px; }
  .nav-menu-open .nav-cta .btn { display: inline-flex; }
  .nav-menu-open .nav-cta { position: absolute; top: calc(var(--nav-h) + 230px); left: 24px; right: 24px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4, .stats-band, .case-metrics { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: repeat(3,1fr); }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 28px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pillar-head { flex-direction: column; align-items: flex-start; }
  .hero-float { display: none; }
}

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-2{margin-top:2rem}
.flex{display:flex}.gap{gap:14px}.wrap{flex-wrap:wrap}.ai-c{align-items:center}.jc-c{justify-content:center}

/* Nav dropdown (Terms) styles live inline in includes/header.php so they
   never depend on this file being freshly deployed/un-cached. */

/* ---------- Legal / prose ---------- */
.prose h2 { font-size: 1.3rem; margin: 1.7em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1rem; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose strong { color: var(--ink); }
.legal-updated { color: var(--muted-2); font-size: .9rem; }

/* ---------- Team photos ---------- */
.team-card .ph.ph-photo { background: none; padding: 0; overflow: hidden; }
.team-card .ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* ---------- Gallery / animated showcase ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-anim { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--grad-soft); border: 1px solid var(--line); position: relative; overflow: hidden; }
.gallery-anim::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; top: -34px; right: -34px; background: radial-gradient(circle, rgba(79,70,229,.16), transparent 70%); animation: gaBlob 6s ease-in-out infinite; }
.gallery-anim::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; bottom: -30px; left: -30px; background: radial-gradient(circle, rgba(124,58,237,.14), transparent 70%); animation: gaBlob 7s ease-in-out infinite reverse; }
.ga-icon { width: 66px; height: 66px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); position: relative; animation: gaFloat 3.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * .4s); }
.ga-icon svg { width: 30px; height: 30px; }
.gallery-anim figcaption { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; position: relative; }
@keyframes gaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gaBlob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 14px); } }

/* subtle life for hero */
.hero-float { animation: gaFloat 4.5s ease-in-out infinite; }
.hero-float.f2 { animation-delay: -2.2s; }
.hc-badge .dot { animation: gaPulse 1.9s ease-in-out infinite; }
@keyframes gaPulse { 0%, 100% { box-shadow: 0 0 0 3px var(--green-50); } 50% { box-shadow: 0 0 0 6px rgba(22,163,74,.12); } }

@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .ga-icon, .gallery-anim::before, .gallery-anim::after, .hero-float, .hc-badge .dot { animation: none; }
}
