/* ================================================================
   HOME PAGE STYLES
   ================================================================ */

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* Fallback for no-JS / before canvas paints */
  background: #0d0404;
}

/* ---- Canvas layer — JS sets exact pixel dimensions each frame ---- */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  /* Do NOT set width/height here — JS does it correctly with DPR */
  display: block;
}

/* Fine grid lines — barely-there, rides above canvas */
.hero-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(191, 30, 45, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 30, 45, .04) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}

/* Vignette overlay — darkens corners, keeps text readable */
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 72% 72% at 50% 50%,
    transparent 38%,
    rgba(0,0,0,.62) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-h) + var(--sp-lg));
  padding-bottom: var(--sp-xl);
  max-width: 800px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35em 1em; border-radius: var(--r-full);
  border: 1px solid rgba(191,30,45,.45);
  font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: var(--sp-md);
  backdrop-filter: blur(6px);
}

.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

.hero-h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05; margin-bottom: var(--sp-md);
  font-family: var(--font-serif);
}
.hero-h1 em { color: var(--red-light); font-style: italic; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.65);
  max-width: 560px; line-height: 1.75; margin-bottom: var(--sp-lg);
}

.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* Stats bar */
.hero-stats-bar {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.hero-stats {
  display: flex; align-items: center;
  padding-block: var(--sp-md); gap: 0; flex-wrap: wrap;
}

.hero-stat {
  flex: 1; min-width: 130px;
  display: flex; flex-direction: column; align-items: center;
  padding-block: .5rem;
}

.hero-stat-sep {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

.hero-stat-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; font-family: var(--font-serif);
  color: var(--red-light); line-height: 1;
}
.hero-stat-num::after { content: '+'; }

.hero-stat-label {
  font-size: .75rem; color: rgba(255,255,255,.45);
  letter-spacing: .05em; margin-top: 2px; font-weight: 400;
}

/* ---- INTRO SECTION ---- */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl); align-items: center;
}

.intro-tagline {
  display: flex; gap: var(--sp-sm); align-items: flex-start;
  margin-top: var(--sp-lg); padding: var(--sp-md);
  background: var(--red-mist); border-radius: var(--r-md);
  border-left: 3px solid var(--red);
}
.tagline-bar { display: none; }
.intro-tagline blockquote {
  font-size: 1.03rem; font-style: italic;
  font-family: var(--font-serif); color: var(--charcoal-mid);
  line-height: 1.65;
}

.value-pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm);
}

.vp-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--gray-100); padding: var(--sp-md);
  transition: all var(--t-slow);
}
.vp-card:hover { box-shadow: var(--s-lg); border-color: var(--red-pale); transform: translateY(-3px); }

.vp-icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--red-pale); display: grid; place-items: center;
  margin-bottom: .75rem;
}
.vp-icon svg { width: 20px; height: 20px; color: var(--red); }
.vp-card h4 { color: var(--charcoal); font-size: .92rem; margin-bottom: 4px; }
.vp-card p  { font-size: .83rem; line-height: 1.55; }

/* ---- SERVICES PREVIEW ---- */
.services-preview-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.sp-card {
  display: block; position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--gray-100); padding: var(--sp-lg);
  transition: all var(--t-slow); cursor: pointer;
}
.sp-card:hover { transform: translateY(-5px); box-shadow: var(--s-lg); border-color: transparent; }
.sp-card--featured { background: var(--red); border-color: transparent; }
.sp-card--featured h3 { color: var(--white); }
.sp-card--featured p  { color: rgba(255,255,255,.75); }
.sp-card--featured .sp-arrow { color: rgba(255,255,255,.6); }
.sp-card--featured .sp-icon { background: rgba(255,255,255,.15); }
.sp-card--featured .sp-icon svg { color: var(--white); }
.sp-card--featured .sp-num { color: rgba(255,255,255,.2); }

.sp-num {
  position: absolute; top: var(--sp-md); right: var(--sp-md);
  font-size: 2.5rem; font-weight: 800; font-family: var(--font-serif);
  color: var(--gray-100); line-height: 1;
}

.sp-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--red-pale); display: grid; place-items: center;
  margin-bottom: var(--sp-sm);
}
.sp-icon svg { width: 24px; height: 24px; color: var(--red); }
.sp-card h3 { color: var(--charcoal); font-size: 1rem; margin-bottom: .5rem; }
.sp-card p  { font-size: .87rem; line-height: 1.6; }
.sp-arrow   { display: block; margin-top: var(--sp-sm); font-size: 1.2rem; color: var(--red); font-weight: 700; transition: transform var(--t-fast); }
.sp-card:hover .sp-arrow { transform: translateX(4px); }

.services-cta { display: flex; justify-content: center; }

/* ---- CLIENTS STRIP ---- */
.clients-strip {
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding-block: var(--sp-lg);
}
.clients-label {
  text-align: center; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: var(--sp-md); font-weight: 600;
}
.clients-logos {
  display: flex; gap: var(--sp-lg); flex-wrap: wrap;
  justify-content: center; align-items: center;
}
.clients-logos span {
  font-size: .82rem; font-weight: 700; color: var(--gray-400);
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  transition: color var(--t-fast);
}
.clients-logos span:hover { color: var(--red); }

/* ---- FEATURED EXPERIENCE ---- */
.featured-exp-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--sp-sm); margin-bottom: var(--sp-xl);
}

.fe-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--gray-100); padding: var(--sp-lg);
  transition: all var(--t-slow);
}
.fe-card:hover { transform: translateY(-4px); box-shadow: var(--s-lg); border-color: var(--red-pale); }

.fe-client {
  font-size: .72rem; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem;
}
.fe-card h3 { color: var(--charcoal); font-size: .97rem; margin-bottom: .6rem; line-height: 1.4; }
.fe-card p  { font-size: .86rem; line-height: 1.65; }
.fe-meta    { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .85rem; }
.fe-meta span {
  font-size: .71rem; font-weight: 500; padding: .22em .7em;
  background: var(--gray-50); color: var(--gray-600); border-radius: var(--r-full);
}

/* ---- CTA BAND ---- */
.cta-band {
  position: relative; overflow: hidden;
  padding-block: var(--sp-2xl);
  /* Fallback — canvas paints over this */
  background: linear-gradient(180deg, #2a0c12 0%, #1e1e1e 100%);
}
/* Canvas sits behind content */
.cta-band-canvas {
  position: absolute;
  top: 0; left: 0;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.cta-band-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-xl); flex-wrap: wrap;
}
.cta-band-text h2 { color: var(--white); max-width: 540px; }
.cta-band-text p  { color: rgba(255,255,255,.65); margin-top: .75rem; max-width: 500px; }
.cta-band-actions { display: flex; gap: .85rem; flex-shrink: 0; flex-wrap: wrap; }
/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .services-preview-grid { grid-template-columns: repeat(2,1fr); }
  .featured-exp-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hero-stats { justify-content: center; }
  .hero-stat-sep { display: none; }
  .services-preview-grid { grid-template-columns: 1fr; }
  .featured-exp-grid { grid-template-columns: 1fr; }
  .value-pillars { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Hero stats bar — stack cleanly */
  .hero-stats      { flex-direction: column; gap: .15rem; align-items: center; padding-block: var(--sp-sm); }
  .hero-stat       { align-items: center; padding-block: .4rem; }
  .hero-stat-sep   { display: none; }
}

@media (max-width: 480px) {
  /* Prevent hero content from being too close to top on small phones */
  .hero-content { padding-top: calc(var(--nav-h) + var(--sp-md)); }

  /* Clients strip — smaller text so it fits */
  .clients-logos span { font-size: .72rem; letter-spacing: .03em; }
  .clients-logos { gap: var(--sp-md); }

  /* Partners logos — wrap tighter */
  .sp-num { font-size: 1.8rem; }

  /* CTA band tighter */
  .cta-band { padding-block: var(--sp-xl); }
}
