/* =========================================================
   AMB AI Solutions — global stylesheet
   Palette: deep-ocean navy base, electric sky accent,
   with the logo's gold reserved for the brand mark only.
   Type: Syne (display) + DM Sans (body)
   ========================================================= */

:root {
  --ink: #081121;
  --ink-2: #0e1a30;
  --ink-3: #152441;
  --line: rgba(160, 190, 240, 0.14);
  --line-strong: rgba(160, 190, 240, 0.28);
  --text: #e6edf8;
  --text-2: #a9b7cf;
  --text-3: #8f9db8;
  --flow-node: #14213a;
  --flow-hub: #1b2f52;
  --flow-stroke: rgba(160,190,240,0.3);
  --accent: #4cc9f0;
  --accent-2: #7b61ff;
  --accent-ink: #061018;
  --gold: #d9b85c;
  --ok: #34d399;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --wrap: 1180px;
  --nav-h: 92px;
  --font-display: "Syne", "DM Sans", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --ink: #f4f7fb;
  --ink-2: #ffffff;
  --ink-3: #e9eef7;
  --line: rgba(20, 40, 80, 0.12);
  --line-strong: rgba(20, 40, 80, 0.24);
  --text: #0b1730;
  --text-2: #3d4c68;
  --text-3: #5f6d86;
  --flow-node: #ffffff;
  --flow-hub: #e6f4fb;
  --flow-stroke: rgba(20,40,80,0.25);
  --accent: #0284c7;
  --accent-2: #5b46e6;
  --accent-ink: #ffffff;
  --gold: #a8842a;
  --shadow: 0 30px 60px -30px rgba(20, 40, 80, 0.25);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; max-width: 68ch; }
p.lede { font-size: 1.2rem; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: 0.92rem; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap-narrow { width: min(820px, calc(100% - 2.5rem)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: #6fd6f4; }
[data-theme="light"] .btn-primary:hover { background: #0369a1; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: #25d366; color: #05240f; }
.btn-wa:hover { background: #3de07a; transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand img { height: 62px; width: auto; }
.brand span { line-height: 1.05; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav > a, .nav > .has-menu > a {
  padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav > a:hover, .nav > a.active, .has-menu > a:hover { color: var(--text); background: var(--ink-3); }
.nav .btn { margin-left: 0.6rem; }
.has-menu { position: relative; }
.has-menu svg { width: 14px; height: 14px; transition: transform 0.2s; }
.has-menu:hover svg, .has-menu:focus-within svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(880px, 92vw); padding: 1.2rem; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: block; padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-2); }
.mega a:hover { background: var(--ink-3); color: var(--text); }
.mega-col > strong { display: block; font-family: var(--font-display); font-size: 0.9rem; padding: 0.3rem 0.6rem 0.4rem; color: var(--text); }
.mega .mega-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 0 0.6rem 0.6rem; border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; }
.mega .mega-head a { color: var(--accent); padding: 0; }
.mega .mega-head a:hover { background: none; }

.theme-toggle, .menu-toggle {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); display: inline-grid; place-items: center;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun, [data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--ink);
  padding: 1rem 1.25rem 3rem; overflow-y: auto; display: none;
}
.drawer.open { display: block; }
.drawer > a, .drawer details a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer details summary { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.drawer details a { padding: 0.6rem 0 0.6rem 1rem; font-weight: 400; color: var(--text-2); font-size: 0.95rem; }
.drawer-group { margin-bottom: 0.5rem; }
.drawer a.btn { display: inline-flex; margin-top: 1.2rem; border: 0; color: var(--accent-ink); padding: 0.85rem 1.4rem; }

main { padding-top: var(--nav-h); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h)); display: grid; align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 82%, transparent) 45%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 56ch; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-proof { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-proof div { font-size: 0.92rem; color: var(--text-2); }
.hero-proof strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); letter-spacing: -0.02em; }
.hero-stack { justify-self: end; width: 100%; max-width: 420px; }
.hero-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--ink-2) 80%, transparent);
  backdrop-filter: blur(10px); padding: 1.25rem 1.4rem; margin-bottom: 0.8rem;
}
.hero-card h4 { margin: 0 0 0.3rem; display: flex; gap: 0.5rem; align-items: center; }
.hero-card h4 svg { width: 18px; height: 18px; color: var(--accent); }
.hero-card p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.hero-card.is-live { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.hero-card .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 0.4rem; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- Service index (home + services hub) ---------- */
.service-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.service-index a {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center;
  padding: 1.25rem 1rem; border-bottom: 1px solid var(--line); transition: background 0.2s;
}
.service-index a:nth-child(odd) { border-right: 1px solid var(--line); }
.service-index a:hover { background: var(--ink-2); }
.service-index a:hover .go { transform: translateX(4px); color: var(--accent); }
.service-index .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); color: var(--accent); }
.service-index .ico svg { width: 20px; height: 20px; }
.service-index strong { display: block; font-weight: 600; }
.service-index span { color: var(--text-3); font-size: 0.9rem; }
.service-index .go { color: var(--text-3); transition: transform 0.2s, color 0.2s; }
.service-index a.flag { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.service-index a.flag .ico { background: var(--accent); color: var(--accent-ink); }
.service-index .go svg { width: 18px; height: 18px; }

/* Grouped hub */
.service-group { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.service-group:first-of-type { border-top: 0; }
.service-group h3 { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.service-group p { color: var(--text-2); }
.service-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.service-card {
  padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
  display: flex; flex-direction: column; gap: 0.6rem; transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-card .ico { color: var(--accent); }
.service-card .ico svg { width: 26px; height: 26px; }
.service-card h4 { margin: 0; }
.service-card p { margin: 0; font-size: 0.93rem; color: var(--text-2); }

/* ---------- Delivery model strip ---------- */
.model {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
}
.model > div { padding: 2rem; border-right: 1px solid var(--line); }
.model > div:last-child { border-right: 0; }
.model h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; }
.model h3 svg { width: 22px; height: 22px; color: var(--accent); }
.model p { color: var(--text-2); margin: 0; font-size: 0.97rem; }

/* ---------- Stat bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat strong { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; display: block; color: var(--text); }
.stat span { color: var(--text-2); }

/* ---------- Portfolio ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.project {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--ink-2);
  display: flex; flex-direction: column; gap: 0.8rem; position: relative; overflow: hidden;
}
.project::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0; transition: opacity 0.2s; }
.project:hover::before { opacity: 1; }
.project .tag { font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.project h3 { font-size: 1.25rem; margin: 0; }
.project p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.project .stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; }
.chip { font-size: 0.78rem; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); }
.project.featured { grid-column: span 2; }
.project .outcome { border-top: 1px solid var(--line); padding-top: 0.8rem; font-size: 0.92rem; }
.project .outcome strong { color: var(--ok); }

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter button { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.9rem; }
.filter button.active, .filter button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Swiper tweaks ---------- */
.swiper { padding-bottom: 3rem; }
.swiper-pagination-bullet { background: var(--text-3); opacity: 0.6; }
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: var(--accent); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.4rem; }

/* ---------- Process / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 0 0; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 0.95rem; display: block; margin-bottom: 0.5rem;
}
.step h4 { margin-bottom: 0.3rem; }
.step p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ---------- Two-column "why" ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split h2 { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.reasons { display: grid; gap: 0; }
.reason { padding: 1.4rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 1rem; }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.reason h4 { margin-bottom: 0.25rem; }
.reason p { margin: 0; color: var(--text-2); font-size: 0.96rem; }

/* ---------- Logos / tech marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; color: var(--text-3); font-size: 1.05rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- CTA band ---------- */
.cta {
  border-radius: calc(var(--radius) + 6px); padding: clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
              radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 55%), var(--ink-2);
  border: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta h2 { margin-bottom: 0.5rem; }
.cta p { margin: 0; color: var(--text-2); }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%); pointer-events: none;
}
.page-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-3); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 60ch; }
.page-hero .ico-big { width: 64px; height: 64px; border-radius: 18px; background: var(--ink-3); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.4rem; }
.page-hero .ico-big svg { width: 30px; height: 30px; }

/* ---------- Service detail layout ---------- */
.detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 0.2rem; font-size: 0.93rem; }
.toc a { padding: 0.45rem 0.8rem; border-left: 2px solid var(--line); color: var(--text-3); }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--accent); }
.toc .toc-cta { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.toc .toc-cta p { font-size: 0.88rem; color: var(--text-2); margin: 0 0 0.7rem; }
.detail-body > section { padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.detail-body > section:first-child { border-top: 0; padding-top: 0; }
.detail-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.deliverables li { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2); }
.deliverables strong { display: block; margin-bottom: 0.2rem; }
.deliverables span { color: var(--text-2); font-size: 0.93rem; }
.stack-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.stack-grid .chip { font-size: 0.86rem; padding: 0.4rem 0.8rem; }
.use-cases { display: grid; gap: 0; margin-top: 1rem; }
.use-cases > div { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.use-cases > div:last-child { border-bottom: 1px solid var(--line); }
.use-cases strong { font-weight: 600; }
.use-cases p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.related .project { padding: 1.3rem; }
.related .project h3 { font-size: 1.1rem; }

/* ---------- FAQ accordion ---------- */
.faq-cat { margin-bottom: 3rem; }
.faq-cat h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform 0.25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.3rem; color: var(--text-2); max-width: 70ch; }
.faq .answer p:last-child { margin: 0; }

/* ---------- About ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; background: var(--ink-2); display: grid; grid-template-columns: 72px 1fr; gap: 1.3rem; }
.person .avatar { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.person h3 { margin-bottom: 0.1rem; font-size: 1.25rem; }
.person .role { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.6rem; display: block; }
.person p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); }
.value svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 0.8rem; }
.value h4 { margin-bottom: 0.3rem; }
.value p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.timeline { border-left: 2px solid var(--line); padding-left: 2rem; display: grid; gap: 1.6rem; }
.timeline > div { position: relative; }
.timeline > div::before { content: ""; position: absolute; left: calc(-2rem - 6px); top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline strong { display: block; font-family: var(--font-display); }
.timeline p { margin: 0; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-list { display: grid; gap: 1rem; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink-3); display: grid; place-items: center; color: var(--accent); }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item strong { display: block; }
.contact-item a { color: var(--text-2); }
.contact-item a:hover { color: var(--accent); }
.form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 1.8rem; }
.form h3 { margin-bottom: 0.3rem; }
.form > p { color: var(--text-2); font-size: 0.95rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-note { font-size: 0.86rem; color: var(--text-3); margin-top: 1rem; }
.form .error { color: #f87171; font-size: 0.85rem; display: none; }
.form .error.show { display: block; }

/* ---------- Insights ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); display: flex; flex-direction: column; }
.post .cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink-3), color-mix(in srgb, var(--accent) 35%, var(--ink-3))); display: grid; place-items: center; color: var(--accent); }
.post .cover svg { width: 40px; height: 40px; }
.post .body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post .meta { font-size: 0.85rem; color: var(--text-3); }
.post h3 { font-size: 1.15rem; margin: 0; }
.post p { margin: 0; color: var(--text-2); font-size: 0.94rem; }
.post .soon { margin-top: auto; padding-top: 0.6rem; font-size: 0.85rem; color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid li a { color: var(--text-2); font-size: 0.93rem; }
.footer-grid li a:hover { color: var(--accent); }
.footer-brand img { height: 64px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-2); font-size: 0.93rem; max-width: 36ch; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-3); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list-check { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.6rem; }
.list-check li { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; color: var(--text-2); }
.list-check svg { width: 18px; height: 18px; color: var(--ok); margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stack { justify-self: start; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .hero-card { margin: 0; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project.featured { grid-column: span 2; }
  .posts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; }
  .toc .toc-cta { display: none; }
  .service-group { grid-template-columns: 1fr; gap: 1.2rem; }
  .service-group h3 { position: static; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split h2 { position: static; }
  .model, .values, .stats { grid-template-columns: 1fr 1fr; }
  .model > div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .theme-toggle { margin-left: auto; }
  .site-header .wrap { gap: 0.6rem; }
  .cta { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .contact-grid, .people, .grid-2, .deliverables, .related, .service-index { grid-template-columns: 1fr; }
  .service-index a:nth-child(odd) { border-right: 0; }
  .use-cases > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stack { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .projects, .posts, .footer-grid, .model, .values, .stats { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; }
  .brand small { display: none; }
  .brand img { height: 50px; }
  .hero-proof { gap: 1.2rem; }
  .wa-float { width: 48px; height: 48px; right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Fallback if the carousel library is unavailable: show slides as a grid */
.swiper:not(.swiper-initialized) .swiper-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+7) { display: none; }
.swiper:not(.swiper-initialized) .swiper-pagination, .swiper:not(.swiper-initialized) .swiper-button-prev, .swiper:not(.swiper-initialized) .swiper-button-next { display: none; }
@media (max-width: 1024px) { .swiper:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .swiper:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: 1fr; } }

/* =========================================================
   v2 additions
   ========================================================= */
.section.alt, .section-tight.alt { background: color-mix(in srgb, var(--ink-2) 55%, var(--ink)); }
.mt-1 { margin-top: 1rem; }
code { font-size: 0.9em; background: var(--ink-3); padding: 0.1em 0.4em; border-radius: 4px; }

/* progress bar + back to top + mobile CTA bar */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }
.to-top { position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ink-2); color: var(--text); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 18px; height: 18px; }
.mobile-cta { display: none; }

/* hero trims */
.hero-stack { max-width: 400px; }

/* audiences */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.audience { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); transition: border-color 0.2s, transform 0.2s; }
.audience:hover { border-color: var(--accent); transform: translateY(-3px); }
.audience .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.audience .ico svg { width: 22px; height: 22px; }
.audience h3 { font-size: 1.3rem; margin: 0.3rem 0 0; }
.audience p { margin: 0; color: var(--text-2); font-size: 0.96rem; flex: 1; }
.aud-links { font-size: 0.85rem; color: var(--accent); font-weight: 600; }

/* steps big */
.steps.big .step h4 { font-size: 1.3rem; }

/* numbers + quotes */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.numbers > div { padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); }
.numbers strong { display: block; font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.03em; }
.numbers span { color: var(--text-2); font-size: 0.92rem; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote { margin: 0; padding: 1.6rem; border-radius: var(--radius); background: var(--ink-2); border-left: 3px solid var(--accent); }
.quote p { font-size: 1.02rem; margin-bottom: 1rem; }
.quote footer { font-size: 0.88rem; color: var(--text-2); }
.quote footer span { color: var(--text-3); }

/* lead magnet */
.magnet { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.5rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.magnet > div:first-child { width: 56px; height: 56px; border-radius: 16px; background: var(--ink-3); color: var(--accent); display: grid; place-items: center; }
.magnet > div:first-child svg { width: 26px; height: 26px; }
.magnet h3, .magnet h4 { margin: 0 0 0.2rem; }
.magnet p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.magnet.inline { padding: 1.1rem 1.3rem; margin-top: 1.5rem; grid-template-columns: 44px 1fr auto; }
.magnet.inline > div:first-child { width: 44px; height: 44px; border-radius: 12px; }
.magnet.inline > div:first-child svg { width: 20px; height: 20px; }

/* engagement models */
.engagement { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.em { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.em:nth-child(2) { border-color: var(--accent); }
.em h3 { font-size: 1.3rem; }
.em p { color: var(--text-2); font-size: 0.96rem; }
.em ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.em li { display: grid; grid-template-columns: 20px 1fr; gap: 0.5rem; font-size: 0.95rem; color: var(--text-2); }
.em li svg { width: 16px; height: 16px; color: var(--ok); margin-top: 4px; }
.service-card.flag { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--ink-2)); }
.flag-label { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 0.4rem; }

/* page hero with aside diagram */
.page-hero.has-aside .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-diagram { padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--ink-2) 85%, transparent); color: var(--accent); display: grid; gap: 0.5rem; }
.flow { width: 100%; height: auto; display: block; }
.diagram-card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); color: var(--accent); margin: 1rem 0 1.5rem; }
.cover .flow { width: 90%; }

/* service detail extras */
.signs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.signs li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; color: var(--text-2); }
.signs svg { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.differs { display: grid; grid-template-columns: 24px 1fr; gap: 0.8rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--ink-3); margin-top: 1.2rem; }
.differs svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.differs p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.differs a { color: var(--accent); }
.first-eng { display: grid; grid-template-columns: 28px 1fr; gap: 0.9rem; padding: 1.3rem 1.5rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.first-eng svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.first-eng p { margin: 0; font-size: 1.02rem; }
.cs-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.cs-list a { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text-2); font-size: 0.93rem; }
.cs-list a:hover { border-color: var(--accent); color: var(--text); }
.cs-list svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.case-link { margin-top: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; }
.case-link svg { width: 15px; height: 15px; }

/* scroll prompt */
.scroll-prompt { position: fixed; right: 1.25rem; bottom: 6.5rem; z-index: 45; width: min(340px, calc(100vw - 2.5rem)); padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--ink-2); box-shadow: var(--shadow); transform: translateY(12px); opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.scroll-prompt[hidden] { display: none; }
.scroll-prompt.show { opacity: 1; transform: none; }
.scroll-prompt strong { display: block; margin-bottom: 0.2rem; }
.scroll-prompt p { font-size: 0.9rem; color: var(--text-2); margin: 0 0 0.8rem; }
.scroll-prompt .close { position: absolute; top: 0.6rem; right: 0.6rem; border: 0; background: transparent; color: var(--text-3); width: 28px; height: 28px; }
.scroll-prompt .close svg { width: 16px; height: 16px; }
.scroll-prompt .hero-actions { margin: 0; }

/* case studies */
.cs-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.cs-meta .tag { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.cs-meta .stack-grid { margin: 0; }
.cs-meta .chip:hover { border-color: var(--accent); color: var(--accent); }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.cs-side { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1rem; }
.results { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 0.8rem; }
.results h3 { margin: 0; font-size: 1.05rem; }
.results > div { display: grid; }
.results strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; color: var(--accent); }
.results span { color: var(--text-2); font-size: 0.9rem; }
.stack-card { padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); }
.stack-card h3 { font-size: 1.05rem; }
.stack-card .stack-grid { margin-top: 0.5rem; }
.approach { display: grid; gap: 0; }
.approach-item { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.approach-item h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.approach-item p { margin: 0; color: var(--text-2); }
.post.cs-card .cover { padding: 1rem; }
.post.dim { opacity: 0.7; }

/* articles / prose */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose p { max-width: 70ch; }
.prose .signature { font-family: var(--font-display); font-weight: 700; margin-top: 2rem; }
.meta-line { color: var(--text-3); font-size: 0.9rem; margin-bottom: 2rem; }
.share { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-3); }
.share a, .share button { color: var(--accent); font-weight: 600; background: none; border: 0; padding: 0; font-size: 0.9rem; }

/* checklists */
.checklist-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); position: sticky; top: calc(var(--nav-h) + 0.5rem); z-index: 5; margin-bottom: 1.5rem; }
.checklist-bar .bar { flex: 1; min-width: 120px; height: 8px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.checklist-bar .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
.checklist-sec h2 { font-size: 1.3rem; margin: 1.6rem 0 0.6rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.checklist label { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; color: var(--text-2); }
.checklist label:hover { border-color: var(--accent); }
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.checklist input:checked + span { color: var(--text-3); text-decoration: line-through; }
@media print { .site-header, .site-footer, .wa-float, .to-top, .mobile-cta, .checklist-bar button, .magnet, .drawer, .progress { display: none !important; } main { padding: 0; } .checklist label { border-color: #999; color: #000; } }

/* scorer */
.sq { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 0 0 0.8rem; }
.sq legend { font-weight: 600; padding: 0 0.4rem; }
.sq-opts { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.sq-opts label { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 0.92rem; color: var(--text-2); display: inline-flex; gap: 0.4rem; align-items: center; }
.sq-opts label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sq-opts input { accent-color: var(--accent); }
.score-result { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: start; margin-top: 2rem; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.score-result[hidden] { display: none; }
.score-ring { position: relative; width: 160px; }
.score-ring svg { width: 100%; }
.score-ring circle { transition: stroke-dashoffset 1s ease; }
.score-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.2rem; }
.score-result h3 { margin-top: 1.2rem; font-size: 1.1rem; }

/* contact v2 */
.contact-grid { grid-template-columns: 1.2fr 1fr; }
.optional { margin: 0.5rem 0 1rem; }
.optional summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; color: var(--accent); font-weight: 600; }
.optional summary svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-btn { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.chip-btn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.form .success { color: var(--ok); display: flex; gap: 0.5rem; align-items: center; font-weight: 600; }
.form .success svg { width: 18px; height: 18px; }
.clock-card { display: grid; gap: 0.3rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--ink-3); margin-top: 1rem; }
.clock { margin-top: 1rem; font-size: 0.9rem; color: var(--text-2); }
.licence { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; font-size: 0.85rem; color: var(--text-2); padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 0.5rem; max-width: 320px; }
.licence svg { width: 18px; height: 18px; color: var(--ok); }
.newsletter .field-row { grid-template-columns: 1fr auto; align-items: end; }
.person .li { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.8rem; font-size: 0.9rem; color: var(--accent); font-weight: 600; }
.person .li svg { width: 16px; height: 16px; }

/* careers */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.role-card { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 0.5rem; }
.role-card h3 { margin: 0; font-size: 1.2rem; }
.role-card .meta { color: var(--text-3); font-size: 0.88rem; }
.role-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.role-card .btn { justify-self: start; }

/* portfolio filter select on mobile */
.filter-select { display: none; margin-bottom: 1.5rem; }
.filter-select select { width: 100%; font: inherit; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--ink); color: var(--text); }

/* FAQ animation */
.faq .answer { overflow: hidden; }
.faq details.animating .answer { transition: height 0.25s ease; }

/* pause: hero canvas hidden when off-screen handled in JS */

@media (max-width: 1024px) {
  .audiences, .quotes, .engagement { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .page-hero.has-aside .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-side { position: static; grid-template-columns: 1fr 1fr; }
  .cs-side .toc-cta { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .magnet { grid-template-columns: 44px 1fr; }
  .magnet .btn { grid-column: 2; justify-self: start; }
  .filter { display: none; }
  .filter-select { display: block; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-cta .btn { justify-content: center; }
  .wa-float { bottom: 5rem; }
  .to-top { bottom: 8.5rem; }
  .scroll-prompt { bottom: 4.6rem; right: 0.8rem; }
  main { padding-bottom: 4rem; }
  .cs-side { grid-template-columns: 1fr; }
  .score-result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .score-result .signs { text-align: left; }
  .numbers { grid-template-columns: 1fr; }
}
.post .cover svg.flow { width: 92%; height: auto; }
@media (max-width: 860px) { .wa-float { display: none; } .to-top { bottom: 5rem; } }
