/* =========================================================
   Advance Communications — Design System
   Brand: Orange #F26522 / Black / subtle green outline
   Typography: Space Grotesk (display) + Inter (body)
   ========================================================= */

:root {
  /* Brand */
  --brand: #F26522;
  --brand-dark: #D9501A;
  --brand-light: #FF8749;
  --brand-glow: rgba(242, 101, 34, 0.35);
  --accent-green: #2E7D4F;

  /* Neutrals */
  --ink: #0B0B0C;
  --ink-2: #1A1A1D;
  --ink-3: #2A2A2F;
  --slate: #6B6B72;
  --slate-2: #9A9AA1;
  --line: #E8E8EC;
  --line-2: #F2F2F5;
  --bg: #FAFAF7;
  --bg-2: #FFFFFF;
  --bg-dark: #0B0B0C;
  --bg-dark-2: #131317;

  /* Radii & shadow */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(11,11,12,0.04), 0 1px 2px rgba(11,11,12,0.06);
  --shadow-md: 0 8px 24px rgba(11,11,12,0.06), 0 2px 6px rgba(11,11,12,0.04);
  --shadow-lg: 0 24px 60px rgba(11,11,12,0.10), 0 8px 16px rgba(11,11,12,0.06);
  --shadow-brand: 0 20px 50px rgba(242,101,34,0.25);

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--brand-glow);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 700; }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

p { text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--slate); max-width: 62ch; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(250,250,247,0.92); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background .2s, color .2s;
  position: relative;
}
.nav-links a:hover { background: var(--line-2); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--brand); border-radius: 1px;
}
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(242,101,34,0.25);
}
.nav-links a.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242,101,34,0.35);
}

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  background: var(--line-2);
}
.nav-burger span {
  width: 18px; height: 2px; background: var(--ink);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 16px; right: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open a { padding: 12px 16px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--f-body);
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-dark); box-shadow: 0 28px 60px rgba(242,101,34,.35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); }

.btn svg { width: 16px; height: 16px; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* =========================================================
   Hero (used on homepage)
   ========================================================= */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: -15% -5%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  will-change: transform;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(250,247,242,0.92) 0%, rgba(250,247,242,0.78) 45%, rgba(250,247,242,0.35) 70%, rgba(250,247,242,0.15) 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,11,12,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,11,12,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, var(--brand-glow), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 span.accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--slate);
  max-width: 560px;
}
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges {
  margin-top: 40px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--slate);
}
.hero-badges .badge {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-badges .badge::before {
  content: '✓';
  width: 18px; height: 18px;
  background: var(--brand); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 300px;
}

/* =========================================================
   Sections
   ========================================================= */
.section-head {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,0.7); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background:
    linear-gradient(180deg, #f6f1e8 0%, #ece4d4 100%);
  color: var(--slate);
  padding: 96px 0 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 20%, var(--brand) 80%, transparent);
  opacity: 0.6;
}
.footer::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  bottom: -300px; right: -200px;
  background: radial-gradient(circle, rgba(242,101,34,0.10), transparent 60%);
  pointer-events: none;
}
.footer h4 { color: var(--ink); font-family: var(--f-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer a { color: var(--slate); display: block; padding: 6px 0; font-size: 14px; transition: color .2s, transform .2s; }
.footer a:hover { color: var(--brand); transform: translateX(2px); }
.footer-logo { width: 180px; margin-bottom: 20px; filter: none; }
.footer-brand-p { font-size: 14px; line-height: 1.65; margin-bottom: 20px; max-width: 32ch; color: var(--slate); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
  color: var(--slate);
  position: relative;
  z-index: 1;
}

/* =========================================================
   Chat bubble
   ========================================================= */
.chat-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 16px 36px rgba(242,101,34,.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; color: #fff; }
.chat-fab .pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}
.chat-modal {
  position: fixed;
  bottom: 104px; right: 28px;
  z-index: 91;
  width: 360px; max-width: calc(100vw - 56px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s, opacity .25s;
}
.chat-modal.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.chat-modal-head {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 20px;
}
.chat-modal-head h4 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.chat-modal-head p { font-size: 13px; opacity: .9; }
.chat-modal-body { padding: 20px; font-size: 14px; color: var(--slate); }
.chat-msg {
  background: var(--line-2);
  padding: 12px 14px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  margin-bottom: 12px;
  color: var(--ink);
}
.chat-modal-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex; gap: 8px;
}
.chat-modal-foot input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  background: var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
}
.chat-modal-foot button {
  width: 40px; height: 40px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   Reveal / micro-animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Utility
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(242,101,34,0.10);
  color: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
.pill-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.divider { height: 1px; background: var(--line); margin: 48px 0; }

/* For placeholder images */
.ph-image {
  width: 100%;
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg,
      var(--line-2),
      var(--line-2) 10px,
      var(--line) 10px,
      var(--line) 20px);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--slate);
  position: relative;
  overflow: hidden;
}

/* ============ PARALLAX HERO (all pages) ============ */
.phero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0 80px;
  color: #fff;
}
.phero-img {
  position: absolute;
  inset: -20% -5%;
  z-index: -3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.phero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 20% 30%, rgba(242,101,34,0.35), transparent 60%),
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.85) 100%);
}
.phero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.phero-inner { max-width: 880px; position: relative; z-index: 1; }
.phero .eyebrow { color: var(--brand-light); }
.phero h1 {
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 20px;
  text-wrap: balance;
}
.phero h1 .accent { color: var(--brand-light); }
.phero-sub {
  color: rgba(255,255,255,0.82);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 640px;
  text-wrap: pretty;
}
.phero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.phero-badges {
  margin-top: 28px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.phero-badges .badge {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.phero-kicker {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 640px) {
  .phero { min-height: 520px; padding: 100px 0 60px; }
  .phero-kicker { display: none; }
}
[data-lax] { will-change: transform; transform: translateY(var(--lax-y, 0)); transition: transform 0s linear; }
[data-lax-fade] { opacity: 0; transform: scale(1.02); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.8,.2,1); }
[data-lax-fade].lax-loaded { opacity: 1; transform: scale(1); }

/* Parallax banner */
.lax-banner {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.lax-banner-img {
  position: absolute;
  inset: -15% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.lax-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,12,0.45) 0%, rgba(11,11,12,0.75) 100%);
}
.lax-banner-inner {
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 80px 28px;
}
.lax-banner-inner h2 { color: #fff; font-size: clamp(36px, 5vw, 64px); }
.lax-banner-inner p { color: rgba(255,255,255,0.85); font-size: clamp(16px, 1.4vw, 20px); margin-top: 20px; }

/* Print-ready focus states (a11y) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============ HOME SPECIFIC ============ */

/* Home-specific styles */

/* ====== Hero visual ====== */
.hv-bg {
  position: absolute;
  inset: 20px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 32px;
  transform: rotate(-3deg);
  z-index: 0;
  box-shadow: 0 40px 80px rgba(242,101,34,0.35);
}
.hv-card {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(11,11,12,0.18), 0 8px 24px rgba(11,11,12,0.08);
  aspect-ratio: 5/6;
  transform: translateY(0);
}
.hv-card img { width: 100%; height: 100%; object-fit: cover; }
.hv-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,11,12,0.25) 100%);
}

.hv-tag {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: floaty 6s ease-in-out infinite;
}
.hv-tag-1 { top: 30px; left: -24px; }
.hv-tag-2 { bottom: 40px; right: -30px; animation-delay: -3s; flex-direction: column; text-align: center; padding: 18px 22px; }
@media (max-width: 540px) {
  .hv-tag-1 { left: 8px; top: 16px; padding: 10px 12px; }
  .hv-tag-2 { right: 8px; bottom: 20px; padding: 12px 14px; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hv-dot {
  width: 10px; height: 10px;
  background: #2E7D4F; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46,125,79,0.2);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,79,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(46,125,79,0); }
}
.hv-tag-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.hv-tag-sub { font-size: 11px; color: var(--slate); }

.hv-stat-n { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--brand); line-height: 1; }
.hv-stat-l { font-size: 11px; color: var(--slate); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Parallax via mouse move (home.js) */
.hero-visual { will-change: transform; }

/* ====== Clients carousel ====== */
.clients {
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.clients-head {
  text-align: center;
  margin-bottom: 36px;
}
.clients-head p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 15px;
}
.clients-track-wrap {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.clients-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 48px;
  width: max-content;
  align-items: center;
  animation: scroll-clients 40s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.c-logo {
  flex: 0 0 220px;
  width: 220px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  box-sizing: border-box;
}
.c-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.6;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.c-logo:hover img {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: scale(1.06);
}
@keyframes scroll-clients {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(calc(-50% - 24px), 0, 0); }
}
@media (max-width: 640px) {
  .c-logo { flex: 0 0 140px; width: 140px; height: 72px; }
  .clients-track { gap: 32px; }
  @keyframes scroll-clients {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(calc(-50% - 16px), 0, 0); }
  }
}

/* ====== Services grid ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(242,101,34,0.08), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.svc-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(242,101,34,0.10);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.svc-icon svg { width: 28px; height: 28px; }

.svc-card h3 { margin-bottom: 10px; font-size: 22px; }
.svc-card p { color: var(--slate); margin-bottom: 20px; font-size: 15px; }
.svc-link {
  color: var(--brand);
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  transition: transform .2s;
}
.svc-link:hover { transform: translateX(4px); }

/* ====== Stats strip ====== */
.stats-strip { padding: 80px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.stat-n {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.stat-l {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ====== Why Advance ====== */
.why { padding: 120px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

.why-list { margin-top: 32px; display: grid; gap: 20px; }
.why-item { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.why-ck {
  width: 28px; height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.why-item strong { display: block; margin-bottom: 4px; font-size: 16px; }
.why-item p { color: var(--slate); font-size: 14px; }

.why-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.why-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.wv-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,11,12,0.6) 100%);
  z-index: 2; pointer-events: none;
}
.wv-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  z-index: 3;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.wv-badge svg { color: var(--brand); }

/* ====== Calculator preview ====== */
.calc-preview { padding: 100px 0; }
.calc-pv-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .calc-pv-grid { grid-template-columns: 1fr; gap: 40px; } }

.calc-pv-card {
  background: var(--bg-dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 32px;
}
.calc-pv-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.calc-pv-bar { margin-bottom: 20px; }
.calc-pv-bar-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.calc-pv-bar-track {
  height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden;
}
.calc-pv-bar-fill { height: 100%; border-radius: 5px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.calc-pv-bar-value { font-family: var(--f-display); font-size: 18px; font-weight: 600; margin-top: 8px; color: #fff; }

.calc-pv-saving {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  text-align: center;
}
.calc-pv-saving-l { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 6px; }
.calc-pv-saving-n { font-family: var(--f-display); font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.calc-pv-saving-s { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ====== Timeline teaser ====== */
.timeline-teaser { padding: 100px 0; background: #fff; }
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 48px 0 32px;
  position: relative;
  counter-reset: tl;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 32px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(to right, var(--line), var(--brand), var(--line));
}
.timeline li {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.timeline li::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: #fff;
  border: 3px solid var(--brand);
  border-radius: 50%;
  margin: 24px auto 16px;
  position: relative;
  z-index: 2;
}
.tl-year {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.timeline li strong {
  display: block;
  font-family: var(--f-display);
  font-size: 16px;
  margin-bottom: 6px;
}
.timeline li p { font-size: 13px; color: var(--slate); line-height: 1.5; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 20px; right: auto; width: 2px; height: auto; }
  .timeline li { text-align: left; padding-left: 48px; margin-bottom: 28px; }
  .timeline li::before { position: absolute; left: 12px; top: 0; margin: 0; }
}

/* ====== Testimonial ====== */
.testimonial { padding: 100px 0; background: var(--bg); }
.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote p {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  position: relative;
}
.quote p::before {
  content: '“';
  display: block;
  font-size: 120px;
  line-height: 0.5;
  color: var(--brand);
  margin-bottom: 20px;
  font-family: var(--f-display);
}
.quote footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--slate);
}
.quote footer strong { color: var(--ink); }

/* ====== CTA final ====== */
.cta-final { padding: 120px 0; }
.cta-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(250,247,242,0.92)),
    url('https://images.unsplash.com/photo-1557426272-fc759fdf7a8d?w=1800&q=80&auto=format&fit=crop') center/cover;
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(242,101,34,0.25);
}
.cta-card::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  top: -180px; right: -180px;
  background: radial-gradient(circle, rgba(242,101,34,0.30), transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.cta-card::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  bottom: -250px; left: -180px;
  background: radial-gradient(circle, rgba(242,101,34,0.18), transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.cta-card h2 { color: var(--ink); position: relative; z-index: 2; }
.cta-card p { position: relative; z-index: 2; margin-top: 20px; max-width: 620px; margin-left: auto; margin-right: auto; color: var(--slate); font-size: 17px; }
.cta-ctas { position: relative; z-index: 2; margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero parallax via mouse */
.hero-visual.parallax .hv-bg { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.hero-visual.parallax .hv-card { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.hero-visual.parallax .hv-tag { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
