/* =========================================================
   EMPro Solutions — Global Styles (WHITE THEME)
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #eef3fa;
  --panel: #ffffff;
  --border: #e4e9f0;
  --border-strong: #d3dae5;
  --text: #0a2540;
  --text-soft: #33415a;
  --muted: #64748b;
  --accent: #0066ff;
  --accent-2: #00c9a7;
  --gold: #ffb800;
  --navy: #0a2540;
  --max: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   LOGO-INSPIRED BACKGROUND
   The same chevrons + dot used as a large, subtle watermark
   ========================================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(0, 102, 255, 0.055) 0%, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(255, 184, 0, 0.06) 0%, transparent 38%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%230a2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.07'><path d='M30 100 L90 40 L150 100'/><path d='M30 150 L90 90 L150 150'/><circle cx='150' cy='40' r='5' fill='%23ffb800' stroke='none' opacity='0.55'/></g></svg>");
  background-size: auto, auto, 340px 340px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(255,255,255,0.75) 100%);
}

a { color: inherit; text-decoration: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
  font-weight: 600;
}

.gradient-text {
  background: linear-gradient(135deg, #0066ff, #0047b3 60%, #0a2540);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section { padding: 100px 0; position: relative; }
.section-tight { padding: 70px 0; position: relative; }

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.section-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid rgba(0, 102, 255, 0.28);
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.06);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 28px 100px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 900px; height: 900px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%230066ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.10'><path d='M40 110 L100 50 L160 110'/><path d='M40 150 L100 90 L160 150'/></g><circle cx='160' cy='50' r='8' fill='%23ffb800' opacity='0.18'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: floatMark 14s ease-in-out infinite;
}
@keyframes floatMark {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 0.95; }
  50%      { transform: translate(-50%, -58%) scale(1.04); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 40px;
}

.hero-mark {
  position: relative;
  width: 140px;
  height: 140px;
}
.hero-mark svg { width: 100%; height: 100%; overflow: visible; }

.hero-mark .h-chev-1,
.hero-mark .h-chev-2 {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: heroDraw 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-mark .h-chev-1 { stroke: #0066ff; animation-delay: 0.2s; }
.hero-mark .h-chev-2 { stroke: #0a2540; animation-delay: 0.5s; }
.hero-mark .h-dot {
  fill: var(--gold);
  opacity: 0;
  transform-origin: 118px 22px;
  animation: heroPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards;
}
.hero-mark .h-halo {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 118px 22px;
  animation: haloTrace 2.6s ease-out 2.2s infinite;
}
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
@keyframes heroPop {
  0%   { opacity: 0; transform: scale(0.2); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes haloTrace {
  0%   { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 0;   transform: scale(2.1); }
}

.hero-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: 0.28em;
  color: var(--navy);
  text-indent: 0.28em;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s forwards;
}
.hero-wordmark-sub {
  font-size: 10px;
  letter-spacing: 0.65em;
  color: var(--muted);
  margin-top: 6px;
  text-indent: 0.65em;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.85s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 2s forwards;
}
.hero .tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 2.2s forwards;
}
.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 2.4s forwards;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #0066ff, #0047b3);
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(0, 102, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(0, 102, 255, 0.75);
}
.btn-ghost {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 14px -6px rgba(10, 37, 64, 0.08);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(0, 102, 255, 0.35);
}

/* ============ SCROLL HINT ============ */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 3px;
  animation: bounce 2.2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============ PANELS / CARDS ============ */
.panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 18px -12px rgba(10, 37, 64, 0.08);
}
.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 20px 40px -20px rgba(10, 37, 64, 0.15);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ============ ABOUT PAGE ============ */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 620px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%230066ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.08'><path d='M40 110 L100 50 L160 110'/><path d='M40 150 L100 90 L160 150'/></g><circle cx='160' cy='50' r='8' fill='%23ffb800' opacity='0.16'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.prose p { margin-bottom: 22px; font-size: 1.05rem; line-height: 1.8; color: var(--text-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.belief {
  background: linear-gradient(145deg, #ffffff, #f4f8ff);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 50px -30px rgba(10, 37, 64, 0.2);
}
.belief::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 500px; height: 500px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%2300c9a7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.14'><path d='M40 110 L100 50 L160 110'/><path d='M40 150 L100 90 L160 150'/></g><circle cx='160' cy='50' r='8' fill='%23ffb800' opacity='0.22'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.belief h2 { margin-bottom: 24px; position: relative; }
.belief p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
  position: relative;
  color: var(--text-soft);
}
.belief p:last-child { margin-bottom: 0; }
.belief strong { color: var(--text); font-weight: 600; }

/* ============ SERVICES (legacy) ============ */
.service {
  padding: 32px 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px -12px rgba(10, 37, 64, 0.08);
}
.service::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%230066ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.15'><path d='M20 60 L50 30 L80 60'/><path d='M20 80 L50 50 L80 80'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 20px 40px -20px rgba(0, 102, 255, 0.25);
}
.service .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
}
.service h3 { margin-bottom: 10px; font-size: 1.15rem; position: relative; }
.service p { font-size: 0.95rem; position: relative; }

/* ============ CTA ============ */
.cta-band {
  text-align: center;
  padding: 90px 32px;
  background: linear-gradient(145deg, #f4f8ff, #eaf1ff);
  border-radius: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%230a2540' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.06'><path d='M40 110 L100 50 L160 110'/><path d='M40 150 L100 90 L160 150'/></g><circle cx='160' cy='50' r='8' fill='%23ffb800' opacity='0.2'/></svg>");
  background-size: 260px 260px;
  background-repeat: repeat;
  opacity: 0.9;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(244, 248, 255, 0.85) 100%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; color: var(--text-soft); }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 70px 28px 30px;
  margin-top: 60px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  bottom: -40px; right: 40px;
  width: 260px; height: 260px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%230a2540' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.05'><path d='M40 110 L100 50 L160 110'/><path d='M40 150 L100 90 L160 150'/></g><circle cx='160' cy='50' r='8' fill='%23ffb800' opacity='0.15'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-brand .brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--navy);
}
.footer-brand .brand-sub {
  font-size: 9px;
  letter-spacing: 0.55em;
  color: var(--muted);
  margin-left: 6px;
}
.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.92rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
}
.footer-cols a {
  display: block;
  color: var(--text-soft);
  font-size: 0.94rem;
  padding: 6px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-cols a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 30px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE (global) ============ */
@media (max-width: 860px) {
  .section { padding: 70px 0; }
  .belief { padding: 40px 28px; }
  .footer-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { gap: 28px; }
  .page-hero { padding: 150px 0 60px; }
  body::before { background-size: auto, auto, 260px 260px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .hero { padding: 120px 20px 80px; }
  .hero-mark { width: 110px; height: 110px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  body::before { background-size: auto, auto, 200px 200px; }
}

/* ============ QUOTE LIST (About page) ============ */
.quote-list {
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

.quote-list li {
  position: relative;
  padding: 20px 24px 20px 56px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 18px -12px rgba(10, 37, 64, 0.08);
}

.quote-list li::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 16 L12 10 L18 16' fill='none' stroke='%230066ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/><circle cx='18' cy='10' r='1.8' fill='%23ffb800'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

.quote-list li:hover {
  transform: translateX(4px);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 14px 30px -18px rgba(0, 102, 255, 0.3);
}

/* ============ CLOSING LINE ============ */
.closing-line {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  font-family: 'Montserrat', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 28px;
}

.closing-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0066ff, #00c9a7);
}

/* =========================================================
   WHAT CAN WE DO FOR YOU — Service Tiles
   ========================================================= */

.services-section {
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
}

.services-intro {
  max-width: 780px;
  margin-bottom: 56px;
}
.services-intro .section-num {
  display: inline-block;
  margin-bottom: 16px;
}
.services-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.services-intro .lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 680px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  position: relative;
}

.tile {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 32px 28px;
  box-shadow: 0 4px 20px -14px rgba(10, 37, 64, 0.12);
  transition:
    transform   0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    box-shadow  0.35s ease;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;

  opacity: 0;
  transform: translateY(36px) scale(0.98);
}
.tile.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity   0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    box-shadow  0.35s ease;
}
.tile[data-delay="1"].reveal.in { transition-delay: 0.08s; }
.tile[data-delay="2"].reveal.in { transition-delay: 0.16s; }
.tile[data-delay="3"].reveal.in { transition-delay: 0.24s; }
.tile[data-delay="4"].reveal.in { transition-delay: 0.32s; }

/* Chevron watermark on each tile */
.tile::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 180px; height: 180px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%230066ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.12'><path d='M20 58 L50 28 L80 58'/><path d='M20 78 L50 48 L80 78'/></g><circle cx='80' cy='28' r='5' fill='%23ffb800' opacity='0.5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
  opacity: 0.9;
}

/* Spotlight inside tile (radial glow that follows cursor) */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(0, 102, 255, 0.10),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.tile:hover::after {
  opacity: 1;
}

.tile:hover {
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 26px 50px -28px rgba(10, 37, 64, 0.28);
}
.tile:hover::before {
  opacity: 1;
  transform: scale(1.06);
}

.tile-featured {
  background: linear-gradient(160deg, #ffffff 55%, #f4f8ff 100%);
  border-color: rgba(0, 102, 255, 0.18);
}
.tile-featured .tile-num {
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff, #0047b3);
  box-shadow: 0 6px 18px -8px rgba(0, 102, 255, 0.6);
}
.tile-featured .tile-icon { color: var(--accent); }

.tile-wide {
  grid-column: 1 / -1;
  padding-right: 60px;
}
.tile-wide::before {
  right: -20px;
  width: 220px;
  height: 220px;
  opacity: 0.7;
}

/* ---------- Tile inner layers (3D depth on tilt) ---------- */
.tile .tile-num,
.tile .tile-icon,
.tile h3,
.tile .tile-list,
.tile .tile-blurb,
.tile .tile-cta {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateZ(0);
}
.tile.tilting .tile-num   { transform: translateZ(30px); }
.tile.tilting .tile-icon  { transform: translateZ(22px); }
.tile.tilting h3          { transform: translateZ(18px); }
.tile.tilting .tile-blurb { transform: translateZ(12px); }
.tile.tilting .tile-list  { transform: translateZ(10px); }
.tile.tilting .tile-cta   { transform: translateZ(24px); }

/* Smooth tilt transitions */
.tile.tilting {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease,
              box-shadow  0.35s ease;
}

.tile-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.15);
  margin-bottom: 20px;
}
.tile:hover .tile-num {
  transform: translateY(-2px) rotate(-4deg);
}

/* ---------- Icon with micro-animations ---------- */
.tile-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: 16px;
}
.tile-icon svg { width: 100%; height: 100%; }
.tile:hover .tile-icon {
  color: var(--accent);
}

/* SVG stroke draw-in on hover */
.tile-icon svg [stroke] {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile:hover .tile-icon svg [stroke] {
  stroke-dashoffset: 0;
}

/* Pop for solid fills */
.tile-icon svg circle[fill]:not([fill="none"]) {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
  transform-box: fill-box;
}
.tile:hover .tile-icon svg circle[fill]:not([fill="none"]) {
  transform: scale(1.4);
}

/* Soft pulse ring behind icon */
.tile-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, transparent 65%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.tile:hover .tile-icon::after {
  opacity: 1;
  transform: scale(1);
}

.tile h3 {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  max-width: 340px;
}

.tile-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tile-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.tile-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 15 L12 10 L17 15' fill='none' stroke='%230066ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}
.tile:hover .tile-list li::before {
  transform: translateY(-1px);
}

.tile-list-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 9px;
}

.tile-blurb {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 720px;
}

.tile-cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 4px;
}
.tile-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  transition: gap 0.3s ease, color 0.25s ease;
}
.tile-cta a span {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile-cta a:hover { gap: 10px; }
.tile-cta a:hover span { transform: translateX(2px); }

/* Cursor spotlight across the grid */
.tile-grid::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 102, 255, 0.10),
    rgba(0, 102, 255, 0.04) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.tile-grid:hover::after {
  opacity: 1;
}

.services-outro {
  margin-top: 60px;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(145deg, #f4f8ff, #ffffff);
  border: 1px solid var(--border);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.services-outro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%230066ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.06'><path d='M40 110 L100 50 L160 110'/><path d='M40 150 L100 90 L160 150'/></g><circle cx='160' cy='50' r='8' fill='%23ffb800' opacity='0.16'/></svg>");
  background-size: 260px 260px;
  background-repeat: repeat;
  pointer-events: none;
}
.services-outro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(255, 255, 255, 0.85) 100%);
  pointer-events: none;
}
.services-outro > * { position: relative; z-index: 1; }
.services-outro p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 22px;
}

/* =========================================================
   SERVICE TILES — Responsive
   ========================================================= */
@media (max-width: 900px) {
  .tile-grid { gap: 18px; }
  .tile { padding: 28px 26px 24px; }
  .tile h3 { font-size: 1.15rem; }
  .tile-wide { padding-right: 40px; }
  .tile-list-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-intro { margin-bottom: 40px; }
  .tile-wide { padding-right: 26px; }
  .tile::before { width: 140px; height: 140px; top: -20px; right: -20px; }
}
@media (max-width: 480px) {
  .services-section { padding-top: 60px; padding-bottom: 60px; }
  .tile { padding: 24px 20px 20px; border-radius: 16px; }
  .tile-num { width: 34px; height: 34px; font-size: 13px; margin-bottom: 16px; }
  .tile-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .tile h3 { font-size: 1.08rem; margin-bottom: 14px; }
  .tile-list li { font-size: 0.9rem; padding-left: 22px; }
  .tile-list li::before { width: 11px; height: 11px; }
  .services-outro { padding: 36px 22px; margin-top: 40px; }
  .services-outro p { font-size: 0.98rem; }
}

/* Disable tilt + icon animations on touch / reduced-motion */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .tile.tilting { transform: none !important; }
  .tile.tilting .tile-num,
  .tile.tilting .tile-icon,
  .tile.tilting h3,
  .tile.tilting .tile-blurb,
  .tile.tilting .tile-list,
  .tile.tilting .tile-cta { transform: none !important; }

  .tile:hover .tile-icon svg [stroke] { stroke-dashoffset: 200; }
  .tile:hover .tile-icon svg circle[fill]:not([fill="none"]) { transform: none; }
  .tile:hover .tile-icon::after { opacity: 0; }
}

/* =========================================================
   CONTACT MODAL — Bubble pop open/close (no scrollbar)
   ========================================================= */

body.modal-lock { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(10, 37, 64, 0.28);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.5s,
    backdrop-filter 0.4s ease;
  will-change: opacity;
}
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    opacity 0.3s ease,
    visibility 0s,
    backdrop-filter 0.4s ease;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: calc(100dvh - 40px);
  overflow: hidden;

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 40px 28px;
  box-shadow:
    0 40px 80px -30px rgba(10, 37, 64, 0.35),
    0 12px 30px -12px rgba(10, 37, 64, 0.15);

  transform: scale(0.72) translateY(20px);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.4s ease,
    filter    0.4s ease;
}
.modal-backdrop.is-open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: blur(0);
}

@supports not (height: 100dvh) {
  .modal-card { max-height: calc(100vh - 40px); }
}

@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.modal-card.shake { animation: cardShake 0.45s ease; }

.modal-close-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f4f8ff;
  border: 1px solid var(--border);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
  z-index: 3;
}
.modal-close-x svg { width: 15px; height: 15px; }
.modal-close-x:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(135deg, #0066ff, #7b61ff);
  box-shadow: 0 12px 30px -10px rgba(0, 102, 255, 0.45);
  z-index: 1;
}
.modal-backdrop.is-open .bubble {
  opacity: 0.85;
  transform: scale(1);
}
.bubble-1 { width: 44px; height: 44px; top: 7%;  left: 5%;  transition-delay: 0.15s; }
.bubble-2 { width: 24px; height: 24px; top: 16%; right: 7%; transition-delay: 0.25s;
            background: radial-gradient(circle at 30% 30%, #fff, transparent 55%),
                        linear-gradient(135deg, #ffb800, #ff8a00); }
.bubble-3 { width: 56px; height: 56px; bottom: 9%; left: 8%; transition-delay: 0.3s;
            background: radial-gradient(circle at 30% 30%, #fff, transparent 55%),
                        linear-gradient(135deg, #00c9a7, #0066ff); }
.bubble-4 { width: 32px; height: 32px; bottom: 12%; right: 10%; transition-delay: 0.2s; }
.bubble-5 { width: 16px; height: 16px; top: 46%; left: 2%; transition-delay: 0.35s;
            background: radial-gradient(circle at 30% 30%, #fff, transparent 55%),
                        linear-gradient(135deg, #0a2540, #33415a); }

@keyframes floatY {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-10px) scale(1.03); }
}
.modal-backdrop.is-open .bubble-1 { animation: floatY 4.2s ease-in-out infinite; }
.modal-backdrop.is-open .bubble-2 { animation: floatY 3.4s ease-in-out 0.4s infinite; }
.modal-backdrop.is-open .bubble-3 { animation: floatY 5s   ease-in-out 0.2s infinite; }
.modal-backdrop.is-open .bubble-4 { animation: floatY 3.8s ease-in-out 0.6s infinite; }
.modal-backdrop.is-open .bubble-5 { animation: floatY 2.8s ease-in-out 0.9s infinite; }

.modal-head { text-align: center; margin-bottom: 20px; }
.modal-mark {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
}
.modal-mark svg { width: 100%; height: 100%; }
.modal-head h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--navy);
  line-height: 1.2;
}
.modal-head p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

.contact-form { display: grid; gap: 14px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 4px; }

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.field .req { color: var(--accent); }
.field .opt { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px 13px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #a4adbb; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

.field textarea {
  resize: none;
  min-height: 74px;
  line-height: 1.5;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1 L6 6 L11 1' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px;
  padding-right: 34px;
  cursor: pointer;
}

.field input.has-error,
.field select.has-error,
.field textarea.has-error {
  border-color: #e04242;
  box-shadow: 0 0 0 4px rgba(224, 66, 66, 0.1);
}
.field-error {
  font-size: 11.5px;
  color: #e04242;
  min-height: 0;
  transition: min-height 0.2s ease;
}
.field-error:not(:empty) { min-height: 14px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.modal-actions .btn { padding: 11px 22px; font-size: 13.5px; }

.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 4px;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-view-thanks { text-align: center; padding: 14px 0 6px; }
.thanks-mark {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.thanks-mark svg { width: 100%; height: 100%; overflow: visible; }
@keyframes popIn {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.modal-view-thanks h3 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.modal-view-thanks p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto 22px;
}
.modal-view-thanks p strong { color: var(--accent); font-weight: 600; }

/* =========================================================
   RESPONSIVE — Contact Modal
   ========================================================= */

@media (max-width: 860px) {
  .modal-backdrop { padding: 18px; }
  .modal-card {
    padding: 32px 30px 24px;
    border-radius: 22px;
    max-height: calc(100dvh - 36px);
  }
  .bubble-1 { width: 36px; height: 36px; }
  .bubble-3 { width: 46px; height: 46px; bottom: 6%; left: 4%; }
}

@media (max-width: 640px) {
  .modal-backdrop { padding: 12px; }
  .modal-card {
    padding: 26px 20px 18px;
    border-radius: 18px;
    max-height: calc(100dvh - 24px);
  }

  .modal-head { margin-bottom: 14px; }
  .modal-mark { width: 36px; height: 36px; margin-bottom: 8px; }
  .modal-head h3 { font-size: 1.2rem; }
  .modal-head p { font-size: 0.85rem; }

  .contact-form { gap: 11px; }
  .field-row { grid-template-columns: 1fr; gap: 11px; }
  .field label { font-size: 12px; }
  .field input,
  .field select,
  .field textarea { padding: 9px 12px; font-size: 14px; border-radius: 10px; }
  .field textarea { min-height: 66px; }

  .modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 2px;
  }
  .modal-actions .btn { width: 100%; justify-content: center; padding: 11px 20px; }

  .bubble-1, .bubble-2, .bubble-4, .bubble-5 { display: none; }
  .bubble-3 { width: 34px; height: 34px; opacity: 0.6; }
  .thanks-mark { width: 64px; height: 64px; margin-bottom: 12px; }
  .modal-view-thanks h3 { font-size: 1.25rem; }
  .modal-view-thanks p { font-size: 0.9rem; margin-bottom: 18px; }
}

@media (max-width: 400px) {
  .modal-card { padding: 22px 16px 16px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .modal-close-x { width: 32px; height: 32px; top: 10px; right: 10px; }
  .modal-head h3 { font-size: 1.1rem; }
  .modal-head p  { font-size: 0.8rem; }
  .field textarea { min-height: 60px; }
}

@media (max-height: 640px) and (orientation: landscape) {
  .modal-backdrop { padding: 10px; }
  .modal-card {
    padding: 18px 22px 14px;
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }
  .modal-mark { display: none; }
  .modal-head { margin-bottom: 10px; }
  .modal-head h3 { font-size: 1.05rem; margin-bottom: 2px; }
  .modal-head p  { font-size: 0.78rem; }
  .contact-form { gap: 8px; }
  .field-row { gap: 8px; }
  .field input,
  .field select,
  .field textarea { padding: 7px 11px; font-size: 13.5px; }
  .field textarea { min-height: 52px; }
  .modal-actions .btn { padding: 9px 18px; font-size: 13px; }
}

/* =========================================================
   REDUCED MOTION — respect user preference
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tile.reveal { opacity: 1; transform: none; }
  .reveal       { opacity: 1; transform: none; }
}

/* =========================================================
   WHY CHOOSE EMPRO — Tree/Branch Reveal Section
   ========================================================= */

.why-section {
  position: relative;
  padding: 100px 0;
  overflow: visible;
}

.why-section .section-head {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.why-intro {
  max-width: 640px;
  margin: 0 auto 72px;
  text-align: center;
}

.why-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.why-intro p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* --- Tree container --- */
.tree-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 72px;
}

/* Vertical trunk line */
.tree-trunk {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(0, 102, 255, 0) 0%,
    rgba(0, 102, 255, 0.15) 8%,
    rgba(0, 102, 255, 0.25) 50%,
    rgba(0, 102, 255, 0.15) 92%,
    rgba(0, 102, 255, 0) 100%
  );
  border-radius: 2px;
  overflow: hidden;
}

.tree-trunk::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #0066ff, #00c9a7);
  border-radius: 2px;
  transition: height 2.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tree-container.in .tree-trunk::after {
  height: 100%;
}

/* --- Individual branch nodes --- */
.tree-branch {
  position: relative;
  margin-bottom: 48px;
  padding-left: 44px;

  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tree-branch:last-child {
  margin-bottom: 0;
}

.tree-container.in .tree-branch {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays for branch appearance */
.tree-container.in .tree-branch:nth-child(1) { transition-delay: 0.3s; }
.tree-container.in .tree-branch:nth-child(2) { transition-delay: 0.7s; }
.tree-container.in .tree-branch:nth-child(3) { transition-delay: 1.1s; }
.tree-container.in .tree-branch:nth-child(4) { transition-delay: 1.5s; }
.tree-container.in .tree-branch:nth-child(5) { transition-delay: 1.9s; }
.tree-container.in .tree-branch:nth-child(6) { transition-delay: 2.3s; }

/* --- Branch connector line (horizontal) --- */
.tree-branch::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 30px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #0066ff, rgba(0, 102, 255, 0.3));
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tree-container.in .tree-branch:nth-child(1)::before { transition-delay: 0.5s; }
.tree-container.in .tree-branch:nth-child(2)::before { transition-delay: 0.9s; }
.tree-container.in .tree-branch:nth-child(3)::before { transition-delay: 1.3s; }
.tree-container.in .tree-branch:nth-child(4)::before { transition-delay: 1.7s; }
.tree-container.in .tree-branch:nth-child(5)::before { transition-delay: 2.1s; }
.tree-container.in .tree-branch:nth-child(6)::before { transition-delay: 2.5s; }

.tree-container.in .tree-branch::before {
  transform: scaleX(1);
}

/* --- Branch node dot --- */
.tree-branch .branch-dot {
  position: absolute;
  left: 26px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #00c9a7);
  border: 2px solid #ffffff;
  box-shadow:
    0 0 0 2px rgba(0, 102, 255, 0.2),
    0 0 16px -2px rgba(0, 102, 255, 0.4);
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.tree-container.in .tree-branch:nth-child(1) .branch-dot { transition-delay: 0.5s; }
.tree-container.in .tree-branch:nth-child(2) .branch-dot { transition-delay: 0.9s; }
.tree-container.in .tree-branch:nth-child(3) .branch-dot { transition-delay: 1.3s; }
.tree-container.in .tree-branch:nth-child(4) .branch-dot { transition-delay: 1.7s; }
.tree-container.in .tree-branch:nth-child(5) .branch-dot { transition-delay: 2.1s; }
.tree-container.in .tree-branch:nth-child(6) .branch-dot { transition-delay: 2.5s; }

.tree-container.in .tree-branch .branch-dot {
  transform: scale(1);
}

/* Pulse ring animation on the dot */
.tree-branch .branch-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 102, 255, 0.35);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tree-branch:hover .branch-dot::after {
  opacity: 1;
  transform: scale(1.3);
}

/* --- Branch card content --- */
.branch-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 4px 18px -12px rgba(10, 37, 64, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.branch-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%230066ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.08'><path d='M20 58 L50 28 L80 58'/><path d='M20 78 L50 48 L80 78'/></g><circle cx='80' cy='28' r='5' fill='%23ffb800' opacity='0.35'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0.7;
}

.branch-card:hover {
  transform: translateX(6px);
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 16px 40px -20px rgba(0, 102, 255, 0.25);
}

.branch-card:hover::before {
  opacity: 1;
  transform: scale(1.08);
}

.branch-card h3 {
  position: relative;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.branch-card p {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
}

/* --- Leaf accent on each branch --- */
.tree-branch .branch-leaf {
  position: absolute;
  left: 34px;
  top: 28px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid rgba(0, 201, 167, 0.35);
  transform: rotate(35deg) scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.tree-container.in .tree-branch:nth-child(1) .branch-leaf { transition-delay: 0.6s; }
.tree-container.in .tree-branch:nth-child(2) .branch-leaf { transition-delay: 1.0s; }
.tree-container.in .tree-branch:nth-child(3) .branch-leaf { transition-delay: 1.4s; }
.tree-container.in .tree-branch:nth-child(4) .branch-leaf { transition-delay: 1.8s; }
.tree-container.in .tree-branch:nth-child(5) .branch-leaf { transition-delay: 2.2s; }
.tree-container.in .tree-branch:nth-child(6) .branch-leaf { transition-delay: 2.6s; }

.tree-container.in .tree-branch .branch-leaf {
  transform: rotate(35deg) scale(1);
}

/* =========================================================
   WHY CHOOSE — Responsive
   ========================================================= */

@media (max-width: 720px) {
  .tree-container {
    padding-left: 56px;
  }

  .tree-trunk {
    left: 20px;
  }

  .tree-branch {
    padding-left: 36px;
    margin-bottom: 36px;
  }

  .tree-branch::before {
    left: 10px;
    width: 22px;
    top: 26px;
  }

  .tree-branch .branch-dot {
    left: 18px;
    top: 20px;
    width: 10px;
    height: 10px;
  }

  .tree-branch .branch-leaf {
    left: 26px;
    top: 24px;
  }

  .branch-card {
    padding: 22px 22px;
    border-radius: 14px;
  }

  .branch-card h3 {
    font-size: 1.05rem;
  }

  .branch-card p {
    font-size: 0.9rem;
  }

  .why-intro {
    margin-bottom: 52px;
  }
}

@media (max-width: 480px) {
  .why-section {
    padding: 60px 0;
  }

  .tree-container {
    padding-left: 44px;
  }

  .tree-trunk {
    left: 14px;
  }

  .tree-branch {
    padding-left: 28px;
    margin-bottom: 28px;
  }

  .tree-branch::before {
    left: 6px;
    width: 18px;
    top: 24px;
  }

  .tree-branch .branch-dot {
    left: 12px;
    top: 18px;
    width: 10px;
    height: 10px;
  }

  .tree-branch .branch-leaf {
    left: 20px;
    top: 22px;
  }

  .branch-card {
    padding: 20px 18px;
  }

  .branch-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .branch-card p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .why-intro h2 {
    font-size: 1.5rem;
  }

  .why-intro p {
    font-size: 0.95rem;
  }
}

/* Reduced motion — show everything instantly */
@media (prefers-reduced-motion: reduce) {
  .tree-container .tree-branch,
  .tree-container .tree-branch::before,
  .tree-container .tree-branch .branch-dot,
  .tree-container .tree-branch .branch-leaf,
  .tree-container.in .tree-branch,
  .tree-container.in .tree-branch::before,
  .tree-container.in .tree-branch .branch-dot,
  .tree-container.in .tree-branch .branch-leaf {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tree-container .tree-trunk::after {
    height: 100% !important;
    transition: none !important;
  }
}
/* ============ FOOTER BRAND (with interactive logo) ============ */
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-brand-link .brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-brand-link .brand-mark svg { width: 100%; height: 100%; overflow: visible; }

/* Re-trigger the chevron draw-in when the footer scrolls into view */
.footer-brand-link .brand-mark .chev-1,
.footer-brand-link .brand-mark .chev-2 {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.footer-brand-link .brand-mark .chev-1 { stroke: #0066ff; animation-delay: 0.15s; }
.footer-brand-link .brand-mark .chev-2 { stroke: #0a2540; animation-delay: 0.35s; }

.footer-brand-link .brand-mark .brand-dot {
  fill: #ffb800;
  opacity: 0;
  transform-origin: 66px 18px;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}

.footer-brand-link:hover .brand-mark .chev-1 { animation: pulse 0.6s ease; }
.footer-brand-link:hover .brand-mark .chev-2 { animation: pulse 0.6s ease 0.08s; }

.footer-brand-link .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-brand-link .brand-name {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--navy);
}
.footer-brand-link .brand-sub {
  font-size: 8px;
  letter-spacing: 0.55em;
  color: var(--muted);
  margin-top: 4px;
  text-indent: 0.55em;
}

/* New tagline under the footer brand */
.footer-tagline {
  margin-top: 4px !important;
  max-width: 320px;
  font-size: 0.92rem !important;
  line-height: 1.65;
  color: var(--muted);
}

.footer-tagline .footer-tagline-strong {
  display: block;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 6px;
}
