/* ═══════════════════════════════════════════
   MINUS SYSTEMS — style.css
   Inter (+ Manrope on inner pages) loaded from each HTML file — avoid @import here (duplicate fetch + blocks first paint).
   ═══════════════════════════════════════════ */

/* ─── Reset & Root ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Screen-reader only — used for semantic h1 etc. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg:           #04040a;
  --white:        #efefee;
  --muted:        #52526a;
  --muted-light:  #7a7a96;
  --blue:         #3b82f6;
  --blue-glow:    rgba(59, 130, 246, 0.18);
  --purple:       #8b5cf6;
  --purple-glow:  rgba(139, 92, 246, 0.15);
  --accent:       #60a5fa;
  --border:       rgba(255, 255, 255, 0.06);
  --radius:       6px;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ─── Brand Logo Classes ─── */
.brand-flex {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.logo-mark {
  height: 20px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ─── Landing Overlay ─── */
#landing {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#landing.hidden {
  opacity: 0;
}
#landing-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.landing-center-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}
#landing-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}
#landing-sub::before,
#landing-sub::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--muted);
}
#landing-logo {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  pointer-events: auto;
}

/* ─── Scroll Zone ─── */
#scroll-zone {
  position: relative;
  height: 600vh;
}

#sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Nav (sits over canvas) ─── */
#nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: linear-gradient(to bottom, rgba(4,4,10,0.7) 0%, transparent 100%);
}
#nav.visible {
  opacity: 1;
  transform: translateY(0);
}
#nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
#nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
#nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
#nav-links a:hover { color: var(--white); }
#nav-links .nav-cta {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
#nav-links .nav-cta:hover {
  border-color: var(--accent);
  background: rgba(96,165,250,0.08);
}

/* Hamburger — hidden until small-screen breakpoint */
.mobile-menu-btn {
  display: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mobile-menu-btn:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
}
.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.mobile-menu-btn__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-menu-btn__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-nav.nav--open .mobile-menu-btn__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.nav--open .mobile-menu-btn__bar:nth-child(2) {
  opacity: 0;
}
.site-nav.nav--open .mobile-menu-btn__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Phase HUD ─── */
#phase-hud {
  position: absolute;
  bottom: 9%;
  left: 5%;
  z-index: 20;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
#phase-hud.visible {
  opacity: 1;
  transform: translateY(0);
}
#phase-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
#phase-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.7rem;
  color: var(--white);
}
#phase-body {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.65;
  max-width: 300px;
}
#phase-progress-track {
  margin-top: 1.4rem;
  width: 100px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
#phase-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 2px;
}

/* ─── Vertical Scroll Indicator ─── */
#scroll-indicator {
  position: absolute;
  right: 2.5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
#scroll-track {
  width: 1.5px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
#scroll-thumb {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  border-radius: 2px;
}
#scroll-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* ════════════════════════════════════════
   MOBILE NAV & HERO CHROME (≤900px)
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  #nav {
    flex-wrap: nowrap;
    align-items: center;
    padding: 1rem max(1rem, env(safe-area-inset-left)) 1rem max(1rem, env(safe-area-inset-right));
  }
  #nav-logo {
    flex-shrink: 0;
    margin-right: auto;
  }
  #nav .mobile-menu-btn {
    display: flex;
  }
  #nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0;
    background: rgba(4, 4, 10, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    pointer-events: none;
  }
  #nav.nav--open #nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  #nav-links a {
    padding: 0.85rem 1.2rem;
    font-size: 0.92rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  #nav-links .nav-cta {
    margin: 0.4rem 0.85rem 0.65rem;
    justify-content: center;
  }

  .page-nav {
    padding: 1rem max(1rem, env(safe-area-inset-left)) 1rem max(1rem, env(safe-area-inset-right));
  }
  .page-nav > .brand-flex {
    flex-shrink: 0;
    margin-right: auto;
  }
  .page-nav .mobile-menu-btn {
    display: flex;
  }
  .page-nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0;
    background: rgba(4, 4, 10, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    pointer-events: none;
  }
  .page-nav.nav--open .page-nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .page-nav-links a {
    padding: 0.85rem 1.2rem;
    font-size: 0.92rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .page-nav-links .nav-cta {
    margin: 0.4rem 0.85rem 0.65rem;
    justify-content: center;
  }

  #scroll-track {
    width: 2px;
    height: 72px;
  }
  #scroll-indicator {
    right: max(10px, env(safe-area-inset-right));
  }
  #scroll-label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  #nav-links,
  .page-nav-links {
    transition: none;
  }
  .mobile-menu-btn__bar {
    transition: none;
  }
}

@media (max-width: 540px) {
  #scroll-indicator {
    display: none;
  }
}

/* ════════════════════════════════════════
   PROCESS SECTION
   ════════════════════════════════════════ */
#process-section {
  position: relative;
  background: var(--bg);
  z-index: 10;
  padding: 8rem 6% 5rem;
  overflow: hidden;
}

/* Ambient glows */
#process-glow-left {
  position: absolute;
  top: 10%;
  left: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--blue-glow), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
#process-glow-right {
  position: absolute;
  bottom: 20%;
  right: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--purple-glow), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Section header */
.section-header {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-bottom: 5rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted-light);
  line-height: 1.75;
  max-width: 480px;
}

/* Steps grid */
.steps-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 7rem;
}

.step {
  padding: 3.5rem 3rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}
.step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.step:hover { background: rgba(255,255,255,0.025); }
.step:hover::after { opacity: 1; }

/* Top bar reveal on hover */
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.step:hover::before { transform: scaleX(1); }

.step-number {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  flex-shrink: 0;
  user-select: none;
  transition: color 0.4s ease;
}
.step:hover .step-number {
  color: rgba(96,165,250,0.12);
}

.step-content { flex: 1; }

.step-title {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--muted-light);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.step-list li {
  font-size: 0.82rem;
  color: rgba(239,239,238,0.4);
  padding-left: 1.1rem;
  position: relative;
  letter-spacing: 0.01em;
}
.step-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 1px;
}

/* CTA block */
#cta-block {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 0 5rem;
  border-top: 1px solid var(--border);
}

#cta-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
#cta-headline {
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--white) 40%, rgba(139,92,246,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#cta-btn {
  scroll-margin-top: 6rem;
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 2.8rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: transparent;
  transition: all 0.35s ease;
}
#cta-btn:hover {
  background: rgba(96,165,250,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(96,165,250,0.18);
}

/* Footer */
#footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 4rem 6% 2rem;
  border-top: 1px solid var(--border);
  gap: 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
#footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  line-height: 0;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--muted-light);
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-column h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-column a, .footer-column span {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-column a:hover {
  color: var(--accent);
}

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

#footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}
#footer-credit {
  font-size: 0.78rem;
  color: var(--muted);
}
#footer-credit strong {
  color: var(--white);
  font-weight: 600;
}

/* ─── Scroll-reveal for steps & other elements ─── */
.step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1),
              background 0.4s ease;
}
.step.in-view {
  opacity: 1;
  transform: translateY(0);
}
.step[data-index="1"] { transition-delay: 0s; }
.step[data-index="2"] { transition-delay: 0.1s; }
.step[data-index="3"] { transition-delay: 0.2s; }
.step[data-index="4"] { transition-delay: 0.3s; }

.section-header, .reveal-up, .inner-section-header, .about-manifesto-header, .about-beliefs, .about-story, .about-origin {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.section-header.in-view, .reveal-up.in-view, .inner-section-header.in-view, .about-manifesto-header.in-view,
.about-beliefs.in-view, .about-story.in-view, .about-origin.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step {
    flex-direction: column;
    gap: 1rem;
    padding: 2.5rem 2rem;
  }
  .step-number {
    font-size: 3rem;
  }
  #footer {
    padding: 3rem 6% 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-top {
    flex-direction: column;
  }
  #phase-hud {
    bottom: 12%;
    left: 5%;
    right: 5%;
    max-width: none;
  }
}

@media (max-width: 600px) {
  #process-section { padding: 5rem 5% 3rem; }
  #cta-headline { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  #cta-block { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  #phase-hud {
    bottom: max(10%, env(safe-area-inset-bottom));
    left: 4%;
    right: 4%;
    padding: 1.2rem 1rem;
  }
  #phase-title {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
  }
  #phase-body {
    font-size: 0.82rem;
    line-height: 1.62;
    max-width: none;
  }
  #phase-tag {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
  }
  #phase-progress-track {
    margin-top: 1rem;
  }
  .case-card {
    padding: 2rem 1.25rem;
  }
  #case-studies-section {
    padding: 3.5rem 5% 5rem;
  }
}

/* ════════════════════════════════════════
   CASE STUDIES & BOOK CALL
   ════════════════════════════════════════ */

#case-studies-section {
  position: relative;
  background: var(--bg);
  z-index: 10;
  padding: 5rem 6% 8rem;
  overflow: hidden;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  margin-bottom: 3rem;
}
.case-header .section-title { margin-bottom: 0; }

.carousel-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}

.carousel-nav {
  display: flex;
  gap: 1rem;
}
.cs-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}
.cs-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

.cs-progress {
  display: flex;
  gap: 0.5rem;
}
.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cs-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

#case-studies-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 2rem;
}
#case-studies-track::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.case-card {
  position: relative;
  overflow: hidden;
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  
  /* Vertical Reveal */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), 
              transform 0.8s cubic-bezier(0.16,1,0.3,1), 
              background 0.4s ease;
}
.case-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.12), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.case-card:hover::before {
  opacity: 1;
}

.case-card:hover {
  background: rgba(255,255,255,0.035);
}

.case-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.case-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.case-subtitle {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.case-body h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.case-body p {
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.6;
}
.case-results {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.case-results li {
  font-size: 0.85rem;
  color: rgba(239,239,238,0.7);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}
.case-results li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 0.8rem;
}

/* ─── Staggered Animation Logic ─── */
.case-content h3,
.case-content .case-subtitle,
.case-body > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.case-card.is-active .case-content h3 { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-content .case-subtitle { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(1) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(2) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(3) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(7) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.case-card.is-active .case-body > *:nth-child(8) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

#book-call-section {
  position: relative;
  background: var(--bg);
  z-index: 10;
}

@media (max-width: 900px) {
  .case-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ════════════════════════════════════════
   INNER PAGES — Services & Pricing
   (aligned with Stitch Obsidian Flux: glass, dark void)
   ════════════════════════════════════════ */

.page-body {
  min-height: 100vh;
  position: relative;
}

.page-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.page-glow-left {
  top: -120px;
  left: -180px;
  background: radial-gradient(circle, var(--blue-glow), transparent 68%);
}
.page-glow-right {
  bottom: -80px;
  right: -200px;
  background: radial-gradient(circle, var(--purple-glow), transparent 68%);
}

.page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: linear-gradient(to bottom, rgba(4, 4, 10, 0.92) 0%, rgba(4, 4, 10, 0.65) 55%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.page-nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.page-nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-nav-links a:hover {
  color: var(--white);
}
.page-nav-links .nav-cta {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.page-nav-links .nav-cta:hover {
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.08);
}
.page-nav-links .nav-link-active {
  color: var(--white);
}

.page-main {
  position: relative;
  z-index: 2;
  padding: 9rem 6% 4rem;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .page-main {
    padding: 7rem max(6%, env(safe-area-inset-left)) 3rem max(6%, env(safe-area-inset-right));
  }
}

.page-hero-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.page-hero-sub {
  max-width: 520px;
}

.inner-section-header {
  margin-bottom: 4rem;
}

.services-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
}

.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 2.5rem;
  padding: 2.75rem 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.service-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.service-block:hover::before {
  opacity: 1;
}

.service-index {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  user-select: none;
}

.service-name {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.service-tags span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.06);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--muted-light);
  line-height: 1.75;
  margin-bottom: 1.35rem;
}

.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-points li {
  font-size: 0.84rem;
  color: rgba(239, 239, 238, 0.55);
  padding-left: 1rem;
  position: relative;
}
.service-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 0.75rem;
}

.service-block--featured {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.08), rgba(255, 255, 255, 0.025));
}
.service-block--featured::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent 55%);
}

.service-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.btn-primary-gradient {
  display: inline-block;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.28);
}

.service-secondary-link {
  font-size: 0.82rem;
  color: var(--muted-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.service-secondary-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-cta-band {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.page-cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.page-cta-copy {
  font-size: 0.95rem;
  color: var(--muted-light);
  margin-bottom: 1.25rem;
}

/* Email CTA — nav-cta is only styled inside nav; override defaults here */
.page-cta-band .nav-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-cta-band .nav-cta:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(96, 165, 250, 0.9);
}
.page-cta-band .nav-cta:visited {
  color: var(--accent);
}
.page-footer {
  position: relative;
  z-index: 2;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.pricing-card {
  position: relative;
  padding: 2.25rem 1.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.pricing-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(139, 92, 246, 0.18);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.pricing-tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.pricing-currency {
  font-size: 0.55em;
  vertical-align: super;
  margin-right: 0.05em;
}
.pricing-period {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-tagline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  margin-top: -0.25rem;
}

.pricing-billing-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.pricing-outcome-summary {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

.pricing-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  font-size: 0.84rem;
  color: var(--muted-light);
  line-height: 1.5;
  padding-left: 1.15rem;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.pricing-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.pricing-btn--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}
.pricing-btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.08);
}
.pricing-btn--solid {
  color: var(--white);
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.22);
}
.pricing-btn--solid:hover {
  background: rgba(139, 92, 246, 0.35);
}

.pricing-note {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}
.pricing-note a {
  color: var(--accent);
  text-decoration: none;
}
.pricing-note a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════ */

.about-manifesto-header {
  margin-bottom: 5rem;
  max-width: 920px;
}

.about-manifesto-header .eyebrow {
  margin-bottom: 2rem;
}

.about-manifesto {
  margin: 0;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.35rem, 6.5vw, 4.35rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  color: var(--white);
  text-transform: none;
}

.about-manifesto-line {
  display: block;
}

.about-manifesto-line + .about-manifesto-line {
  margin-top: 0.06em;
}

.about-manifesto-line--last {
  margin-top: 0.14em;
  padding-top: 0.06em;
}

.about-manifesto-brand {
  display: inline-block;
  margin-right: 0.06em;
  font-weight: 900;
  font-size: 1.14em;
  letter-spacing: -0.055em;
  line-height: 1;
  vertical-align: baseline;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--accent) 42%,
    var(--purple) 88%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(96, 165, 250, 0.35))
    drop-shadow(0 0 48px rgba(139, 92, 246, 0.2));
}

@media (max-width: 640px) {
  .about-manifesto {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    line-height: 0.96;
  }
}

.about-section-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.about-beliefs {
  margin-bottom: 5rem;
}

.about-beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-belief {
  padding: 2.25rem 1.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.about-belief:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.about-belief-number {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
  line-height: 1;
}

.about-belief p {
  font-size: 0.92rem;
  color: var(--muted-light);
  line-height: 1.72;
}

.about-story,
.about-origin {
  margin-bottom: 4rem;
}

.about-story-content {
  max-width: 680px;
}

.about-story-content p {
  font-size: 1rem;
  color: var(--muted-light);
  line-height: 1.8;
  margin-bottom: 1.35rem;
}

.about-story-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .about-beliefs-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
