/* ─── main.css ────────────────────────────────────────────────────────
 * Revenue Wave — Main Components & Layout Sections Stylesheet
 * ────────────────────────────────────────────────────────────────────── */

/* ─── Global Nav ────────────────────────────────────────────────────── */
header#global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--transition-ease),
              border-color 0.4s var(--transition-ease),
              box-shadow 0.4s var(--transition-ease);
}

header#global-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(26, 26, 26, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

/* Override: transparent nav when scrolling through the pillars section */
header#global-nav.nav-over-pillars,
header#global-nav.nav-over-pillars.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

nav.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  padding: 8px; /* Exclusion zone */
}

.logo-img {
  height: 62px;
  width: auto;
  transition: transform var(--transition-speed) var(--transition-ease);
}

.logo-link:hover .logo-img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0.6;
  transition: opacity var(--transition-speed) var(--transition-ease);
}

.nav-link:hover {
  opacity: 1;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-canvas);
  background: var(--color-charcoal);
  padding: 10px 22px;
  transition: background var(--transition-speed) var(--transition-ease),
              transform var(--transition-speed) var(--transition-ease);
}

.nav-cta:hover {
  background: var(--color-violet);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-charcoal);
  transition: transform 0.3s var(--transition-ease),
              opacity 0.3s var(--transition-ease);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-canvas);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--transition-ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-link {
  font-size: 1.25rem;
}

.mobile-menu .nav-cta {
  font-size: 1.25rem;
  padding: 14px 32px;
}

/* Active Hamburger State */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ─── Hero Section ──────────────────────────────────────────────────── */
#hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  background: var(--color-canvas);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* WebGL mouse-reactive */
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none; /* Let clicks pass to the canvas underneath */
  max-width: 1100px;
  margin: var(--header-height) auto 0 auto;
  text-align: center;
}

/* Enable pointer events specifically for interactable content in hero */
.hero-content h1,
.hero-content p,
.hero-scroll-indicator {
  pointer-events: auto;
}

.hero-content h1 {
  margin-bottom: 2rem;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content p {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: var(--color-charcoal);
  opacity: 0.8;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0; /* Pre-animation state */
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-charcoal);
  opacity: 0.5;
  transition: opacity var(--transition-speed) var(--transition-ease);
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
}


/* ─── Pillars Horizontal Scroll-Capture Section ────────────────────── */

/* Master container: provides vertical scroll runway for GSAP to consume */
.pillars-scroll-container {
  position: relative;
  width: 100%;
  height: 300vh;
  background: var(--color-canvas);
  z-index: 1;
}

/* Sticky viewport: locks in place while user scrolls through the runway */
.pillars-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ── Right-half visual column: Three.js canvas container ── */
.pillar-visual-column {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--color-canvas);
  overflow: hidden;
}

.pillar-visual-column #journey-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Horizontal flex track: translated by GSAP */
.pillars-horizontal-track {
  display: flex;
  flex-direction: row;
  height: 100vh;
  will-change: transform;
  position: relative;
  z-index: 1;
}

/* ── Each slide: full viewport wide, only left half is interactive ── */
.pillar-slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  align-items: stretch;
  position: relative;
  box-sizing: border-box;
}

/* ── Left copy column: editorial text ── */
.pillar-copy-column {
  width: 50vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 4rem 4rem 6rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Inner content wrapper for typography balance */
.pillar-inner {
  max-width: 540px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition-ease),
              transform 0.7s var(--transition-ease);
}

.pillar-slide.active .pillar-inner {
  opacity: 1;
  transform: translateY(0);
}

.pillar-slide .caption {
  color: var(--color-violet);
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
  display: block;
}

.pillar-slide h2 {
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
}

.pillar-slide p {
  max-width: 460px;
  color: var(--color-charcoal);
  opacity: 0.85;
  line-height: 1.7;
}

/* ── Mobile fallback: stack vertically below 768px ── */
@media (max-width: 768px) {
  .pillars-scroll-container {
    height: auto;
  }

  .pillars-sticky-viewport {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .pillar-visual-column {
    display: none;
  }

  .pillars-horizontal-track {
    flex-direction: column;
    height: auto;
    will-change: auto;
  }

  .pillar-slide {
    width: 100%;
    height: auto;
    min-height: 60vh;
  }

  .pillar-copy-column {
    width: 100%;
    height: auto;
    padding: 4rem 2rem;
  }

  .pillar-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ─── Attrition Metrics Section ─────────────────────────────────────── */
#attrition-section {
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-slate);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-left: 1px solid var(--color-slate);
  border-right: 1px solid var(--color-slate);
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card {
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-slate);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .metric-card {
    border-bottom: none;
  }
  .metric-card:not(:last-child) {
    border-right: 1px solid var(--color-slate);
  }
}

.metric-number {
  font-size: 5rem;
  font-weight: var(--weight-bold);
  color: var(--color-charcoal);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.metric-number span.violet-percent {
  color: var(--color-violet);
}

.metric-label {
  max-width: 280px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-charcoal);
  opacity: 0.8;
}

.attrition-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.attrition-header .caption {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--color-violet);
  letter-spacing: 0.2em;
}

.attrition-header h2 {
  margin-bottom: 0;
}

.metric-source {
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  color: var(--color-charcoal);
  opacity: 0.35;
  letter-spacing: 0.08em;
}

.narrative-anchor-box {
  padding-top: 6rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.narrative-anchor-box p {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
}


/* ─── Footer Section ────────────────────────────────────────────────── */
footer#global-footer {
  background: var(--color-charcoal);
  color: var(--color-canvas);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-content {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content h1 {
  color: var(--color-canvas);
  margin-bottom: 3.5rem;
}

.footer-cta-btn {
  display: inline-block;
  background: var(--color-violet);
  color: var(--color-canvas);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.25rem 2.5rem;
  transition: transform var(--transition-speed) var(--transition-ease),
              background-color var(--transition-speed) var(--transition-ease),
              box-shadow var(--transition-speed) var(--transition-ease);
}

.footer-cta-btn:hover {
  background: #9024ff;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(127, 0, 255, 0.3);
}

.footer-cta-btn:active {
  transform: scale(1);
}

.footer-bottom {
  width: 100%;
  max-width: var(--container-max-width);
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    margin-top: 8rem;
  }
}

.footer-logo-link {
  display: flex;
  align-items: center;
  padding: 8px; /* Exclusion zone */
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.8;
  transition: opacity var(--transition-speed) var(--transition-ease);
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.footer-link {
  color: var(--color-slate);
  transition: color var(--transition-speed) var(--transition-ease);
}

.footer-link:hover {
  color: var(--color-canvas);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-contact {
    align-items: flex-end;
  }
}

.footer-contact-phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-contact-prefix {
  color: var(--color-slate);
  opacity: 0.5;
}

.footer-phone,
.footer-email {
  color: var(--color-slate);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition-speed) var(--transition-ease);
}

.footer-phone:hover,
.footer-email:hover {
  color: var(--color-violet);
}

.footer-copyright {
  width: 100%;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-slate);
  opacity: 0.6;
}

.footer-copyright span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ─── Contact Page (contact.html) — 50/50 Architecture Intake ──────── */
.contact-section {
  padding: calc(var(--header-height) + 4rem) 0 6rem 0;
  background: var(--color-canvas);
  min-height: 100vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

/* ── Left Column ── */
.contact-left h1 {
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.contact-sub {
  color: var(--color-charcoal);
  opacity: 0.8;
  margin-bottom: 3rem;
}

/* Direct Escalation Lines */
.contact-direct-lines {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-line-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0.5;
  margin-bottom: 0.35rem;
}

.contact-line-value {
  font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);
  font-size: 1.125rem;
  font-weight: var(--weight-medium, 500);
  color: var(--color-charcoal);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease);
}

.contact-line-value:hover {
  color: var(--color-violet);
}

/* SLA Promise Badge */
.contact-sla {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  background: rgba(127, 0, 255, 0.03);
  border-left: 3px solid var(--color-violet);
}

.sla-status {
  flex-shrink: 0;
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 0.6875rem;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.1em;
  color: var(--color-violet);
  background: rgba(127, 0, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.sla-text {
  font-size: 0.8125rem;
  color: var(--color-charcoal);
  opacity: 0.75;
  line-height: 1.5;
}

.sla-text strong {
  color: var(--color-charcoal);
  opacity: 1;
}

/* Privacy Shield */
.contact-privacy {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.privacy-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.privacy-content strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.privacy-content p {
  font-size: 0.75rem;
  color: var(--color-charcoal);
  opacity: 0.6;
  line-height: 1.6;
}

/* ── Right Column ── */
.contact-right {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

@media (max-width: 899px) {
  .contact-right {
    position: static;
  }
}

.contact-form-card {
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 1.5rem;
  }
}

/* ── Form Styles (shared) ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-canvas);
  border: 1px solid var(--color-slate);
  color: var(--color-charcoal);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              background-color 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-charcoal);
  pointer-events: none;
}

/* Active Border Glow — purple outline + subtle tinted background */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-violet);
  box-shadow: 0 0 0 3px rgba(127, 0, 255, 0.1);
  background-color: rgba(127, 0, 255, 0.015);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Submit Button */
.form-submit-btn {
  background: var(--color-violet);
  color: var(--color-canvas);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.25rem 2.5rem;
  margin-top: 0.5rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.4s ease,
              transform 0.2s ease,
              box-shadow 0.4s ease;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #7F00FF 0%, #5800b3 100%);
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(127, 0, 255, 0.3);
}

.form-submit-btn:active {
  transform: scale(1);
}


/* ─── Privacy Policy Page (privacy.html) ────────────────────────────── */
.privacy-page {
  padding: calc(var(--header-height) + 4rem) 0 6rem 0;
  background: var(--color-canvas);
  min-height: 100vh;
}

.privacy-content {
  max-width: 780px;
}

.privacy-content .caption {
  display: block;
  color: var(--color-violet);
  margin-bottom: 1rem;
}

.privacy-content h1 {
  margin-bottom: 0.75rem;
}

.privacy-effective {
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 0.8125rem;
  color: var(--color-charcoal);
  opacity: 0.5;
  margin-bottom: 3.5rem;
}

.privacy-block {
  margin-bottom: 2.5rem;
}

.privacy-block h2 {
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 1rem;
  color: var(--color-charcoal);
}

.privacy-block p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-charcoal);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.privacy-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.privacy-block ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-charcoal);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.privacy-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-violet);
  opacity: 0.6;
}

.privacy-block a {
  color: var(--color-violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 0, 255, 0.2);
  transition: border-color var(--transition-speed) var(--transition-ease);
}

.privacy-block a:hover {
  border-color: var(--color-violet);
}

.privacy-contact-line {
  font-family: var(--font-mono, 'SF Mono', monospace);
}


/* ─── Case Studies Page ─────────────────────────────────────────────── */
.cs-page-header {
  position: relative;
  padding: calc(var(--header-height) + 6rem) 0 6rem 0;
  background: var(--color-canvas);
  overflow: hidden;
}

/* Background SVG — full width behind the text */
.growth-arrow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Text content sits above the SVG */
.cs-hero-content {
  position: relative;
  z-index: 1;
}

.cs-hero-content .caption {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--color-violet);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cs-hero-content h1 {
  margin-bottom: 2rem;
}

.cs-hero-content p {
  max-width: 640px;
  color: var(--color-charcoal);
  opacity: 0.8;
}

.cs-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-card {
  padding: 4rem 0;
  border-top: 1px solid var(--color-slate);
}

.cs-card:last-child {
  border-bottom: 1px solid var(--color-slate);
}

.cs-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cs-index {
  color: var(--color-charcoal);
  opacity: 0.35;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.cs-tag {
  color: var(--color-violet);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(127, 0, 255, 0.2);
  padding: 4px 12px;
}

.cs-title {
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: var(--color-charcoal);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cs-summary {
  max-width: 800px;
  color: var(--color-charcoal);
  opacity: 0.8;
  margin-bottom: 3rem;
}

.cs-metrics-row {
  display: flex;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cs-metric {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-metric-value {
  font-size: 3.5rem;
  font-weight: var(--weight-bold);
  color: var(--color-charcoal);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cs-metric-value .violet-percent {
  color: var(--color-violet);
}

.cs-metric-desc {
  color: var(--color-charcoal);
  opacity: 0.6;
  max-width: 200px;
}

.cs-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cs-details {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.cs-detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-detail-label {
  color: var(--color-charcoal);
  opacity: 0.4;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cs-detail-text {
  color: var(--color-charcoal);
  opacity: 0.75;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.cs-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.cs-tech-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0.55;
  border: 1px solid var(--color-slate);
  padding: 6px 14px;
  transition: border-color var(--transition-speed) var(--transition-ease),
              color var(--transition-speed) var(--transition-ease);
}

.cs-tech-tag:hover {
  border-color: var(--color-violet);
  color: var(--color-violet);
  opacity: 1;
}


/* ─── Animations ────────────────────────────────────────────────────── */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
