/* ==========================================================================
   Robinsfly — AI Agency site
   Design tokens mirror the live robinsfly.com theme (navy / gold system).
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #0B111A;
  --navy-900: #111A28;
  --navy-850: #0E1826;
  --navy-800: #16233A;
  --navy-700: #1D3F6B;
  --navy-600: #2A5586;
  --navy-500: #3D6690;
  --navy-100: #EAF0F7;
  --navy-50:  #F5F8FA;
  --gold-500: #FFCC00;
  --gold-600: #E8B800;
  --gold-100: #FFF6D6;
  --ink-900:  #0E141C;
  --ink-700:  #2B3646;
  --ink-500:  #5A6472;
  --ink-300:  #8D97A6;
  --line:      #DEE6EF;
  --line-dark: rgba(255,255,255,.12);
  --white:     #FFFFFF;
  --ok:  #1E8E5A;
  --err: #C4331E;
  --on-dark-muted: #A9B4C4;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Shape & depth */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14,20,28,.06), 0 1px 1px rgba(14,20,28,.04);
  --shadow-md: 0 8px 24px rgba(14,20,28,.08), 0 2px 6px rgba(14,20,28,.04);
  --shadow-lg: 0 24px 60px rgba(11,17,26,.16), 0 8px 20px rgba(11,17,26,.08);
  --shadow-gold: 0 10px 30px rgba(255,204,0,.25);

  /* Motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: .18s;
  --dur-med: .45s;
  --dur-slow: .9s;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --section-y: clamp(72px, 10vw, 136px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-500); color: var(--navy-950); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--navy-50); }
.section--dark { background: var(--navy-950); color: var(--white); }
.section--dark .lede, .section--dark .muted { color: var(--on-dark-muted); }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: var(--navy-600); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(255,204,0,.18); }
.section--dark .kicker, .page-hero .kicker, .hero .kicker { color: var(--gold-500); }

.h-display { font-size: clamp(42px, 5.8vw, 84px); line-height: .98; letter-spacing: -.04em; }
.h-xl { font-size: clamp(34px, 4.6vw, 60px); }
.h-lg { font-size: clamp(28px, 3.4vw, 44px); }
.h-md { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-500); max-width: 60ch; }
.muted { color: var(--ink-500); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lede { margin-top: 20px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.section-head--split .lede { margin-top: 0; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .9em 1.6em;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-600); color: var(--navy-950); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.btn-navy { background: var(--navy-700); color: var(--white); }
.btn-navy:hover { background: var(--navy-600); color: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.btn-outline.on-dark { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline.on-dark:hover { background: var(--white); border-color: var(--white); color: var(--navy-950); }
.btn-lg { min-height: 56px; font-size: 16.5px; padding: 1em 1.9em; }
.btn-sm { min-height: 40px; font-size: 14.5px; padding: .7em 1.2em; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-700); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold-500); }

/* ---------- Header / navbar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
}
/* Blur lives on a pseudo-element so the fixed mobile menu is positioned against the viewport */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11,17,26,.55);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med), border-color var(--dur-med), box-shadow var(--dur-med);
}
.site-header.is-scrolled::before, .nav-open .site-header::before { background: rgba(9,14,21,.96); border-color: var(--line-dark); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); flex: none; }
.brand:hover { color: var(--white); }
.brand-logo { height: 38px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 10px; }
.brand-word .brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-500); display: grid; place-items: center; color: var(--navy-950); font-size: 18px; letter-spacing: 0; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  color: rgba(255,255,255,.82); font-weight: 500; font-size: 15px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast);
}
@media (min-width: 1025px) and (max-width: 1240px) {
  .nav-link { padding: 10px 10px; font-size: 14.5px; }
  .nav-menu { gap: 0; }
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link .icon { width: 16px; height: 16px; transition: transform var(--dur-fast); }
.has-dropdown { position: relative; }
.has-dropdown.is-open > .nav-link .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--white); color: var(--ink-900);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transition: opacity var(--dur-fast), transform var(--dur-med) var(--ease-out), visibility var(--dur-fast);
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-dropdown:hover > .nav-link .icon { transform: rotate(180deg); }
}
.dropdown a { display: flex; gap: 14px; padding: 14px; border-radius: var(--radius-md); color: var(--ink-900); transition: background var(--dur-fast); }
.dropdown a:hover { background: var(--navy-50); color: var(--ink-900); }
.dropdown .dd-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-900); color: var(--gold-500); display: grid; place-items: center; flex: none; }
.dropdown strong { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: -.01em; }
.dropdown span.dd-text { display: block; font-size: 13.5px; color: var(--ink-500); line-height: 1.45; margin-top: 2px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-menu {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 20px var(--gutter) 40px; overflow-y: auto;
    background: var(--navy-950);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
  }
  .nav-open .nav-menu { transform: none; opacity: 1; visibility: visible; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 20px; padding: 16px 8px; border-radius: 10px; font-family: var(--font-display); font-weight: 600; }
  .dropdown {
    position: static; width: auto; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: rgba(255,255,255,.04); grid-template-columns: 1fr;
    display: none; margin: 4px 0 10px;
  }
  .has-dropdown.is-open .dropdown { display: grid; transform: none; }
  .dropdown a { color: var(--white); }
  .dropdown a:hover { background: rgba(255,255,255,.06); color: var(--white); }
  .dropdown span.dd-text { color: var(--on-dark-muted); }
  .nav-menu .mobile-cta { display: flex; margin-top: 18px; }
}
.mobile-cta { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
  padding-bottom: clamp(64px, 8vw, 112px);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(255,204,0,.16), transparent 60%),
    radial-gradient(800px 600px at 4% 100%, rgba(29,63,107,.55), transparent 60%),
    linear-gradient(180deg, #0B111A 0%, #0E1826 55%, #0B111A 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: var(--on-dark-muted); margin-top: 26px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; color: rgba(255,255,255,.78); font-size: 15px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 18px; height: 18px; color: var(--gold-500); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Signature: live agent console */
.console {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22,35,58,.92), rgba(17,26,40,.96));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.console-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.console-title .agent-ava { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-500); color: var(--navy-950); display: grid; place-items: center; }
.console-title .agent-ava .icon { width: 18px; height: 18px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #8EF0C1; background: rgba(30,142,90,.16); border: 1px solid rgba(30,142,90,.35); padding: 5px 10px; border-radius: var(--radius-pill); }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3BD58A; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59,213,138,.6);} 70% { box-shadow: 0 0 0 8px rgba(59,213,138,0);} 100% { box-shadow: 0 0 0 0 rgba(59,213,138,0);} }

.console-feed { padding: 10px 20px 6px; height: 352px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.console-feed::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; background: linear-gradient(180deg, rgba(22,35,58,1), rgba(22,35,58,0)); z-index: 1; pointer-events: none; }
.feed-row { display: grid; grid-template-columns: 52px 30px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.feed-row:last-child { border-bottom: 0; }
.feed-time { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-300); padding-top: 4px; }
.feed-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--on-dark-muted); }
.feed-ico .icon { width: 16px; height: 16px; }
.feed-row.is-key .feed-ico { background: rgba(255,204,0,.14); color: var(--gold-500); }
.feed-row.is-done .feed-ico { background: rgba(59,213,138,.14); color: #6EE7AE; }
.feed-text { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.92); }
.feed-text small { display: block; font-size: 13px; color: var(--on-dark-muted); margin-top: 2px; }
.feed-row.enter { animation: feedIn .6s var(--ease-out) both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.console-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.console-foot div { padding: 14px 20px; }
.console-foot div + div { border-left: 1px solid var(--line-dark); }
.console-foot b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.console-foot span { font-size: 12.5px; color: var(--on-dark-muted); }
.console-caption { margin-top: 12px; font-size: 13px; color: var(--ink-300); text-align: right; }
@media (max-width: 520px) {
  .console-feed { height: 330px; padding-inline: 14px; }
  .feed-row { grid-template-columns: 44px 28px 1fr; gap: 8px; }
  .console-foot div { padding: 12px; }
  .console-foot b { font-size: 18px; }
}

/* ---------- Platform marquee ---------- */
.platforms { background: var(--navy-950); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding-block: 26px; overflow: hidden; }
.platforms-inner { display: flex; align-items: center; gap: 36px; }
.platforms-label { flex: none; font-size: 14px; color: rgba(255,255,255,.6); max-width: 15ch; line-height: 1.35; }
.marquee { position: relative; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: rgba(255,255,255,.72); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .platforms-label { display: none; } }

/* ---------- Benefits (features) ---------- */
.benefits { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.benefits-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.benefits-intro .lede { margin-top: 22px; }
.benefits-intro .btn { margin-top: 34px; }
.benefit-list { border-top: 1px solid var(--line); }
.benefit { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.benefit-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--navy-900); color: var(--gold-500); display: grid; place-items: center; transition: transform var(--dur-med) var(--ease-out), background var(--dur-med); }
.benefit:hover .benefit-ico { transform: rotate(-6deg) scale(1.06); background: var(--navy-700); }
.benefit h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.02em; line-height: 1.2; }
.benefit p { margin-top: 8px; color: var(--ink-500); max-width: 56ch; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } .benefits-intro { position: static; } }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--ink-900);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med), border-color var(--dur-med);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink-900); }
.svc-visual { position: relative; height: 210px; background: var(--navy-900); overflow: hidden; }
.svc-body { padding: 30px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: clamp(24px, 2.4vw, 30px); }
.svc-body .svc-tag { margin-top: 10px; color: var(--ink-500); font-size: 17px; }
.svc-points { margin-top: 22px; display: grid; gap: 10px; }
.svc-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-700); }
.svc-points .icon { width: 18px; height: 18px; color: var(--navy-600); margin-top: 3px; }
.svc-body .link-arrow { margin-top: auto; padding-top: 26px; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

/* Service mini-visuals (pure CSS/SVG, subject-specific) */
.viz { position: absolute; inset: 0; display: grid; place-items: center; }
.viz svg { width: 100%; height: 100%; }
.viz-flow-node { fill: #16233A; stroke: rgba(255,255,255,.16); }
.viz-flow-node.is-gold { fill: rgba(255,204,0,.14); stroke: var(--gold-500); }
.viz-line { stroke: rgba(255,255,255,.25); stroke-width: 1.5; fill: none; stroke-dasharray: 5 6; animation: dash 1.6s linear infinite; }
.viz-line.is-gold { stroke: var(--gold-500); }
@keyframes dash { to { stroke-dashoffset: -22; } }
.viz-label { fill: rgba(255,255,255,.86); font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.viz-sub { fill: rgba(255,255,255,.5); font-family: var(--font-body); font-size: 10.5px; }

.chat-viz { width: 78%; max-width: 360px; display: grid; gap: 10px; }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; max-width: 82%; }
.bubble.in { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--gold-500); color: var(--navy-950); justify-self: end; border-bottom-right-radius: 4px; font-weight: 500; }
.bubble.action { justify-self: end; background: rgba(59,213,138,.14); color: #8EF0C1; border: 1px solid rgba(59,213,138,.3); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.bubble.action .icon { width: 14px; height: 14px; }

.reel-viz { display: flex; gap: 14px; align-items: center; }
.reel { width: 92px; height: 164px; border-radius: 14px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.reel:nth-child(1) { background: linear-gradient(160deg, #2A5586, #0E1826); transform: rotate(-6deg) translateY(8px); }
.reel:nth-child(2) { background: linear-gradient(160deg, #FFCC00, #E8B800 40%, #1D3F6B); transform: scale(1.08); z-index: 1; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.reel:nth-child(3) { background: linear-gradient(160deg, #3D6690, #111A28); transform: rotate(6deg) translateY(8px); }
.reel .play { position: absolute; inset: 0; display: grid; place-items: center; }
.reel .play span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--navy-950); }
.reel .cap { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.7); }
.reel .cap::after { content: ""; position: absolute; left: 0; top: 10px; width: 60%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); }
.reel .ab { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: rgba(11,17,26,.75); color: var(--white); }

.answer-viz { width: 80%; max-width: 380px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; }
.answer-q { font-size: 13px; color: rgba(255,255,255,.65); display: flex; gap: 8px; align-items: center; }
.answer-q .icon { width: 14px; height: 14px; }
.answer-a { margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,.9); line-height: 1.45; }
.answer-card { margin-top: 12px; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(255,204,0,.1); border: 1px solid rgba(255,204,0,.4); }
.answer-card .logo-dot { width: 30px; height: 30px; border-radius: 8px; background: var(--gold-500); flex: none; }
.answer-card b { display: block; font-size: 13px; color: var(--white); }
.answer-card small { font-size: 11.5px; color: rgba(255,255,255,.6); }
.answer-card .spons { margin-left: auto; font-size: 10.5px; color: var(--gold-500); font-weight: 600; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.process-rail { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line-dark); }
.process-rail span { position: absolute; inset: 0; background: var(--gold-500); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease-out); }
.process.is-in .process-rail span { transform: scaleX(1); }
.step { position: relative; }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-950); border: 2px solid var(--gold-500); color: var(--gold-500); font-family: var(--font-display); font-weight: 700; font-size: 20px; position: relative; z-index: 1; }
.step-when { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--gold-500); }
.step h3 { margin-top: 6px; font-size: 24px; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: var(--on-dark-muted); font-size: 15.5px; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .process-rail { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card { display: flex; flex-direction: column; }
.work-visual { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); }
.work-visual > * { transition: transform var(--dur-slow) var(--ease-out); }
.work-card:hover .work-visual > * { transform: scale(1.04); }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-sm); background: var(--navy-100); color: var(--navy-700); }
.chip--gold { background: var(--gold-100); color: #7A5A00; }
.work-card h3 { margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
.work-card p { margin-top: 10px; color: var(--ink-500); max-width: 58ch; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

/* portfolio mock frames */
.mock { position: absolute; inset: 0; padding: 7% 8%; }
.mock-browser { width: 100%; height: 100%; border-radius: 12px; background: var(--white); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.mock-browser .mb-bar { height: 26px; background: #E7ECF2; display: flex; align-items: center; gap: 6px; padding: 0 12px; flex: none; }
.mock-browser .mb-bar i { width: 8px; height: 8px; border-radius: 50%; background: #C3CBD6; }
.mock-browser .mb-bar em { margin-left: 10px; height: 12px; flex: 1; max-width: 50%; border-radius: 6px; background: #fff; font-style: normal; font-size: 9.5px; color: var(--ink-500); line-height: 12px; padding-left: 8px; font-family: var(--font-mono); }
.mock-browser .mb-body { flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; }
.mb-hero { padding: 7% 8%; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.sk { height: 9px; border-radius: 5px; background: rgba(255,255,255,.75); }
.sk.dark { background: rgba(14,20,28,.14); }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; } .sk.w90 { width: 90%; }
.sk.h16 { height: 16px; }
.sk-btn { width: 40%; height: 18px; border-radius: 9px; margin-top: 6px; }
.mb-form { margin: 10% 12% 10% 0; border-radius: 10px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 10%; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.mb-form .field { height: 14px; border-radius: 4px; border: 1px solid #DEE6EF; }

.mock-api { display: grid; place-items: center; }
.mock-phone { position: absolute; right: 9%; bottom: -8%; width: 30%; aspect-ratio: 9 / 18; border-radius: 22px; background: #0E141C; border: 6px solid #1D2635; padding: 10% 8%; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.mock-phone .bal { font-family: var(--font-display); color: var(--white); font-weight: 700; font-size: clamp(12px, 1.5vw, 18px); }
.mock-phone .row { height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); }
.mock-phone .row.gold { background: var(--gold-500); }

/* ---------- Stats band ---------- */
.stats { background: var(--navy-50); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: clamp(32px, 4vw, 52px) 20px; text-align: left; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -.04em; line-height: 1; color: var(--navy-950); font-variant-numeric: tabular-nums; }
.stat b sup { font-size: .45em; color: var(--navy-600); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat span { display: block; margin-top: 12px; color: var(--ink-500); font-size: 15px; line-height: 1.4; }
.stat.is-placeholder b { color: var(--ink-300); }
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- Testimonials ---------- */
.quotes { position: relative; }
.quotes-viewport { overflow: hidden; }
.quotes-track { display: flex; transition: transform .7s var(--ease-out); }
.quote { flex: 0 0 100%; margin: 0; padding: 0 4px 0 8px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -.025em; max-width: 28ch; color: var(--ink-900); }
.quote blockquote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: var(--gold-500); margin-bottom: 12px; }
.quote figcaption { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.quote .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote .who b { display: block; font-size: 16px; }
.quote .who span { font-size: 14.5px; color: var(--ink-500); }
.quotes-nav { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.q-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-900); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.q-btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.q-dots { display: flex; gap: 8px; margin-left: 10px; }
.q-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width var(--dur-med) var(--ease-out), background var(--dur-fast); }
.q-dots button[aria-current="true"] { width: 30px; background: var(--navy-700); }
.quote-note { margin-left: auto; font-size: 13px; color: var(--ink-300); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-side .lede { margin-top: 20px; }
.faq-side .contact-nudge { margin-top: 30px; padding: 22px; border-radius: var(--radius-md); background: var(--navy-50); border: 1px solid var(--line); }
.faq-side .contact-nudge p { font-size: 15.5px; color: var(--ink-700); }
.faq-side .contact-nudge .link-arrow { margin-top: 10px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.015em; line-height: 1.3; color: var(--ink-900); }
.faq-q:hover { color: var(--navy-700); }
.faq-q .plus { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: transform var(--dur-med) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.faq-item.is-open .plus { transform: rotate(45deg); background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-med) var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 56px 26px 0; color: var(--ink-500); max-width: 66ch; }
.no-js .faq-a { grid-template-rows: 1fr; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-side { position: static; } .faq-a p { padding-right: 0; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info .lede { margin-top: 22px; }
.contact-points { margin-top: 36px; display: grid; gap: 18px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,.88); }
.contact-points .ci { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: var(--gold-500); display: grid; place-items: center; flex: none; }
.contact-points b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--white); }
.contact-points span, .contact-points a { color: var(--on-dark-muted); font-size: 15.5px; }
.contact-points a:hover { color: var(--gold-500); }
.form-card { background: var(--white); color: var(--ink-900); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 80px rgba(0,0,0,.35); }
.form-card h3 { font-size: 26px; letter-spacing: -.02em; }
.form-card > p { margin-top: 8px; color: var(--ink-500); font-size: 15.5px; }
.form-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink-900);
  background: var(--navy-50); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(29,63,107,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); background: #FFF8F6; }
.field .err-msg { font-size: 13px; color: var(--err); display: none; }
.field.has-error .err-msg { display: block; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-500); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-700); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-actions small { color: var(--ink-300); font-size: 13.5px; }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form-status.is-ok { display: block; background: #EAF7EF; border: 1px solid #BFE6CC; color: var(--ok); }
.form-status.is-err { display: block; background: #FBEAE7; border: 1px solid #F1C4BB; color: var(--err); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 80px); background: var(--gold-500); color: var(--navy-950); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(11,17,26,.06); pointer-events: none; }
.cta-band h2 { font-size: clamp(30px, 4vw, 52px); }
.cta-band p { margin-top: 14px; font-size: 18px; color: rgba(11,17,26,.78); max-width: 52ch; }
.cta-band .btn-navy { background: var(--navy-950); }
.cta-band .btn-navy:hover { background: var(--navy-800); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); background: var(--navy-950); color: var(--on-dark-muted); padding-top: clamp(64px, 8vw, 100px); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-about p { margin-top: 20px; max-width: 38ch; font-size: 15.5px; }
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 16px; letter-spacing: -.01em; margin-bottom: 16px; }
.footer-col li { font-size: 15px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--on-dark-muted); font-size: 15px; }
.footer-col a:hover { color: var(--gold-500); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Service pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(760px 420px at 92% 0%, rgba(255,204,0,.15), transparent 60%),
    linear-gradient(180deg, #0B111A, #111E30);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: var(--gold-500); }
.crumbs .icon { width: 14px; height: 14px; opacity: .5; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -.04em; }
.page-hero .lede { color: var(--on-dark-muted); margin-top: 24px; }
.page-hero .hero-actions { margin-top: 34px; }
.facts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); font-size: 14.5px; color: rgba(255,255,255,.88); }
.facts .icon { width: 16px; height: 16px; color: var(--gold-500); }
@media (max-width: 960px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Before / after card */
.ba-card { border-radius: var(--radius-lg); background: rgba(22,35,58,.7); border: 1px solid rgba(255,255,255,.1); overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.ba-head { display: grid; grid-template-columns: 1fr 1fr; font-size: 13px; font-weight: 600; }
.ba-head span { padding: 14px 18px; }
.ba-head span:first-child { color: var(--ink-300); }
.ba-head span:last-child { color: var(--navy-950); background: var(--gold-500); }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.ba-row div { padding: 18px; font-size: 15px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.ba-row div:first-child { color: var(--on-dark-muted); text-decoration: line-through; text-decoration-color: rgba(196,51,30,.6); text-decoration-thickness: 1.5px; }
.ba-row div:last-child { color: var(--white); background: rgba(255,204,0,.06); font-weight: 500; }
.ba-row .icon { width: 18px; height: 18px; color: var(--gold-500); margin-top: 1px; }

/* Problem cards */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { padding: 30px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.problem .p-ico { width: 46px; height: 46px; border-radius: 12px; background: #FBEAE7; color: var(--err); display: grid; place-items: center; }
.problem h3 { margin-top: 20px; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.problem p { margin-top: 10px; color: var(--ink-500); font-size: 16px; }
@media (max-width: 900px) { .problems { grid-template-columns: 1fr; } }

/* Solution */
.solution { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.solution-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.solution-intro .lede { margin-top: 20px; }
.outcomes { display: grid; gap: 16px; }
.outcome { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px; border-radius: var(--radius-md); background: var(--navy-50); border: 1px solid var(--line); transition: background var(--dur-med), border-color var(--dur-med), transform var(--dur-med) var(--ease-out); }
.outcome:hover { background: var(--white); border-color: var(--navy-100); transform: translateX(4px); }
.outcome .o-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); color: var(--gold-500); display: grid; place-items: center; }
.outcome h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.25; }
.outcome p { margin-top: 6px; color: var(--ink-500); font-size: 16px; }
@media (max-width: 900px) { .solution { grid-template-columns: 1fr; } .solution-intro { position: static; } }

/* Service process timeline (vertical) */
.timeline { position: relative; max-width: 980px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line-dark); }
.timeline-fill { position: absolute; left: 27px; top: 10px; width: 2px; height: 0; background: var(--gold-500); transition: height .2s linear; }
.t-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding-bottom: 44px; }
.t-step:last-child { padding-bottom: 0; }
.t-step .step-num { transition: background var(--dur-med), color var(--dur-med); }
.t-step.is-lit .step-num { background: var(--gold-500); color: var(--navy-950); }
.t-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding-top: 6px; }
.t-body h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; }
.t-when { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--gold-500); margin-bottom: 8px; }
.t-body p { margin-top: 10px; color: var(--on-dark-muted); }
.t-deliver { align-self: start; padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); }
.t-deliver span { font-size: 13px; color: var(--ink-300); }
.t-deliver b { display: block; margin-top: 4px; color: var(--white); font-weight: 600; font-size: 15.5px; line-height: 1.4; }
@media (max-width: 760px) { .t-body { grid-template-columns: 1fr; gap: 14px; } .t-step { gap: 18px; } }

/* Tech stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack-group { padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); }
.stack-group h3 { font-size: 19px; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.stack-group h3 .icon { color: var(--navy-600); }
.stack-group p { margin-top: 8px; font-size: 15px; color: var(--ink-500); }
.tech-list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: var(--radius-sm); background: var(--navy-50); border: 1px solid var(--line); color: var(--ink-700); transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.tech-list li:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
@media (max-width: 960px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .stack { grid-template-columns: 1fr; } }

/* Use cases */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.usecase { padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--dur-med); }
.usecase:hover { background: var(--navy-50); }
.usecase h3 { font-size: 20px; letter-spacing: -.015em; }
.usecase p { margin-top: 10px; font-size: 15.5px; color: var(--ink-500); }
@media (max-width: 960px) { .usecases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usecases { grid-template-columns: 1fr; } }

/* Other services */
.other-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.other-svc { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); color: var(--ink-900); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.other-svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink-900); }
.other-svc .o-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-900); color: var(--gold-500); display: grid; place-items: center; }
.other-svc h3 { font-size: 21px; letter-spacing: -.02em; }
.other-svc p { color: var(--ink-500); font-size: 15.5px; }
.other-svc .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .other-svcs { grid-template-columns: 1fr; } }

/* ==========================================================================
   Scroll reveal (only when JS is running and motion is allowed)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero intro sequence */
.js .hero-seq > * { opacity: 0; transform: translateY(22px); animation: heroIn 1s var(--ease-out) forwards; }
.js .hero-seq > *:nth-child(1) { animation-delay: .05s; }
.js .hero-seq > *:nth-child(2) { animation-delay: .15s; }
.js .hero-seq > *:nth-child(3) { animation-delay: .28s; }
.js .hero-seq > *:nth-child(4) { animation-delay: .4s; }
.js .hero-seq > *:nth-child(5) { animation-delay: .5s; }
.js .hero-seq > *:nth-child(6) { animation-delay: .6s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .hero-seq > * { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Sticky WhatsApp button
   ========================================================================== */
.wa-float {
  position: fixed; z-index: 90;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0;
  height: 60px; min-width: 60px; padding: 0 18px 0 16px; border-radius: var(--radius-pill);
  background: #25D366; color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(11,17,26,.28), 0 2px 6px rgba(11,17,26,.18);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med), background var(--dur-fast), gap var(--dur-med) var(--ease-out);
}
.wa-float:hover, .wa-float:focus-visible { color: #FFFFFF; background: #1EBE5A; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,17,26,.32); gap: 10px; }
.wa-glyph { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width var(--dur-med) var(--ease-out), opacity var(--dur-fast); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 160px; opacity: 1; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: waPing 2.4s 1.5s 3;
}
@keyframes waPing { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .wa-float { height: 56px; min-width: 56px; padding: 0 14px; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float:hover .wa-label { max-width: 0; opacity: 0; }
  .wa-float:hover { gap: 0; }
}
@media print { .wa-float { display: none; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

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

/* Logged-in admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 1024px) { .admin-bar .nav-menu { top: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav-menu { top: calc(var(--header-h) + 46px + env(safe-area-inset-top, 0px)); }
}

/* Simple dark hero for pages, posts, archives, 404 */
.page-hero--simple { padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero--simple h1 { max-width: 20ch; }
.post-meta { margin-top: 18px; font-size: 15px; color: var(--on-dark-muted); }
.post-card .post-meta { margin-top: 0; color: var(--ink-300); font-size: 14px; }

/* Long-form content */
.prose { max-width: 760px; font-size: 18px; line-height: 1.75; color: var(--ink-700); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.8em; color: var(--ink-900); }
.prose h3 { font-size: clamp(21px, 2vw, 25px); margin-top: 1.6em; letter-spacing: -.02em; color: var(--ink-900); }
.prose h4 { font-size: 19px; margin-top: 1.4em; color: var(--ink-900); letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-700); }
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-500); font-family: var(--font-display); font-size: 22px; line-height: 1.4; color: var(--ink-900); }
.prose img { height: auto; border-radius: var(--radius-md); }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .wp-caption-text { font-size: 14px; color: var(--ink-500); margin-top: 8px; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--navy-50); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--navy-950); color: #E6EDF7; padding: 20px; border-radius: var(--radius-md); overflow-x: auto; font-size: 14.5px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .alignwide { max-width: 1040px; }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.post-hero-img { margin: 0 0 1.6em; }
.post-hero-img img { width: 100%; }
.post-tags a { display: inline-block; margin: 0 6px 6px 0; font-size: 14px; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-sm); background: var(--navy-100); color: var(--navy-700); text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.post-nav a { text-decoration: none; }
.page-links { margin-top: 24px; font-weight: 600; }

/* Blog grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-img { display: block; aspect-ratio: 16 / 10; background: var(--navy-900); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold-500); background: radial-gradient(400px 200px at 80% 0%, rgba(255,204,0,.14), transparent 60%), var(--navy-900); }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.post-card h2 a { color: var(--ink-900); }
.post-card h2 a:hover { color: var(--navy-700); }
.post-card p { color: var(--ink-500); font-size: 15.5px; }
.post-card .link-arrow { margin-top: auto; padding-top: 8px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); font-weight: 600; color: var(--ink-900); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.search-form { display: flex; gap: 10px; margin-top: 20px; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--navy-50); }
.search-form input[type="submit"] { font: inherit; font-weight: 600; padding: 12px 20px; border: 0; border-radius: var(--radius-pill); background: var(--navy-700); color: var(--white); cursor: pointer; }

/* 404: four service links */
.other-svcs--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .other-svcs--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .other-svcs--four { grid-template-columns: 1fr; } }

/* Stats band when the clients number is hidden */
.stats-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .stats-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid.cols-4 .stat:last-child { grid-column: auto; border-left: 1px solid var(--line); }
}

/* Note only logged-in editors see */
.admin-hint { margin: 0 0 28px; padding: 12px 16px; border-radius: 10px; background: var(--gold-100); color: #7A5A00; font-size: 14.5px; border: 1px dashed #E8B800; }
.admin-hint a { color: #5C4300; font-weight: 600; text-decoration: underline; }
