/* ============================================================
   BLG CONSULTING — DESIGN SYSTEM
   Brand: Navy #0B1F3B · Electric Blue #2F80ED · Light Grey #F5F7FA
   Type:  Montserrat (display) · Inter (body)
   ============================================================ */

:root {
  /* Colours */
  --navy-950: #050D1A;        /* page background (deepest) */
  --navy-900: #0B1F3B;        /* brand navy — panels */
  --navy-800: #10294C;        /* raised surfaces */
  --navy-700: #16345E;        /* borders / strokes */
  --blue-500: #2F80ED;        /* electric blue — primary accent */
  --blue-400: #5BA0FF;        /* hover accent */
  --cyan-400: #4FD9E8;        /* secondary glow accent */
  --grey-100: #F5F7FA;        /* headings / near-white text */
  --grey-300: #C4CEDC;        /* body text */
  --grey-500: #7E8CA3;        /* muted / captions */

  /* Type */
  --font-display: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.6rem, 3vw, 2.1rem);
  --text-3xl: clamp(2rem, 4.5vw, 3rem);
  --text-hero: clamp(2.6rem, 7vw, 5.4rem);

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--grey-300);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--blue-500); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--grey-100);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.container { width: min(var(--container), 92%); margin-inline: auto; }
section { padding-block: var(--section-pad); position: relative; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue-400); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--blue-500);
}
.section-title { font-size: var(--text-3xl); max-width: 22ch; margin-bottom: 1.2rem; }
.section-lede { max-width: 60ch; font-size: var(--text-lg); color: var(--grey-300); }
.center { text-align: center; }
.center .section-title, .center .section-lede { margin-inline: auto; }
.center .eyebrow::before { display: none; }

.text-accent { color: var(--blue-500); }

/* Gradient headline word */
.gradient-word {
  background: linear-gradient(92deg, var(--blue-400), var(--cyan-400));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Scroll progress bar ---------- */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  z-index: 1200;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 13, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(47, 128, 237, 0.15);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--grey-100); letter-spacing: 0.01em; display: flex; align-items: center; gap: 0.55rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  font-size: 0.8rem; color: #fff; font-weight: 800;
  box-shadow: 0 0 22px rgba(47, 128, 237, 0.45);
}
.logo span small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.32em; color: var(--grey-500); text-transform: uppercase; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--grey-300);
  position: relative; padding-block: 0.35rem; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue-500); transition: width 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--grey-100); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: var(--text-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
  will-change: transform;
}
.btn-primary {
  background: var(--blue-500); color: #fff;
  box-shadow: 0 8px 26px rgba(47, 128, 237, 0.35);
}
.btn-primary:hover { background: var(--blue-400); box-shadow: 0 12px 34px rgba(47, 128, 237, 0.5); }
.btn-ghost {
  border: 1px solid var(--navy-700); color: var(--grey-100);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--blue-500); background: rgba(47,128,237,0.08); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--grey-100); transition: 0.3s var(--ease-out); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: rgba(5,13,26,0.97); backdrop-filter: blur(20px);
    padding: 1rem 4%; border-bottom: 1px solid var(--navy-700);
    transform: translateY(-120%); transition: transform 0.4s var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links .btn { margin-top: 1rem; width: 100%; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 76px; overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
}
.hero::after { /* soft vignette so text stays readable over 3D */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(5,13,26,0.25), rgba(5,13,26,0.85) 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem; border-radius: 999px; margin-bottom: 1.6rem;
  border: 1px solid rgba(47,128,237,0.35); background: rgba(47,128,237,0.08);
  font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-400);
}
.hero-kicker .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,217,232,0.55); }
  60% { box-shadow: 0 0 0 8px rgba(79,217,232,0); }
}
.hero h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: inline-block; transform: translateY(110%);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub { max-width: 54ch; margin-top: 1.6rem; font-size: var(--text-lg); color: var(--grey-300); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3.6rem;
  font-size: var(--text-sm); color: var(--grey-500);
}
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--grey-100); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid var(--grey-500); border-radius: 999px;
}
.scroll-hint::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px;
  background: var(--blue-400); border-radius: 999px; transform: translateX(-50%);
  animation: scrollhint 1.8s infinite var(--ease-out);
}
@keyframes scrollhint { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--navy-700); padding-block: 1.1rem;
  overflow: hidden; background: var(--navy-900);
}
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500);
  display: flex; align-items: center; gap: 3.5rem; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--blue-500); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- Bento grid (four pillars) ---------- */
.bento {
  display: grid; gap: 1.1rem; margin-top: 3rem;
  grid-template-columns: repeat(4, 1fr);
}
.bento-card {
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.bento-card::before { /* glow follows cursor via --mx / --my set in JS */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(47,128,237,0.16), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { border-color: rgba(47,128,237,0.5); transform: translateY(-5px); }
.bento-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(47,128,237,0.12); color: var(--blue-400); margin-bottom: 1.3rem;
}
.bento-card h3 { font-size: var(--text-lg); margin-bottom: 0.6rem; }
.bento-card p { font-size: var(--text-sm); color: var(--grey-500); position: relative; }

@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem;
}
.service-card {
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem; background: var(--navy-900);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d; /* used by JS tilt effect */
}
.service-card:hover {
  border-color: rgba(47,128,237,0.55);
  box-shadow: 0 24px 60px rgba(3, 8, 18, 0.65), 0 0 0 1px rgba(47,128,237,0.15);
}
.service-card .num {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.2em; color: var(--blue-500); margin-bottom: 1.4rem;
}
.service-card h3 { font-size: var(--text-xl); margin-bottom: 0.8rem; }
.service-card p { font-size: var(--text-sm); color: var(--grey-500); flex: 1; }
.service-card .card-link {
  margin-top: 1.6rem; font-size: var(--text-sm); font-weight: 600; color: var(--blue-400);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.service-card .card-link .arrow { transition: transform 0.25s var(--ease-out); }
.service-card:hover .card-link .arrow { transform: translateX(5px); }

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats-band {
  border-block: 1px solid var(--navy-700);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(47,128,237,0.12), transparent),
    var(--navy-900);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat strong {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; color: var(--grey-100); display: block;
}
.stat strong em { font-style: normal; color: var(--blue-500); }
.stat span { font-size: var(--text-sm); color: var(--grey-500); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split section (problem / solution) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list li, .cross-list li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.75rem 0; font-size: var(--text-base);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.check-list li::before {
  content: "✓"; color: var(--cyan-400); font-weight: 700; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(79,217,232,0.1); font-size: 0.8rem;
}
.cross-list li::before {
  content: "✕"; color: #E86A6A; font-weight: 700; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232,106,106,0.1); font-size: 0.75rem;
}

/* ---------- Case study cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--navy-900); display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(47,128,237,0.5); }
.case-visual {
  height: 170px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.case-visual svg { width: 100%; height: 100%; }
.case-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.case-tag {
  align-self: flex-start; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-400);
  padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid rgba(47,128,237,0.35);
  margin-bottom: 1rem;
}
.case-body h3 { font-size: var(--text-lg); margin-bottom: 0.6rem; }
.case-body p { font-size: var(--text-sm); color: var(--grey-500); flex: 1; }
.case-result { margin-top: 1.3rem; font-size: var(--text-sm); color: var(--cyan-400); font-weight: 600; }

/* Full case study layout (case-studies page) */
.case-study {
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  background: var(--navy-900); padding: clamp(1.8rem, 4vw, 3rem); margin-top: 2rem;
}
.case-study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.8rem; }
@media (max-width: 820px) { .case-study-grid { grid-template-columns: 1fr; } }
.case-col h4 {
  font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-400); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.case-col ul li {
  font-size: var(--text-sm); padding: 0.45rem 0 0.45rem 1.2rem; position: relative; color: var(--grey-300);
}
.case-col ul li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem; width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue-500);
}
.case-col.outcome ul li::before { background: var(--cyan-400); }

/* ---------- Process timeline (Assess → Design → Deliver → Optimise) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 3rem; counter-reset: step; }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
.step {
  counter-increment: step; position: relative;
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  padding: 2rem 1.7rem; background: var(--navy-900);
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem;
  background: linear-gradient(180deg, rgba(47,128,237,0.9), rgba(47,128,237,0.05));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 1rem;
}
.step h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.step p { font-size: var(--text-sm); color: var(--grey-500); }

/* ---------- Services page: sticky sub-nav + detail blocks ---------- */
.page-hero {
  padding-top: calc(76px + clamp(4rem, 9vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 340px at 85% -10%, rgba(47,128,237,0.16), transparent),
    radial-gradient(500px 300px at 0% 100%, rgba(79,217,232,0.07), transparent);
  pointer-events: none;
}
.page-hero h1 { font-size: var(--text-3xl); max-width: 20ch; }

.services-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .services-layout { grid-template-columns: 1fr; } .service-subnav { display: none; } }
.service-subnav { position: sticky; top: 110px; }
.service-subnav a {
  display: block; padding: 0.7rem 1rem; font-size: var(--text-sm);
  border-left: 2px solid var(--navy-700); color: var(--grey-500);
  transition: 0.25s;
}
.service-subnav a:hover, .service-subnav a.active { color: var(--grey-100); border-left-color: var(--blue-500); background: rgba(47,128,237,0.05); }

.service-detail {
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  background: var(--navy-900); padding: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.6rem; scroll-margin-top: 110px;
}
.service-detail header { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.service-detail .icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--blue-400);
  background: rgba(47,128,237,0.12); border: 1px solid rgba(47,128,237,0.25);
}
.service-detail h2 { font-size: var(--text-2xl); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.pill-list li {
  font-size: var(--text-sm); padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--navy-700); background: rgba(255,255,255,0.02);
  transition: 0.25s;
}
.pill-list li:hover { border-color: var(--blue-500); color: var(--grey-100); }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.6rem; }
@media (max-width: 640px) { .detail-columns { grid-template-columns: 1fr; } }
.detail-columns h4 { font-size: var(--text-sm); color: var(--blue-400); margin-bottom: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Values (about) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin-top: 3rem; }
.value-card {
  border: 1px solid var(--navy-700); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; background: var(--navy-900); transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.value-card:hover { border-color: rgba(47,128,237,0.5); transform: translateY(-4px); }
.value-card h3 { font-size: var(--text-base); margin-bottom: 0.5rem; }
.value-card p { font-size: var(--text-sm); color: var(--grey-500); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 3rem; }
@media (max-width: 1050px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  padding: 2.1rem 1.8rem; background: var(--navy-900);
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(47,128,237,0.55); }
.price-card.featured {
  border-color: var(--blue-500);
  background: linear-gradient(170deg, rgba(47,128,237,0.12), var(--navy-900) 55%);
  box-shadow: 0 20px 60px rgba(47,128,237,0.18);
}
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-500); color: #fff; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.price-card .price {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--grey-100);
  margin-block: 0.8rem;
}
.price-card .price small { font-size: 0.85rem; font-weight: 500; color: var(--grey-500); }
.price-card ul { flex: 1; margin-block: 1rem; }
.price-card ul li {
  font-size: var(--text-sm); padding: 0.5rem 0 0.5rem 1.6rem; position: relative; color: var(--grey-300);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-400); font-weight: 700; }
.price-card .btn { justify-content: center; }

/* Retainers table */
.retainer-list { margin-top: 2.4rem; border: 1px solid var(--navy-700); border-radius: var(--radius-lg); overflow: hidden; }
.retainer-row {
  display: grid; grid-template-columns: 2fr 1.4fr auto; gap: 1.4rem; align-items: center;
  padding: 1.4rem 1.8rem; background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700); transition: background 0.25s;
}
.retainer-row:last-child { border-bottom: none; }
.retainer-row:hover { background: var(--navy-800); }
.retainer-row h3 { font-size: var(--text-base); }
.retainer-row p { font-size: var(--text-sm); color: var(--grey-500); }
.retainer-row .price { font-family: var(--font-display); font-weight: 700; color: var(--blue-400); }
@media (max-width: 700px) { .retainer-row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- Accordion (FAQ / engagement models) ---------- */
.accordion { margin-top: 2.5rem; border: 1px solid var(--navy-700); border-radius: var(--radius-lg); overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--navy-700); background: var(--navy-900); }
.acc-item:last-child { border-bottom: none; }
.acc-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 1.8rem; text-align: left; font-family: var(--font-display);
  font-weight: 600; color: var(--grey-100); font-size: var(--text-base);
  transition: background 0.25s;
}
.acc-header:hover { background: var(--navy-800); }
.acc-header .chev { transition: transform 0.35s var(--ease-out); color: var(--blue-400); flex-shrink: 0; margin-left: 1rem; }
.acc-item.open .acc-header .chev { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.acc-body p { padding: 0 1.8rem 1.5rem; font-size: var(--text-sm); color: var(--grey-500); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta-box {
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center;
  background:
    radial-gradient(600px 260px at 50% -30%, rgba(47,128,237,0.35), transparent),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(47,128,237,0.3);
}
.cta-box h2 { font-size: var(--text-3xl); max-width: 24ch; margin-inline: auto; }
.cta-box p { max-width: 52ch; margin: 1.2rem auto 2.2rem; color: var(--grey-300); }
.cta-grid-lines { /* decorative animated grid */
  position: absolute; inset: 0; opacity: 0.25; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,128,237,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,128,237,0.25) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 1.1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--blue-400);
  background: rgba(47,128,237,0.12);
}
.contact-info-item h3 { font-size: var(--text-base); margin-bottom: 0.2rem; }
.contact-info-item p { font-size: var(--text-sm); color: var(--grey-500); }

.contact-form {
  border: 1px solid var(--navy-700); border-radius: var(--radius-lg);
  background: var(--navy-900); padding: clamp(1.8rem, 4vw, 2.6rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey-500); margin-bottom: 0.5rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.9rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--navy-700); background: var(--navy-950);
  color: var(--grey-100); font: inherit; font-size: var(--text-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47,128,237,0.18);
}
.form-success {
  display: none; text-align: center; padding: 3rem 1rem;
}
.form-success.show { display: block; }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  animation: pop 0.5s var(--ease-out);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--navy-700); background: var(--navy-950);
  padding-block: 4rem 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: var(--text-sm); margin-bottom: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid ul li { margin-bottom: 0.65rem; }
.footer-grid a { font-size: var(--text-sm); color: var(--grey-500); transition: color 0.25s; }
.footer-grid a:hover { color: var(--blue-400); }
.footer-tagline { font-size: var(--text-sm); color: var(--grey-500); max-width: 34ch; margin-top: 1rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--text-xs); color: var(--grey-500);
}

/* ---------- Back to top ---------- */
#to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1000;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); border: 1px solid var(--navy-700); color: var(--grey-100);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: 0.3s var(--ease-out);
}
#to-top.show { opacity: 1; pointer-events: auto; transform: none; }
#to-top:hover { border-color: var(--blue-500); color: var(--blue-400); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   CINEMATIC HERO ADDITIONS (all pages)
   ============================================================ */

/* Sub-page heroes become full cinematic stages like the homepage */
.page-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.page-hero #hero-canvas,
.hero #hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
/* Keep hero text above the canvas and glow layers */
.page-hero .container,
.hero .container { position: relative; z-index: 3; }

/* Soft vignette on sub-page heroes so text stays readable over 3D */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(5,13,26,0.2), rgba(5,13,26,0.8) 78%);
  pointer-events: none;
}

/* The warm "ambient cinema" light wash — starts invisible,
   GSAP fades it in as you scroll through the hero */
.cinema-glow {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; opacity: 0;
  background:
    radial-gradient(65% 55% at 50% 105%, rgba(79, 217, 232, 0.18), transparent 70%),
    radial-gradient(85% 65% at 72% -5%, rgba(191, 217, 255, 0.22), transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(11, 31, 59, 0.55));
}
