/* ============================================================
   CrackedMinds — style.css
   Bipsync-inspired layout · Black & Orange brand
   ============================================================ */

/* 1. Reset
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* 2. Tokens
   ---------------------------------------------------------- */
:root {
  --bg:            #060606;
  --surface:       #0e0e0e;
  --surface-2:     #151515;
  --surface-3:     #1c1c1c;

  --orange:        #f97316;
  --orange-hover:  #fb923c;
  --orange-dim:    rgba(249, 115, 22, 0.1);
  --orange-glow:   rgba(249, 115, 22, 0.25);
  --orange-border: rgba(249, 115, 22, 0.3);

  --white:         #ffffff;
  --text:          rgba(255, 255, 255, 0.88);
  --text-muted:    rgba(255, 255, 255, 0.52);
  --text-dim:      rgba(255, 255, 255, 0.25);

  --border:        rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.12);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-lg:  4rem;
  --space-xl:  7rem;

  --max-width: 1200px;
  --nav-height: 160px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease:      all 0.25s ease;
  --ease-slow: all 0.45s ease;
}

/* 3. Base
   ---------------------------------------------------------- */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  font-weight: 700;
  color: var(--white);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

section[id] { scroll-margin-top: var(--nav-height); }

/* 4. Utilities
   ---------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: var(--space-xl) 0; }

.text-orange { color: var(--orange); }

.section-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.75;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header { text-align: center; margin-bottom: var(--space-lg); }
.section-header .section-label { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* 5. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: #0a0a0a;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  box-shadow: 0 0 28px var(--orange-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
  transform: translateY(-2px);
}

.btn-lg   { padding: 1rem 2.25rem; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; }

/* 6a. Loading Screen
   ---------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.loader__logo {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
}
.loader__tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.loader__progress {
  width: 160px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}
.loader__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 1px;
}

/* 6. Navbar
   ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(6, 6, 6, 0.96);
  border-bottom-color: rgba(249, 115, 22, 0.18);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-height);
}

.navbar__logo { flex-shrink: 0; margin-left: -2rem; }

.logo-img {
  height: 160px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.logo-img--sm { height: 80px; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.navbar__links a {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--ease);
  position: relative;
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--white); }
.navbar__links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.navbar__cta { margin-left: 1rem; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.navbar__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--ease);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: rgba(6, 6, 6, 0.98);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 380px; }
.mobile-menu ul {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-menu ul a {
  display: block;
  padding: 0.8rem 1rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--ease);
}
.mobile-menu ul a:hover { color: var(--white); }
.mobile-menu .btn { margin: 0 1.5rem 1.25rem; }

/* 7. Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 65% 55% at 78% 22%, rgba(249,115,22,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 12% 82%, rgba(249,115,22,0.04) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

/* Background layers */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(72px); }
}

.hero__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero__scan::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(249, 115, 22, 0.022) 45%,
    rgba(249, 115, 22, 0.05) 50%,
    rgba(249, 115, 22, 0.022) 55%,
    transparent 100%);
  animation: scanBeam 9s ease-in-out infinite;
}
@keyframes scanBeam {
  0%   { left: -60%; }
  100% { left: 110%; }
}

.hero__glow {
  position: absolute;
  width: 650px; height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.11) 0%, transparent 65%);
  top: -150px; right: -100px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Hero layout: left content / right visual */
.hero__layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
}

/* Left */
.hero__tag {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero__tag-bracket { color: var(--orange); opacity: 0.65; }
.hero__tag-dash    { letter-spacing: 0; }

.hero__headline {
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
}
.hero__em {
  font-style: normal;
  color: var(--orange);
  text-shadow: 0 0 70px rgba(249, 115, 22, 0.45);
}

.hero__sub {
  max-width: 540px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 2.75rem;
  font-size: 1.05rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Right: brain & cogs visual */
.hero__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  animation: brainFloat 9s ease-in-out infinite;
}
.brain-img {
  width: 100%;
  height: auto;
  display: block;
}
.brain-gears-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes brainFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* Metrics strip */
.hero__strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem 0;
}

.hero__strip-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 140px;
  padding: 0.4rem 0;
}

.strip-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(249, 115, 22, 0.45);
  white-space: nowrap;
}

.strip-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.3;
}

.strip-sep {
  width: 1px;
  height: 36px;
  background: var(--border-bright);
  margin: 0 2rem;
  flex-shrink: 0;
}

/* 8. Intro — "Intelligence in. Solutions delivered."
   ---------------------------------------------------------- */
.intro-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.intro-text .section-label { text-align: left; }
.intro-text h2 { margin: 0.75rem 0 1.5rem; }

.intro-body {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.intro-stats { display: flex; flex-direction: column; }

.big-stat {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.big-stat:first-child { border-top: 1px solid var(--border); }

.big-stat__num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--orange);
  text-shadow: 0 0 32px rgba(249, 115, 22, 0.45);
  min-width: 110px;
  flex-shrink: 0;
}

.big-stat__sep {
  width: 1px;
  height: 44px;
  background: var(--border-bright);
  flex-shrink: 0;
}

.big-stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
}

/* 9. Services
   ---------------------------------------------------------- */
.services-section { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card {
  --c: 249, 115, 22;
  background: var(--surface);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--ease-slow);
}

/* Per-card accent colours */
.services-grid .service-card:nth-child(1) { --c: 96,  165, 250; }  /* blue   — IT Consultancy  */
.services-grid .service-card:nth-child(2) { --c: 249, 115, 22;  }  /* orange — AI Consultancy  */
.services-grid .service-card:nth-child(3) { --c: 167, 139, 250; }  /* violet — M&A             */
.services-grid .service-card:nth-child(4) { --c: 45,  212, 191; }  /* teal   — PMO in a Box    */
.services-grid .service-card:nth-child(5) { --c: 251, 191, 36;  }  /* amber  — Boltwork API    */

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: var(--ease);
}
.service-card:hover::before { background: rgb(var(--c)); }
.service-card:hover { background: var(--surface-2); }

.service-card__num {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(var(--c), 0.07);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
  transition: var(--ease-slow);
  user-select: none;
}
.service-card:hover .service-card__num { color: rgba(var(--c), 0.14); }

.service-card__icon {
  width: 44px; height: 44px;
  background: rgba(var(--c), 0.1);
  border: 1px solid rgba(var(--c), 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgb(var(--c));
  flex-shrink: 0;
}

.service-card h3 { color: var(--white); }

.service-card__list { display: flex; flex-direction: column; gap: 0.55rem; }
.service-card__btn  { margin-top: auto; font-size: 0.8rem; padding: 0.55rem 1.1rem; }
.service-card__list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgb(var(--c));
  opacity: 0.6;
}

.service-card--featured { background: var(--surface-2); }

/* 10. About
   ---------------------------------------------------------- */
.about-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about__text .section-label { text-align: left; }
.about__text h2 { margin: 0.75rem 0 1.5rem; }
.about__body {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.about__visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -14rem;
}
.about__hex {
  position: absolute;
  top: 50%; left: 50%;
  margin: -60px 0 0 -60px;
  z-index: 2;
  width: 120px; height: 120px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(249,115,22,0.15), 0 0 80px rgba(249,115,22,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbitCounterSpin 28s linear infinite;
}
.about__hex-inner {
  font-size: 3.2rem;
  color: var(--orange);
  text-shadow: 0 0 40px var(--orange-glow);
}
.about__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.1);
}
.about__orbit--1 {
  width: 280px; height: 280px;
  top: 50%; left: 50%;
  margin: -140px 0 0 -140px;
  animation: orbitSpin 28s linear infinite;
}
.about__orbit--2 {
  width: 390px; height: 390px;
  top: 50%; left: 50%;
  margin: -195px 0 0 -195px;
  border-style: dashed;
  border-color: rgba(249, 115, 22, 0.06);
  animation: orbitSpin 45s linear infinite reverse;
}
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 11. Why Us
   ---------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  --c: 249, 115, 22;
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: var(--ease-slow);
}
.pillars-grid .pillar:nth-child(1) { --c: 96,  165, 250; }
.pillars-grid .pillar:nth-child(2) { --c: 249, 115, 22;  }
.pillars-grid .pillar:nth-child(3) { --c: 167, 139, 250; }
.pillars-grid .pillar:nth-child(4) { --c: 45,  212, 191; }
.pillars-grid .pillar:nth-child(5) { --c: 251, 191, 36;  }
.pillars-grid .pillar:nth-child(6) { --c: 251, 113, 133; }
.pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--c), 0.06);
  opacity: 0;
  transition: var(--ease);
  pointer-events: none;
}
.pillar:hover {
  border-color: rgba(var(--c), 0.35);
  box-shadow: 0 0 45px rgba(var(--c), 0.07);
  transform: translateY(-3px);
}
.pillar:hover::after { opacity: 1; }

.pillar__num {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(var(--c), 0.08);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}
.pillar__icon {
  position: relative;
  z-index: 1;
  width: 42px; height: 42px;
  background: rgba(var(--c), 0.1);
  border: 1px solid rgba(var(--c), 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgb(var(--c));
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.pillar h3 { position: relative; z-index: 1; color: var(--white); margin-bottom: 0.5rem; }
.pillar p  { position: relative; z-index: 1; font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin: 0; font-weight: 300; }

/* 12. Testimonials
   ---------------------------------------------------------- */
.testimonials-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: var(--ease-slow);
}
.testimonial-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  border-left-color: var(--orange);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.07);
  transform: translateY(-3px);
}
.testimonial-card__quote {
  font-size: 4.5rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.18;
  font-family: Georgia, serif;
  position: absolute;
  top: 0.75rem; right: 1.25rem;
  pointer-events: none;
  user-select: none;
}
.testimonial-card__text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; font-style: italic; font-weight: 300; flex: 1; }
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testimonial-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.testimonial-card__meta strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--white); font-family: var(--font-head); }
.testimonial-card__meta span  { font-size: 0.78rem; color: var(--text-dim); }

/* 13. CTA — "See CrackedMinds in action"
   ---------------------------------------------------------- */
.cta-section {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* Teal orbital system */
.cta-orb {
  position: relative;
  width: 420px; height: 420px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.35;
}

/* Glowing core */
.cta-orb__core {
  position: absolute;
  width: 10px; height: 10px;
  background: #2dd4bf;
  border-radius: 50%;
  box-shadow:
    0 0 8px rgba(45,212,191,0.7),
    0 0 24px rgba(45,212,191,0.25);
  animation: coreBreath 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes coreBreath {
  0%, 100% { transform: scale(1);   }
  50%       { transform: scale(1.3); }
}

/* Orbital rings */
.cta-orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45,212,191,0.2);
}
.cta-orb__ring--1 { width: 120px; height: 120px; animation: ctaRingSpin 20s linear infinite; }
.cta-orb__ring--2 { width: 240px; height: 240px; border-style: dashed; border-color: rgba(45,212,191,0.12); animation: ctaRingSpin 35s linear infinite reverse; }
.cta-orb__ring--3 { width: 380px; height: 380px; animation: ctaRingSpin 55s linear infinite; }
@keyframes ctaRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Orbiting dots */
.cta-orb__dot {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 4px rgba(45,212,191,0.7);
  animation: ctaDotOrbit var(--dur, 20s) linear var(--delay, 0s) infinite;
}
.cta-orb__dot--lg { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cta-orb__dot--md { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.cta-orb__dot--sm { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
@keyframes ctaDotOrbit {
  from { transform: rotate(0deg)   translateX(var(--r, 60px)) rotate(0deg);   }
  to   { transform: rotate(360deg) translateX(var(--r, 60px)) rotate(-360deg); }
}

/* Expanding pulse waves */
.cta-orb__pulse {
  position: absolute;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(45,212,191,0.4);
  animation: ctaPulseWave 6s ease-out infinite;
}
.cta-orb__pulse--1 { animation-delay: 0s;  }
.cta-orb__pulse--2 { animation-delay: -2s; }
.cta-orb__pulse--3 { animation-delay: -4s; }
@keyframes ctaPulseWave {
  0%   { transform: scale(1);  opacity: 0.5; }
  100% { transform: scale(23); opacity: 0;   }
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-section__inner .section-label { margin-bottom: 0.75rem; }
.cta-section__inner h2 { margin-bottom: 1.5rem; }
.cta-section__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* 14. Contact
   ---------------------------------------------------------- */
.contact-section { background: var(--bg); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact__left .section-label { text-align: left; }
.contact__left h2 { margin: 0.75rem 0 1.25rem; }
.contact__sub { color: var(--text-muted); font-weight: 300; line-height: 1.85; margin-bottom: 2rem; font-size: 1.05rem; }
.contact__details { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--ease);
}
a.contact__item:hover { color: var(--orange); }
.contact__item-icon {
  width: 34px; height: 34px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--orange);
  flex-shrink: 0;
}
.contact__sam {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.contact__sam strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--white); font-family: var(--font-head); margin-bottom: 0.25rem; }
.contact__sam p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; font-weight: 300; }

.sam__pulse { position: relative; flex-shrink: 0; margin-top: 4px; width: 10px; height: 10px; }
.sam__dot   { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; position: relative; }

/* 15. Contact Form
   ---------------------------------------------------------- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.req { color: var(--orange); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-2);
  transition: var(--ease);
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12); }
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-status { font-size: 0.875rem; border-radius: var(--radius-sm); transition: var(--ease); }
.form-status.success   { padding: 0.75rem 1rem; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);  color: #4ade80; }
.form-status.error-msg { padding: 0.75rem 1rem; background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2); color: #f87171; }

/* 16. Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--surface);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__copy { font-size: 0.78rem; color: var(--text-dim); margin: 0; }
.footer__nav  { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer__nav a {
  font-family: var(--font-head);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: var(--ease);
}
.footer__nav a:hover { color: var(--orange); }

/* 17. Background geometric shapes
   ---------------------------------------------------------- */
.section-rel { position: relative; }
.section-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.section-rel > .container { position: relative; z-index: 1; }

.geo { position: absolute; border: 1px solid rgba(249, 115, 22, 0.07); animation: geoSpin 40s linear infinite; }
.geo--ring  { border-radius: 50%; }
.geo--cross { width: 30px; height: 30px; border: none; animation: geoFloat 7s ease-in-out infinite; }
.geo--cross::before,
.geo--cross::after { content: ''; position: absolute; background: rgba(249, 115, 22, 0.16); border-radius: 1px; }
.geo--cross::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.geo--cross::after  { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
@keyframes geoSpin  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes geoFloat { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; } 50% { transform: translateY(-12px) rotate(45deg); opacity: 1; } }

/* 18. Scroll Reveal
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed { opacity: 1; transform: translateY(0); }

  .sam__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: samPulse 2.2s ease-out infinite;
  }
  @keyframes samPulse {
    0%   { transform: scale(1); opacity: 0.65; }
    100% { transform: scale(2.8); opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal        { opacity: 1; transform: none; }
  .hero__grid    { animation: none; }
  .about__orbit  { animation: none; }
  .brain-visual { animation: none; }
  .cta-orb__ring, .cta-orb__core, .cta-orb__dot, .cta-orb__pulse { animation: none; }
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* 19. Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__layout     { grid-template-columns: 1fr; gap: 3rem; }
  .hero__right      { display: none; }
  .intro-grid       { grid-template-columns: 1fr; gap: 4rem; }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid     { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner     { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual    { display: none; }
  .contact__inner   { grid-template-columns: 1fr; gap: 3.5rem; }
}

@media (max-width: 768px) {
  :root { --space-xl: 5rem; }

  .navbar__links  { display: none; }
  .navbar__cta    { display: none; }
  .navbar__toggle { display: flex; }
  .mobile-menu    { display: block; }

  .services-grid     { grid-template-columns: 1fr; }
  .pillars-grid      { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .hero__strip-inner { gap: 0; }
  .strip-sep { margin: 0 1rem; }
  .strip-item { min-width: 100px; padding: 0.5rem 0; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .cta-section__actions { flex-direction: column; align-items: center; }
  .cta-section__actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer__nav   { gap: 1.25rem; }

  .contact-form  { padding: 1.75rem; }
  .contact__inner { gap: 2.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.6rem; }
  .hero__layout { padding-top: calc(var(--nav-height) + 2rem); }
  .strip-sep { display: none; }
  .hero__strip-inner { gap: 1rem; }
  .strip-item { flex: none; width: 50%; }
}

/* ============================================================
   20. Visual Enhancements
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #fb923c, #fde68a, #fb923c, var(--orange));
  background-size: 300% 100%;
  z-index: 10000;
  box-shadow: 0 0 8px rgba(249,115,22,0.8), 0 0 20px rgba(249,115,22,0.3);
  animation: progressShimmer 3s linear infinite;
  pointer-events: none;
}
@keyframes progressShimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* Custom cursor */
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(249,115,22,0.9);
  will-change: left, top;
}
.cursor-ring {
  position: fixed;
  width: 30px; height: 30px;
  border: 1.5px solid rgba(249,115,22,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  will-change: left, top;
}
.cursor-ring--hover {
  width: 54px; height: 54px;
  border-color: rgba(249,115,22,0.85);
}
body.custom-cursor,
body.custom-cursor * { cursor: none !important; }

/* Typewriter caret on hero word */
.hero__em.typing::after {
  content: '|';
  color: var(--orange);
  -webkit-text-fill-color: var(--orange); /* override parent gradient clip */
  font-style: normal;
  animation: caretBlink 0.65s step-end infinite;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Service card mouse-glow overlay */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--c), 0.09) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.service-card:hover::after { opacity: 1; }

/* Ensure service card content sits above glow */
.service-card__num,
.service-card__icon,
.service-card h3,
.service-card__list { position: relative; z-index: 1; }

/* Animated gradient top-border on featured card */
.service-card--featured::before {
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    #fb923c 25%,
    #fde68a 50%,
    #fb923c 75%,
    var(--orange) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: featuredBorder 3s linear infinite;
}
@keyframes featuredBorder {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Pillar mouse-glow — replace solid orange-dim with radial */
.pillar::after {
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--c), 0.12) 0%,
    transparent 70%
  ) !important;
}

/* Testimonial card mouse-glow */
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(249,115,22,0.08) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: inherit;
}
.testimonial-card:hover::after { opacity: 1; }

/* Testimonial glassmorphism upgrade */
.testimonial-card {
  background: rgba(14,14,14,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { animation: none; }
  .service-card--featured::before { animation: none !important; }
}

/* ============================================================
   21. Further Visual Enhancements
   ============================================================ */

/* Noise / grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Gradient shimmer text on hero "complex" */
.hero__em {
  font-style: normal;
  color: var(--orange); /* fallback */
  background: linear-gradient(110deg, #f97316 0%, #fde68a 40%, #fb923c 70%, #f97316 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: shimmerText 5s linear infinite;
  display: inline-block;
}
@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Section label animated underline */
.reveal .section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 0%;
  background: var(--orange);
  opacity: 0.55;
  margin-top: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.reveal.revealed .section-label::after {
  width: 100%;
}

/* Cinematic h2 reveal — blur + drift up within any .reveal container */
@media (prefers-reduced-motion: no-preference) {
  .reveal h2 {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
    transition:
      opacity   0.9s ease 0.18s,
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
      filter    0.9s ease 0.18s;
  }
  .reveal.revealed h2 {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* CTA section atmospheric gradient */
.cta-section {
  background:
    radial-gradient(ellipse 80% 70% at center 55%, rgba(45,212,191,0.05) 0%, transparent 60%),
    var(--surface);
}

/* Orbit satellite nodes — About section */
.about__orbit { position: relative; }

.orbit-node {
  position: absolute;
  width: 36px; height: 36px;
  background: var(--surface-3);
  border: 1px solid var(--orange-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--orange);
  box-shadow: 0 0 16px rgba(249,115,22,0.22), 0 0 32px rgba(249,115,22,0.08);
  animation: orbitCounterSpin 28s linear infinite;
  z-index: 3;
}
.orbit-node--1 { top: -18px;    left: 50%;  margin-left: -18px; }
.orbit-node--2 { top: 50%;     right: -18px; margin-top: -18px; }
.orbit-node--3 { bottom: -18px; left: 50%;  margin-left: -18px; }
.orbit-node--4 { top: 50%;     left: -18px;  margin-top: -18px; }

@keyframes orbitCounterSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  body::before      { display: none; }
  .hero__em         { animation: none; -webkit-text-fill-color: var(--orange); }
  .orbit-node       { animation: none; }
  .reveal h2        { opacity: 1 !important; transform: none !important; filter: none !important; }
}
