/* ==================================================
   CAPABILITIES & EXPERIENCE · SCROLL-DRIVEN EXPANDING CARD
   + Clean White/Cream Stage Ground (#F9F6F0)
   + Bold, Non-Overlapping Header
   + Centered Black Card with Rotating Cream Dotted Cross
   + Expands on Scroll to Fullscreen Capabilities & Experience
================================================== */
.stage-scroll-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding-top: clamp(6rem, 16vh, 12rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.stage-scroll-track {
  position: relative;
  width: 100%;
  height: 540vh;
}

.stage-sticky-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #F9F6F0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Section Header above the card --- */
.stage-header-group {
  position: absolute;
  top: clamp(4.5rem, 10vh, 7.5rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 15;
  width: 90%;
  max-width: 860px;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}

.stage-header-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--c-fg-100);
  margin: 0;
}

/* --- Expanding Black Card --- */
.expand-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  background: #14110F;
  background: linear-gradient(150deg, #1A1613 0%, #120F0D 60%, #0B0908 100%);
  color: #F9F6F0;
  clip-path: inset(16% 12% 16% 12% round 28px);
  opacity: 1;
  will-change: clip-path, transform;
  box-shadow: 0 35px 100px rgba(32, 21, 14, 0.22), 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(249, 246, 240, 0.14);
  overflow: hidden;
}

/* Autonomous WebGL Fluid Background */
.card-fluid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 22;
  pointer-events: none;
  opacity: 1;
  display: block;
}

/* Phase 1: Rotating Dotted Cross in Center of Black Card */
.card-cross-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: none;
  will-change: opacity, transform;
}

.card-cross-canvas {
  width: 240px;
  height: 240px;
  display: block;
}

/* Phase 2: Giant Typographic Lockup (Matching Reference Image) */
.ec-statement-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 30;
}

.ec-hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  max-width: 92vw;
  line-height: 0.94;
  user-select: none;
}

.lockup-line-mask {
  overflow: hidden;
  display: block;
  padding-bottom: 0.08em;
}

.lockup-line {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 1.8vw, 2.2rem);
  transform: translateY(0);
  will-change: transform, opacity;
}

.lk-sans {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 8.8rem);
  letter-spacing: -0.04em;
  color: #F9F6F0;
  text-transform: uppercase;
  line-height: 0.92;
}

.lk-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.4rem, 8.5vw, 9.4rem);
  color: rgba(249, 246, 240, 0.55);
  letter-spacing: -0.02em;
  padding-right: 0.12em;
  line-height: 0.92;
  display: inline-block;
  will-change: transform;
}

.lk-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.1vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(249, 246, 240, 0.45);
  margin-top: clamp(0.8rem, 2vh, 1.8rem);
  text-transform: uppercase;
  display: block;
}

/* Phase 3: 4 Core Focuses (Revealed on Further Scroll) */
.ec-focuses-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 35;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ec-focuses-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.4vh, 1.8rem);
}

.ec-focuses-header {
  display: flex;
  flex-direction: column;
}

.ec-focuses-title {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
  color: #F9F6F0;
  margin: 0;
}

.ec-focuses-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(249, 246, 240, 0.55);
}

.ec-focus-grid {
  display: flex;
  flex-direction: column;
}

.ec-focus-row {
  display: grid;
  grid-template-columns: 3.25rem 1fr minmax(0, 38ch);
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.3rem, 2.6vh, 2rem) 0;
  border-top: 1px solid rgba(249, 246, 240, 0.14);
}

.ec-focus-row:last-child {
  border-bottom: 1px solid rgba(249, 246, 240, 0.14);
}

.ec-fr-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(249, 246, 240, 0.4);
  letter-spacing: 0.1em;
}

.ec-fr-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #F9F6F0;
  margin: 0;
}

.ec-fr-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 0.95vw, 0.96rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(249, 246, 240, 0.68);
  margin: 0;
}

.ec-focuses-footer {
  padding-top: clamp(1.4rem, 3vh, 2.2rem);
}

.ec-clean-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F9F6F0;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ec-clean-link:hover {
  opacity: 0.75;
  transform: translateX(4px);
}

.ec-link-arrow {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.ec-clean-link:hover .ec-link-arrow {
  transform: translate(2px, -2px);
}

/* Responsive Media Queries */
@media (max-width: 860px) {
  .stage-scroll-track { height: 360vh; }

  .ec-focus-row {
    grid-template-columns: 2.4rem 1fr;
    row-gap: 0.5rem;
  }

  .ec-fr-desc {
    grid-column: 2;
  }

  .lk-sans {
    font-size: clamp(2.2rem, 9vw, 4.5rem);
  }

  .lk-accent {
    font-size: clamp(2.4rem, 9.5vw, 4.8rem);
  }
}


