/* Bespoke Retainer — standalone styles */
:root {
  --bg: #000;
  --fg: #fff;
  --muted-fg: #bfbfbf;
  --card: #0d0d0d;
  --border: rgba(255,255,255,0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg); color: var(--fg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* Gradients & shadows */
.gradient-hero { background: linear-gradient(135deg,#000 0%,#141414 50%,#000 100%); }
.gradient-accent { background: linear-gradient(135deg,#fff,#d9d9d9); }
.gradient-subtle { background: linear-gradient(180deg,#000,#0f0f0f); }
.gradient-glow { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), transparent 70%); }
.text-gradient-accent {
  background: linear-gradient(135deg,#fff,#d9d9d9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shadow-elegant { box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); }
.shadow-glow { box-shadow: 0 0 50px rgba(255,255,255,.25); }
.shadow-soft { box-shadow: 0 10px 40px -15px rgba(0,0,0,.5); }
.shadow-card { box-shadow: 0 4px 20px -8px rgba(0,0,0,.45); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.btn-primary { background: #fff; color: #000; box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); }
.btn-primary:hover { background: #e8e8e8; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 80px 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.1); will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(0,0,0,.95), rgba(0,0,0,.9) 50%, rgba(0,0,0,.75));
}
.hero-glow {
  position: absolute; top: 80px; right: 40px; width: 384px; height: 384px;
  border-radius: 50%; opacity: .4; z-index: -1;
  animation: float 6s ease-in-out infinite;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero-left > * + * { margin-top: 28px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; font-weight: 500;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulseGlow 3s ease-in-out infinite;
}

h1.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
}
h1.hero-title .accent { /* no-op, allows class hook */ }
h1.hero-title .sub {
  display: block; margin-top: 8px;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  color: var(--muted-fg); font-weight: 300;
}
.hero-lead { font-size: 1.15rem; color: var(--muted-fg); max-width: 640px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 8px; color: var(--muted-fg); font-size: 14px; }
.hero-checks span.label { display: inline-flex; align-items: center; gap: 6px; }

/* Hero card */
.hero-card-wrap { position: relative; }
.hero-card-glow {
  position: absolute; inset: -16px; border-radius: 28px;
  background: linear-gradient(135deg,#fff,#d9d9d9);
  opacity: .15; filter: blur(40px);
}
.hero-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 32px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
}
.hero-card .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .15em;
  color: var(--muted-fg); margin-bottom: 24px;
}
.hero-list { display: flex; flex-direction: column; gap: 24px; }
.hero-list li { display: flex; gap: 16px; align-items: flex-start; }
.icon-box {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg,#fff,#d9d9d9); color: #000;
  box-shadow: 0 10px 40px -15px rgba(0,0,0,.5);
}
.icon-box svg { width: 16px; height: 16px; stroke: #000; }
.hero-list strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.hero-list p { font-size: 14px; color: var(--muted-fg); }

/* Sections */
section { padding: 120px 0; }
.eyebrow {
  font-size: 14px; text-transform: uppercase; letter-spacing: .25em;
  font-weight: 600; color: #fff; margin-bottom: 24px;
}
h2 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: 32px;
}
.retainer-feature-section .container,
#bespoke-retainer .container { text-align: center !important; margin-left: auto !important; margin-right: auto !important; max-width: 1200px !important; }

.intro { max-width: 900px; margin: 0 auto; text-align: center !important; }
.intro p { font-size: 1.15rem; color: var(--muted-fg); }

/* Benefits */
.benefits-header { max-width: 900px; margin: 0 auto 80px auto; text-align: center; }
.benefits-header .gray { color: rgba(255, 255, 255, 0.4); }

.grid-benefits {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) { .grid-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-benefits { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 32px; padding: 40px;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  text-align: left;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); background: #111; }

.card-blob {
  position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}

.card-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }

.icon-box {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 52px !important; height: 52px !important; border-radius: 50% !important;
  background: #ffffff !important; color: #000 !important;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}
.icon-box svg { width: 24px; height: 24px; stroke: #000; stroke-width: 2; }
.card:hover .icon-box { transform: scale(1.05); }

.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #fff; line-height: 1.3; }
.card p { font-size: 15px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* How it works */
.steps {
  position: relative; display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps::before {
  content: ''; position: absolute; top: 32px; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.4), transparent);
}
@media (max-width: 767px) { .steps::before { display: none; } }
.step { text-align: center; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg,#fff,#d9d9d9); color: #000;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 24px; box-shadow: 0 0 50px rgba(255,255,255,.25);
}
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.step p { color: var(--muted-fg); }

/* CTA — isolation keeps ::before/::after contained within this section */
.cta {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 128px 0;
  text-align: center;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg,#000 0%,#141414 50%,#000 100%);
}
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), transparent 70%);
  opacity: .3;
}
.cta h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 24px; }
.cta p { font-size: 1.2rem; color: var(--muted-fg); max-width: 640px; margin: 0 auto 40px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 20px rgba(255,255,255,.3); } 50% { box-shadow: 0 0 40px rgba(255,255,255,.6); } }
.animate-fade-up { animation: fadeUp .8s cubic-bezier(.4,0,.2,1) both; }
.animate-fade-in { animation: fadeIn .8s ease-out both; }
.animate-scale-in { animation: scaleIn .6s cubic-bezier(.34,1.56,.64,1) both; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* =============================================
   INDUSTRIES WE SERVE
   ============================================= */
.industries-section {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  /* isolation:isolate creates a self-contained stacking context so
     the overlay's z-index does NOT bleed into sibling sections */
  isolation: isolate;
}

/* Parallax background */
.industries-bg {
  position: absolute;
  inset: 0;
  z-index: 0;      /* positive — stays inside the isolated context */
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
}

/* Dark overlay for readability */
.industries-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;      /* above bg, still inside isolated context */
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.88) 50%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

/* Content sits above bg + overlay */
.industries-section .container {
  position: relative;
  z-index: 2;
}

/* Section intro lead */
.industries-lead {
  font-size: 1.1rem;
  color: var(--muted-fg);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive grid: 1 → 2 → 4 columns */
.industries-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Individual tile — glassmorphism card */
.industry-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  cursor: default;
  overflow: hidden;
}

/* Subtle inner glow on hover */
.industry-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industry-tile:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.06);
}

.industry-tile:hover::before {
  opacity: 1;
}

/* Icon circle */
.industry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #d9d9d9);
  color: #000;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.25);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.industry-tile:hover .industry-icon {
  transform: scale(1.12) rotate(4deg);
}

.industry-icon svg {
  stroke: #000;
}

/* Tile text */
.industry-tile h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: #ffffff;
}

.industry-tile p {
  font-size: 13.5px;
  color: var(--muted-fg);
  line-height: 1.6;
}
