/* ================================================================
   FOURSEES MAIN STYLESHEET
   All styles from the original static HTML, organized for WordPress.
   Design tokens are in tokens.css (loaded separately).
   ================================================================ */


/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* GSAP ScrollToPlugin handles all scroll animation — native smooth scroll conflicts with it */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--smoky-800);
  background: var(--surface-white);
  overflow-x: hidden;
}

body.loading { overflow: hidden; }

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

/* ================================================================
   TYPOGRAPHY SCALE
   ================================================================ */
.display {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}
.h4 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}
.body-lg { font-size: 18px; line-height: 1.75; }
.body { font-size: 16px; line-height: 1.7; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-500);
}
.mono { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

/* ================================================================
   UTILITIES
   ================================================================ */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 900px; }
.text-white { color: #fff; }
.text-muted { color: var(--smoky-400); }
.text-muted-dark { color: rgba(255,255,255,0.55); }
.text-purple { color: var(--primary-500); }
.text-center { text-align: center; }

/* ================================================================
   LOADING SCREEN
   ================================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--surface-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

#loading-screen .loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#loading-screen .loader-wordmark {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0;
  animation: fadeIn 0.6s 1.2s forwards;
}

#loading-screen .loader-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-400);
  opacity: 0;
  animation: fadeIn 0.5s 1.6s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.loader-icon svg .arc {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.loader-icon svg .arc-1 { stroke: var(--primary-500); animation: drawArc 0.4s 0.2s ease-out forwards; }
.loader-icon svg .arc-2 { stroke: var(--secondary-400); animation: drawArc 0.4s 0.45s ease-out forwards; }
.loader-icon svg .arc-3 { stroke: var(--green-400); animation: drawArc 0.4s 0.7s ease-out forwards; }
.loader-icon svg .arc-4 { stroke: var(--smoky-300); animation: drawArc 0.4s 0.95s ease-out forwards; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }

#loading-screen.hide {
  animation: slideUp 0.8s var(--ease-out-expo) forwards;
}
@keyframes slideUp {
  to { transform: translateY(-100%); }
}

/* Custom cursor removed — browser default cursor is used. */

/* ================================================================
   NAVIGATION
   ================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(21,27,34,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

#navbar.light {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  height: 32px;
  width: 124px;     /* proportional: logo is 732×166, at 28px height ≈ 124px wide */
  max-width: 200px;
  overflow: hidden; /* clip anything beyond the calculated width */
  flex-shrink: 0;
}

.nav-logo svg, .nav-logo img { height: 28px; width: 124px; max-width: none; display: block; filter: brightness(0) invert(1); transition: filter 0.4s; }
#navbar.light .nav-logo svg, #navbar.light .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
  position: relative;
  cursor: pointer;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--primary-400);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-quart);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

#navbar.light .nav-links a { color: var(--smoky-500); }
#navbar.light .nav-links a:hover { color: var(--smoky-800); }

.nav-cta {
  padding: 10px 22px;
  background: var(--primary-500);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s !important;
  cursor: pointer;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-purple);
  color: #fff !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
#navbar.light .nav-hamburger span { background: var(--smoky-800); }

/* Mobile nav overlay */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--surface-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
#mobile-nav.open { opacity: 1; pointer-events: all; }
#mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.25s;
  cursor: pointer;
}
#mobile-nav.open a { animation: mobileNavIn 0.5s var(--ease-out-expo) forwards; }
#mobile-nav a:nth-child(1) { animation-delay: 0.05s; }
#mobile-nav a:nth-child(2) { animation-delay: 0.1s; }
#mobile-nav a:nth-child(3) { animation-delay: 0.15s; }
#mobile-nav a:nth-child(4) { animation-delay: 0.2s; }
#mobile-nav a:nth-child(5) { animation-delay: 0.25s; }
#mobile-nav a:nth-child(6) { animation-delay: 0.3s; }
#mobile-nav a:hover { color: var(--primary-400); }
@keyframes mobileNavIn { to { opacity: 1; transform: translateY(0); } }

.mob-close {
  position: absolute;
  top: 24px; right: 24px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ================================================================
   SECTION SHARED STYLES
   ================================================================ */
section { position: relative; overflow: hidden; }

.section-pad { padding: 100px 0; }
.section-pad-lg { padding: 130px 0; }
.section-pad-xl { padding: 160px 0; }

.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header .eyebrow { margin-bottom: 16px; display: block; }
.section-header .h2 { margin-bottom: 20px; }
.section-header .body-lg { max-width: 700px; }
.section-header.centered .body-lg { margin: 0 auto; }

/* ================================================================
   DECORATIVE / SHARED COMPONENTS
   ================================================================ */
.purple-line {
  display: inline-block;
  width: 40px; height: 3px;
  background: var(--primary-500);
  border-radius: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--primary-alpha-10);
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--primary-500);
}

/* Animated bg grid */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163,82,166,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,82,166,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bg-grid-dark {
  background-image:
    linear-gradient(rgba(163,82,166,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,82,166,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Blob */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
#hero {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 100px;
}

#hero .blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(163,82,166,0.25) 0%, transparent 70%);
  top: -150px; left: -150px;
  animation: blobFloat1 8s ease-in-out infinite;
}

#hero .blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(5,125,235,0.15) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: blobFloat2 10s ease-in-out infinite;
}

#hero .blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(163,82,166,0.2) 0%, transparent 70%);
  top: 50%; right: 20%;
  animation: blobFloat1 12s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,15px) scale(0.98); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-25px,20px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 28px;
  opacity: 0;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.15;           /* was 1.02 — too tight, clips descenders (g, y, q) */
  letter-spacing: -0.04em;
  color: var(--smoky-800);
  margin-bottom: 28px;
}

.hero-headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.28em;
  /* Extra bottom padding so the overflow:hidden clip boundary clears descenders.
     Negative margin-bottom compensates so overall word-spacing is unchanged. */
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.hero-headline .word-inner {
  display: inline-block;
  transform: translateY(110%);
}

.hero-headline .word-purple { color: var(--primary-400); }

.hero-subhead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--smoky-500);
  max-width: 680px;
  margin: 0 auto 48px;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  transition: all 0.3s var(--ease-out-quart);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-500);
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--smoky-700);
  border: 1.5px solid rgba(0,0,0,0.15);
}

.btn-secondary:hover {
  border-color: rgba(0,0,0,0.3);
  color: var(--smoky-800);
  background: rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.btn:hover .btn-icon { transform: translateX(3px); }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 2;
}

.scroll-indicator-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}

.scroll-chevron {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: chevronBounce 1.8s ease-in-out infinite;
}

.scroll-chevron span {
  display: block;
  width: 12px; height: 1.5px;
  background: rgba(0,0,0,0.3);
  transform-origin: center;
}
.scroll-chevron span:first-child { transform: rotate(30deg) translateX(3px); }
.scroll-chevron span:last-child { transform: rotate(-30deg) translateX(-3px); }

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ================================================================
   TRUST BAR
   ================================================================ */
#trust-bar {
  background: var(--surface-white);
  padding: 48px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoky-300);
  margin-bottom: 32px;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-item {
  flex-shrink: 0;
  padding: 12px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  filter: grayscale(1) opacity(0.5);
}

.client-logo-pill:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}

.client-logo-pill img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ================================================================
   ABOUT SECTION — "4Cs Manifesto" Editorial
   ================================================================ */
#about {
  background: var(--surface-white);
  padding: 120px 0;
  overflow: hidden;
}

.about-manifesto {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-manifesto .eyebrow { margin-bottom: 16px; display: block; }
.about-manifesto .h2 { margin-bottom: 28px; }

.about-manifesto .body {
  color: var(--smoky-500);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 4Cs horizontal editorial strip */
.fcs-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 72px 0 64px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
}

.fc-pillar {
  position: relative;
  padding: 44px 32px 40px;
  border-right: 1px solid rgba(0,0,0,0.07);
  transition: background 0.4s var(--ease-out-quart);
  overflow: hidden;
  cursor: default;
}

.fc-pillar:last-child { border-right: none; }

.fc-pillar::before {
  content: attr(data-letter);
  position: absolute;
  top: -10px;
  right: -8px;
  font-family: var(--font-heading);
  font-size: 130px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.045;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out-expo);
  transform: translateY(0);
}

.fc-pillar:hover::before { opacity: 0.08; transform: translateY(-8px) scale(1.05); }

.fc-pillar-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.fc-pillar:hover .fc-pillar-top-bar { transform: scaleX(1); }
.fc-pillar:hover { background: var(--surface-soft); }

.fc-pillar.c1 .fc-pillar-top-bar { background: var(--primary-500); }
.fc-pillar.c2 .fc-pillar-top-bar { background: var(--secondary-400); }
.fc-pillar.c3 .fc-pillar-top-bar { background: var(--green-500); }
.fc-pillar.c4 .fc-pillar-top-bar { background: var(--smoky-400); }

.fc-pillar.c1::before { color: var(--primary-500); }
.fc-pillar.c2::before { color: var(--secondary-400); }
.fc-pillar.c3::before { color: var(--green-500); }
.fc-pillar.c4::before { color: var(--smoky-500); }

.fc-pillar-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.fc-pillar.c1 .fc-pillar-icon { background: rgba(163,82,166,0.1); }
.fc-pillar.c2 .fc-pillar-icon { background: rgba(5,125,235,0.1); }
.fc-pillar.c3 .fc-pillar-icon { background: rgba(84,163,56,0.1); }
.fc-pillar.c4 .fc-pillar-icon { background: rgba(109,135,159,0.1); }

.fc-pillar-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--smoky-800);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.fc-pillar-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--smoky-500);
  position: relative;
  z-index: 1;
}

/* Mission statement centered quote */
.about-mission-quote {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 64px;
  background: linear-gradient(135deg, var(--surface-soft) 0%, rgba(163,82,166,0.04) 100%);
  border: 1px solid rgba(163,82,166,0.1);
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
}

.about-mission-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-500);
  opacity: 0.25;
}

.about-mission-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 16px;
  display: block;
}

.about-mission-text {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--smoky-700);
  font-style: italic;
}

/* ================================================================
   SERVICES OVERVIEW — on #a352a6 purple
   ================================================================ */
#services-overview {
  background: #a352a6;
  padding: 120px 0;
  position: relative;
}

/* Lighter dot grid on purple */
#services-overview .bg-grid-dot {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Section header on purple bg */
#services-overview .eyebrow { color: rgba(255,255,255,0.7) !important; }
#services-overview .h2 { color: #fff; }
#services-overview .body-lg { color: rgba(255,255,255,0.72); }

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.svc-card-overview {
  padding: 36px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.svc-card-overview::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.svc-card-overview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  border-radius: calc(var(--radius-xl) - 1px);
  transition: background 0.4s;
  z-index: 0;
}

.svc-card-overview:hover::before { opacity: 1; }
.svc-card-overview:hover::after { background: rgba(0,0,0,0.06); }
.svc-card-overview:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }

.svc-card-inner { position: relative; z-index: 1; }

.svc-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

/* Recolor icons on purple bg */
.svc-icon svg { stroke: rgba(255,255,255,0.9) !important; }

.svc-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.svc-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.65); }

.svc-card-overview:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 3px;
}

.svc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  transition: color 0.3s, gap 0.3s;
}
.svc-card-overview:hover .svc-card-cta {
  color: #fff;
  gap: 12px;
}

/* ================================================================
   SERVICE MODALS — full-screen overlay with slide-up panel
   ================================================================ */
#svc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#svc-modal-overlay.active {
  display: flex;
}

#svc-modal-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-quart);
}

#svc-modal-overlay.visible::before {
  opacity: 1;
}

.svc-modal {
  display: none;
  position: absolute;
  inset: 0;
  align-items: flex-end;
  justify-content: center;
}

.svc-modal.active {
  display: flex;
}

.svc-modal-panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  background: var(--surface-white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-out-expo);
  box-shadow: 0 -24px 80px rgba(0,0,0,0.3), 0 -1px 0 rgba(163,82,166,0.15);
  /* Clip to border-radius without blocking inner scroll */
  clip-path: inset(0 round 24px 24px 0 0);
}

.svc-modal-panel-dark {
  background: #1a0e22;
}

#svc-modal-overlay.visible .svc-modal.active .svc-modal-panel {
  transform: translateY(0);
}

/* Decorative blobs inside panel */
.svc-modal-bg-blob {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,82,166,0.12) 0%, transparent 70%);
  top: -120px; left: -120px;
  pointer-events: none;
  animation: blobFloat1 10s ease-in-out infinite;
}
.svc-modal-bg-blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(5,125,235,0.08) 0%, transparent 70%);
  top: auto; left: auto;
  bottom: -80px; right: -60px;
  animation: blobFloat2 12s ease-in-out infinite;
}

/* Modal header */
.svc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 52px 32px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.svc-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-500);
  display: block;
  margin-bottom: 10px;
}

.svc-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--smoky-800);
  margin-bottom: 14px;
}

.svc-modal-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--smoky-500);
  max-width: 580px;
}

.svc-modal-close {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--smoky-600);
  transition: all 0.25s var(--ease-out-quart);
  margin-top: 4px;
}

.svc-modal-close:hover {
  background: var(--primary-100);
  border-color: var(--primary-200);
  color: var(--primary-700);
  transform: rotate(90deg) scale(1.05);
}

.svc-modal-close-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}

.svc-modal-close-dark:hover {
  background: rgba(163,82,166,0.2);
  border-color: rgba(163,82,166,0.4);
  color: #fff;
}

/* Modal scrollable body */
.svc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 52px 40px;
  position: relative;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
}

.svc-modal-body::-webkit-scrollbar {
  width: 5px;
}
.svc-modal-body::-webkit-scrollbar-track { background: transparent; }
.svc-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-200);
  border-radius: var(--radius-full);
}

/* Modal footer */
.svc-modal-footer {
  padding: 20px 52px 28px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ================================================================
   SERVICE 01 MODAL — Soft Floating Cards with Curved Shapes
   ================================================================ */
.svc1-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.svc1-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface-soft);
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(163,82,166,0.08);
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  cursor: default;
}

.svc1-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(163,82,166,0.22);
  box-shadow: 0 20px 50px rgba(163,82,166,0.14);
}

/* Animated gradient glow that chases the card */
.svc1-card-glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,82,166,0.18) 0%, transparent 70%);
  top: -80px; right: -60px;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.4s;
  opacity: 0;
}

.svc1-card:hover .svc1-card-glow {
  opacity: 1;
  transform: translate(-20px, 20px) scale(1.2);
}

/* Curved wave decoration at bottom of card */
.svc1-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(163,82,166,0.04), transparent);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.svc1-card:hover::after { opacity: 1; }

/* Icon container with soft rounded bg */
.svc1-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(163,82,166,0.1), rgba(163,82,166,0.04));
  border: 1px solid rgba(163,82,166,0.12);
  display: flex; align-items: center; justify-content: center;
  overflow: visible; /* prevent border-radius from clipping SVG strokes */
  margin-bottom: 18px;
  color: var(--primary-600);
  transition: all 0.35s var(--ease-out-quart);
}

.svc1-card:hover .svc1-card-icon {
  background: linear-gradient(145deg, rgba(163,82,166,0.18), rgba(163,82,166,0.08));
  border-color: rgba(163,82,166,0.25);
  transform: scale(1.08) rotate(-3deg);
}

.svc1-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--smoky-800);
  margin-bottom: 10px;
  line-height: 1.3;
}

.svc1-card-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--smoky-500);
}


.svc1-card-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 5px 14px;
  background: rgba(163,82,166,0.2);
  border: 1px solid rgba(163,82,166,0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-300);
}

/* ================================================================
   SERVICE 03 MODAL — Two-Column Magazine List
   ================================================================ */
.svc3-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(163,82,166,0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(163,82,166,0.1);
  margin-bottom: 32px;
}

.svc3-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
  background: var(--surface-white);
  transition: background 0.3s, transform 0.3s var(--ease-out-expo);
  position: relative;
  cursor: default;
}

/* Subtle left accent bar */
.svc3-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--primary-400);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out-expo);
}
.svc3-item:hover::before { transform: scaleY(1); }

.svc3-item:hover {
  background: #faf7fb;
}

/* Last item spans both columns if odd count */
.svc3-item:last-child:nth-child(odd) {
  grid-column: span 2;
}

/* Icon */
.svc3-item-icon {
  width: 48px; height: 48px; /* was 44px — minimum safe size for 20px SVGs */
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(163,82,166,0.1), rgba(163,82,166,0.04));
  border: 1px solid rgba(163,82,166,0.1);
  display: flex; align-items: center; justify-content: center;
  overflow: visible; /* prevent border-radius from clipping SVG strokes */
  flex-shrink: 0;
  color: var(--primary-600);
  transition: transform 0.3s var(--ease-spring), background 0.3s, border-color 0.3s;
}
.svc3-item:hover .svc3-item-icon {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(145deg, rgba(163,82,166,0.18), rgba(163,82,166,0.08));
  border-color: rgba(163,82,166,0.22);
}

/* SVGs inside icon wrappers: override the SVG-spec default of overflow:hidden
   so strokes that render at the viewBox boundary aren't clipped at the SVG
   viewport level in addition to the container level. */
.svc1-card-icon svg,
.svc3-item-icon svg {
  overflow: visible;
  display: block;
  flex-shrink: 0;
}

/* Text block */
.svc3-item-body { min-width: 0; }

.svc3-item-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--smoky-800);
  margin-bottom: 5px;
  line-height: 1.25;
}

.svc3-item-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--smoky-500);
}

.svc3-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.svc3-item-tag {
  display: inline-flex;
  padding: 2px 9px;
  background: rgba(163,82,166,0.06);
  border: 1px solid rgba(163,82,166,0.12);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--primary-600);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Tech stack footer */
.svc3-techfooter {
  padding-top: 20px;
}
.svc3-techfooter-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoky-400);
  margin-bottom: 12px;
  display: block;
}
.svc3-techfooter .tech-pill {
  opacity: 1;
  transform: none;
  font-size: 11px;
  padding: 5px 12px;
  background: var(--surface-soft);
}

/* Responsive */
@media (max-width: 680px) {
  .svc3-list { grid-template-columns: 1fr; }
  .svc3-item:last-child:nth-child(odd) { grid-column: span 1; }
  .svc3-item { padding: 20px 20px; }
}

/* ================================================================
   SERVICE 02 MODAL — Dark timeline (reuses data-ai-timeline styles)
   ================================================================ */
/* Service 02 modal uses the same .dai-item styles from the main timeline */

/* ================================================================
   SERVICE HEADER (used inside modals)
   ================================================================ */
.service-header {
  margin-bottom: 72px;
}
.service-header .eyebrow { margin-bottom: 14px; display: block; }
.service-header .h2 { margin-bottom: 20px; }
.service-header .intro-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--smoky-500);
  max-width: 760px;
}

/* Tech stack pills (reused in modal 3) */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--surface-white);
  border: 1px solid rgba(163,82,166,0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-700);
  transition: all 0.25s;
  opacity: 0;
  transform: translateY(10px);
}

.tech-pill:hover {
  background: var(--primary-100);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(163,82,166,0.15);
}

.tech-pill.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   DATA-AI TIMELINE — used in modal 2 (dark bg context)
   ================================================================ */
.data-ai-timeline {
  position: relative;
}

.data-ai-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(163,82,166,0.3), rgba(163,82,166,0.1), transparent);
}

.dai-item {
  display: flex;
  gap: 36px;
  padding: 0 0 32px 72px;
  position: relative;
}

.dai-dot {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 3px solid var(--primary-500);
  box-shadow: 0 0 0 3px rgba(163,82,166,0.12);
  flex-shrink: 0;
}

.dai-content {
  flex: 1;
  padding: 24px 28px;
  background: var(--surface-soft);
  border: 1px solid rgba(163,82,166,0.08);
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease-out-quart);
}

.dai-content:hover {
  background: #f0e8f1;
  border-color: rgba(163,82,166,0.2);
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(163,82,166,0.1);
}

.dai-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--primary-400);
  margin-bottom: 6px;
}

.dai-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--smoky-800);
  margin-bottom: 10px;
}

.dai-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--smoky-500);
}

/* ================================================================
   iFOURLABS SECTION
   ================================================================ */
#ifourlabs {
  background: var(--primary-50);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}

#ifourlabs .bg-grid-dark {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163,82,166,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,82,166,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.ifl-top {
  text-align: center;
  margin-bottom: 80px;
}

.ifl-logo-wrap {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.ifl-logo-icon {
  height: 28px; width: auto;
}

.ifl-headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--smoky-800);
  margin-bottom: 20px;
}

.ifl-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--smoky-500);
  max-width: 640px;
  margin: 0 auto;
}

/* Challenge grid */
.ifl-challenge {
  margin-bottom: 64px;
}

.ifl-section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 24px;
  display: block;
}

.ifl-challenge-intro {
  font-size: 18px;
  color: var(--smoky-600);
  margin-bottom: 28px;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.challenge-item {
  padding: 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,100,100,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.3s;
}

.challenge-item:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,100,100,0.35);
}

.challenge-alert {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,100,100,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.challenge-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--smoky-600);
}

/* Solution callout */
.ifl-solution {
  padding: 48px 52px;
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
  border: none;
  border-radius: var(--radius-2xl);
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-purple-lg);
}

.ifl-solution::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at center top, rgba(163,82,166,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.ifl-solution-text {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Deliverables */
.ifl-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.ifl-deliv-card {
  padding: 28px 24px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all 0.35s var(--ease-out-quart);
  cursor: default;
}

.ifl-deliv-card:hover {
  background: rgba(163,82,166,0.08);
  border-color: rgba(163,82,166,0.25);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(163,82,166,0.15);
}

.ifl-deliv-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--primary-400);
  margin-bottom: 12px;
  display: block;
}

.ifl-deliv-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--smoky-800);
  margin-bottom: 10px;
  line-height: 1.3;
}

.ifl-deliv-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--smoky-500);
}

/* Core features */
.ifl-features-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 28px;
  text-align: center;
  display: block;
}

.ifl-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.ifl-feature-item {
  padding: 20px 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.3s;
  cursor: default;
}

.ifl-feature-item:hover {
  background: rgba(163,82,166,0.08);
  border-color: rgba(163,82,166,0.2);
}

.ifl-feat-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-alpha-20), var(--primary-alpha-10));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ifl-feat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--smoky-700);
  line-height: 1.4;
}

.ifl-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

/* ================================================================
   WHY FOURSEES
   ================================================================ */
#why-foursees {
  background: var(--surface-white);
  padding: 120px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.why-card {
  padding: 36px 32px;
  background: var(--surface-soft);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-xl);
  cursor: default;
  transition: all 0.4s var(--ease-out-quart);
  transform-style: preserve-3d;
}

.why-card:hover {
  border-color: var(--primary-200);
  box-shadow: 0 16px 48px rgba(163,82,166,0.12);
}

.why-card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-alpha-20), var(--primary-alpha-10));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.why-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--smoky-800);
  margin-bottom: 10px;
  line-height: 1.3;
}

.why-card-desc { font-size: 14px; line-height: 1.65; color: var(--smoky-500); }

/* ================================================================
   INSIGHTS SECTION
   ================================================================ */
#insights {
  background: var(--surface-soft);
  padding: 120px 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(163,82,166,0.13);
}

/* Thumbnail */
.insight-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #1a0e22;
}

.insight-thumb svg {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.insight-card:hover .insight-thumb svg {
  transform: scale(1.04);
}

.insight-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.insight-card:hover .insight-thumb img {
  transform: scale(1.05);
}

/* Tag overlaid on image */
.insight-thumb-tag {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(10,6,14,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Body */
.insight-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--smoky-400);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.insight-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--smoky-800);
  line-height: 1.35;
  margin-bottom: 12px;
}

.insight-excerpt {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--smoky-500);
  flex: 1;
  margin-bottom: 22px;
}

.insight-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-600);
  letter-spacing: -0.01em;
  transition: gap 0.3s, color 0.25s;
  align-self: flex-start;
}
.insight-cta:hover {
  color: var(--primary-700);
  gap: 10px;
}

/* Full-card link wrapper (archive + single more-insights) */
.insight-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Keep title color correct whether it's a bare <h3> or has a nested <a> */
.insight-title a {
  color: inherit;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-card:last-child { grid-column: span 2; }
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
#contact {
  background: var(--surface-soft);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

#contact .blob {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(163,82,166,0.2) 0%, transparent 70%);
  top: -100px; right: -100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-left .eyebrow { margin-bottom: 16px; display: block; }
.contact-left .h2 { margin-bottom: 20px; color: var(--smoky-800); }
.contact-left .body { color: var(--smoky-500); margin-bottom: 48px; max-width: 440px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  width: 40px; height: 40px;
  background: rgba(163,82,166,0.08);
  border: 1px solid rgba(163,82,166,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-item-text { font-size: 14px; color: var(--smoky-700); }
.contact-item-text strong { display: block; font-size: 12px; color: var(--smoky-400); font-weight: 500; margin-bottom: 2px; font-family: var(--font-mono); letter-spacing: 0.08em; }

/* Contact form */
.contact-form {
  padding: 44px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--smoky-500);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--smoky-800);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--smoky-300); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-400);
  background: rgba(163,82,166,0.08);
  box-shadow: 0 0 0 3px rgba(163,82,166,0.15);
}

.form-group select option { background: #ffffff; color: var(--smoky-800); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quart);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.form-submit:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(163,82,166,0.4);
}

/* ================================================================
   FOOTER
   ================================================================ */
#footer {
  background: var(--surface-darker);
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  max-width: 260px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 0.25s;
  cursor: pointer;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-contact-items { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,0.4); transition: color 0.25s; }
.footer-contact-item a:hover { color: var(--primary-300); }

.footer-4cs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-4c-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: -0.01em;
}

.footer-4c-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

.footer-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}

/* ================================================================
   ANIMATION SYSTEM — Data-animate
   ================================================================ */
[data-animate] {
  will-change: transform, opacity;
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-animate="fade-up"].animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-animate="scale-in"] {
  opacity: 0;
  transform: scale(0.9);
}

[data-animate="scale-in"].animated {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

[data-animate="reveal-left"] {
  clip-path: inset(0 100% 0 0);
}

[data-animate="reveal-left"].animated {
  clip-path: inset(0 0% 0 0);
  transition: clip-path 1s var(--ease-out-expo);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* ================================================================
   DIVIDERS
   ================================================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-500), transparent);
  opacity: 0.3;
}

/* ================================================================
   SECTION CONNECTOR LABELS
   ================================================================ */
.section-connector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-connector-line {
  flex: 1;
  height: 1px;
  background: var(--primary-alpha-20);
}

.section-connector-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-400);
  white-space: nowrap;
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-headline .word-inner { transform: none !important; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .about-manifesto { padding: 0 16px; }
  .fcs-horizontal { grid-template-columns: repeat(2, 1fr); }
  .ifl-deliverables-grid { grid-template-columns: repeat(3, 1fr); }
  .ifl-features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .services-overview-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .svc1-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .ifl-deliverables-grid { grid-template-columns: repeat(2, 1fr); }
  .ifl-features-grid { grid-template-columns: repeat(2, 1fr); }
  .svc1-cards-grid { grid-template-columns: 1fr 1fr; }
  .svc3-list { grid-template-columns: 1fr; }
  .svc3-item:last-child:nth-child(odd) { grid-column: span 1; }
  .svc3-item { padding: 20px 20px; }
  .svc-modal-header { padding: 32px 28px 24px; }
  .svc-modal-body { padding: 0 28px 32px; }
  .svc-modal-footer { padding: 16px 28px 20px; }
}

@media (max-width: 640px) {
  .services-overview-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .fcs-horizontal { grid-template-columns: 1fr 1fr; }
  .fcs-horizontal .fc-pillar { padding: 32px 20px 28px; }
  .fcs-horizontal .fc-pillar::before { font-size: 90px; }
  .challenge-grid { grid-template-columns: 1fr; }
  .ifl-deliverables-grid { grid-template-columns: 1fr 1fr; }
  .ifl-features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-pad { padding: 72px 0; }
  .section-pad-lg { padding: 88px 0; }
  .section-pad-xl { padding: 100px 0; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 300px; }
  .about-mission-quote { padding: 40px 28px; }
  /* Service modals — mobile full-screen page (no floating, no dragging) */
  #svc-modal-overlay.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  #svc-modal-overlay.active .svc-modal.active {
    display: block;
  }
  .svc-modal.active .svc-modal-panel {
    position: relative;
    width: 100%;
    min-height: 100%;
    max-height: none;
    height: auto;
    margin: 0;
    padding: 20px;
    padding-top: 60px;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    overflow: visible;
    transform: none !important;
  }
  .svc-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100000;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .svc-modal-header { padding: 0 0 20px; }
  .svc-modal-body { padding: 0 0 24px; }
  .svc-modal-footer { padding: 14px 0 18px; }
  .svc1-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc3-list { grid-template-columns: 1fr; }
  .svc3-item { padding: 20px 20px; }
  .dai-item { padding-left: 52px; }
  .dai-dot { left: 8px; }
}

/* === UPLOADED ICON SIZING — forces correct dimensions regardless of SVG attributes === */

/* 4Cs pillar icons — matches 22x22 fallback */
.fc-pillar-icon svg { width: 22px !important; height: 22px !important; display: block; }

/* Why Foursees card icons — matches 24x24 fallback */
.why-card-icon svg { width: 24px !important; height: 24px !important; display: block; }

/* iFourlabs challenge icons — matches 16x16 fallback */
.challenge-alert svg { width: 16px !important; height: 16px !important; display: block; }

/* Scroll arrow icon */
.scroll-chevron--custom svg { width: 24px !important; height: 24px !important; display: block; }

/* Footer logo */
#footer .nav-logo svg { height: 32px !important; width: 141px !important; display: block; }
#footer .nav-logo { width: 141px; overflow: hidden; }

/* Statistics Strip styles → assets/css/stats.css */

