/* ============================================================
   KESTO CAPITAL — Design System v2
   Premium Redesign: Storytelling sections with bento grid
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --canvas-bg: #F3F1EC;
  --canvas-bg-dark: #E8E5DE;
  --body-bg: #1a1a18;
  --text-primary: #1a1a18;
  --text-secondary: #5a5a52;
  --text-muted: #8a8a80;
  --accent: #2fb816;
  --accent-hover: #3fcb25;
  --accent-dark: #2c2e24;
  --accent-subtle: rgba(212, 220, 150, 0.12);
  --border-light: rgba(26, 26, 24, 0.06);
  --border-medium: rgba(26, 26, 24, 0.10);
  --white: #ffffff;
  --radius-xl: 2rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-pill: 100px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px -4px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px -8px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 16px 40px -8px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background: var(--body-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Main Canvas Frame ───────────────────────────────────────── */
.site-canvas {
  width: 100%;
  background: var(--canvas-bg);
  overflow: hidden;
  position: relative;
}

/* ── Container (Max Width Wrapper) ───────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ── Section Label (Bracket Motif) ───────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* Dark section label — used on dark backgrounds (Solution, Experience) */
.section-label--dark {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Highlighted Text ───────────────────────────────────────── */
.highlight {
  color: var(--accent-dark);
  position: relative;
  z-index: 1;
}

.hero .highlight,
.s-solution .highlight {
  color: inherit;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: -2px;
  right: -2px;
  height: 35%;
  background: var(--accent);
  opacity: 0.4;
  z-index: -1;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTION (PRESERVED FROM ORIGINAL)
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
  /* Horizontal padding now handles by container */
  overflow: hidden;
  background-color: #000;
}

.hero-title .highlight::after {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  animation: heroBgReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center;
}

@keyframes heroBgReveal {
  from {
    transform: scale(1.1);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(20, 28, 18, 0.55) 0%,
      rgba(20, 28, 18, 0.4) 50%,
      rgba(20, 28, 18, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero .section-label {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* ── Hero Navigation ─────────────────────────────────────────── */
.hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.25rem 0;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  transition: all 0.8s ease;
  background-color: rgba(26, 26, 24, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.hero-nav.scrolled {
  background-color: rgba(26, 26, 24, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 2.75rem;
  gap: 2rem;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-pill);
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-cta {
  font-size: 0.8125rem;
  height: 2.75rem;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Trust Marquee ───────────────────────────────────────────── */
.trust-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1.5rem 0;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.trust-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.marquee-track {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-inner {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  /* The gap between the end of first set and start of second set */
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 1: THE PROBLEM
   ═══════════════════════════════════════════════════════════════ */
.s-problem {
  padding: 7rem 0 5rem;
  background: var(--canvas-bg);
  position: relative;
}

.s-problem__header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.s-problem__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.s-problem__title sub {
  font-size: 0.6em;
  vertical-align: baseline;
  position: relative;
  top: 0.2em;
}

.s-problem__subtitle {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Gap Visualization ───────────────────────────────────────── */
.s-problem__gap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.gap-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.gap-bar__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gap-bar__track {
  flex: 1;
  height: 48px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.gap-bar__fill {
  height: 100%;
  border-radius: var(--radius-sm);
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gap-bar--demand .gap-bar__fill {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #3d4030 100%);
}

.gap-bar--supply .gap-bar__fill {
  background: linear-gradient(135deg, var(--accent) 0%, #b8c070 100%);
}

.gap-bar__value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  min-width: 80px;
}

.gap-bar__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gap-stat {
  text-align: center;
  padding: 2rem;
  min-width: 180px;
}

.gap-stat__number {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.gap-stat__unit {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
}

.gap-stat__desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Regulation Card ───────────────────────────────────────────── */
.s-problem__regulation-card {
  margin-top: 2rem;
  padding: 2.5rem;
  background: var(--body-bg);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.s-problem__regulation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 220, 150, 0.05) 0%, transparent 100%);
  z-index: 0;
}

.reg-icon {
  width: 64px;
  height: 64px;
  background: rgba(212, 220, 150, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.reg-content {
  position: relative;
  z-index: 1;
}

.reg-title {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.reg-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
}

.reg-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  background: rgba(212, 220, 150, 0.05);
  border: 1px solid rgba(212, 220, 150, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.reg-link svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-link:hover {
  background: rgba(212, 220, 150, 0.15);
  border-color: var(--accent);
  color: var(--white);
}

.reg-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .s-problem__regulation-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .reg-icon {
    margin: 0 auto;
  }

  .reg-link {
    margin: 0 auto;
    width: fit-content;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 2: THE SOLUTION
   ═══════════════════════════════════════════════════════════════ */
.s-solution {
  padding: 7rem 0;
  background: var(--accent-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.s-solution::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 220, 150, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.s-solution__intro {
  max-width: 640px;
  margin-bottom: 4rem;
}


.s-solution__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.s-solution__title em {
  font-style: normal;
  color: var(--accent);
}

.s-solution__desc {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ── Solution Cards ──────────────────────────────────────────── */
.s-solution__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sol-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  /* Use a much smoother, looser transition curve (like Framer Motion's spring/ease-out) */
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 220, 150, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sol-card:hover {
  border-color: rgba(212, 220, 150, 0.3);
  /* Massive structural lift */
  transform: translateY(-16px);
  /* Large cinematic drop shadow under the lifted card */
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(212, 220, 150, 0.05);
}

.sol-card:hover::before {
  opacity: 1;
}

.sol-card__number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.sol-card:hover .sol-card__number {
  color: var(--accent);
}

.sol-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(212, 220, 150, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.sol-card:hover .sol-card__icon {
  transform: scale(1.1) translateY(-4px);
  background: rgba(212, 220, 150, 0.15);
}

.sol-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.sol-card:hover .sol-card__title {
  transform: translateX(4px);
}

.sol-card__desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 3: HOW IT WORKS — TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.s-how {
  padding: 7rem 0;
  background: var(--canvas-bg-dark);
  position: relative;
}

.s-how__header {
  max-width: 540px;
  margin-bottom: 4rem;
}

.s-how__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* ── Timeline ────────────────────────────────────────────────── */
.s-how__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 2rem;
  padding-bottom: 5rem;
  /* Large gap between steps */
  align-items: stretch;
  /* Ensure cells stretch to node height */
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step__content,
.timeline-step__image {
  align-self: start;
  /* Keep content anchored to top naturally */
}

.timeline-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100% + 5rem);
  /* Stretch height of row PLUS exactly the 5rem padding below to bridge the gap! */
  padding-top: 0.25rem;
  /* Align dot with the h3 */
}

.timeline-step:last-child .timeline-step__marker {
  height: auto;
  /* Final marker doesn't bridge below */
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  /* Back to accent green */
  border: 1px solid var(--text-primary);
  box-shadow: 0 0 0 4px var(--canvas-bg-dark), 0 0 0 6px var(--text-primary);
  /* Outer ring matches the connection line */
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-line-wrapper {
  width: 2px;
  /* Thinner line */
  flex: 1;
  /* Automatically consumes the rest of the height */
  background: rgba(0, 0, 0, 0.08);
  /* Dark faint track against light background */
  margin-top: 8px;
  /* Offset under dot */
  margin-bottom: 8px;
  /* Offset before next dot */
  position: relative;
  overflow: hidden;
}

.timeline-step:last-child .step-line-wrapper {
  display: none;
}

.step-line {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  /* Dark high-contrast line */
  transform-origin: top;
  transform: scaleY(0);
  /* Hide line initally using scaleY for better hw-accel transition */
  transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Slower, majestic draw speed */
  transition-delay: 0.8s;
  /* Longer delay so it waits until the user looks and then draws */
}

.timeline-step.reveal.visible .step-line {
  transform: scaleY(1);
}

/* ═══════════════════════════════════════════════════════════════
   MODIFIER: VERTICALLY CENTERED DOT (Version 1)
   ═══════════════════════════════════════════════════════════════ */
.s-how--vert .timeline-step__marker,
.s-how--center .timeline-step__marker {
  height: 100%;
  /* Restricts height to grid row so center points match the image perfectly */
  justify-content: center;
  /* Pushes dot to the middle */
  padding-top: 0;
  position: relative;
}

/* Vertically center the text to align with the centered dot and image */
.s-how--vert .timeline-step__content,
.s-how--center .timeline-step__content,
.s-how--vert .timeline-step__image,
.s-how--center .timeline-step__image {
  align-self: center;
}

/* Redefine line wrapper to perfectly bridge geometrically from dot to dot */
.s-how--vert .step-line-wrapper,
.s-how--center .step-line-wrapper {
  position: absolute;
  top: 50%;
  /* Start perfectly dead center at the outgoing dot */
  bottom: calc(-50% - 5rem);
  /* Reach perfectly dead center to the incoming dot */
  left: 24px;
  transform: translateX(-50%);
  margin-top: 0;
  margin-bottom: 0;
  z-index: 1;
  /* Hide under dot */
}

/* Because top is at 50% uniformly, there's no need for special first-child top: 50% rules */

/* Disable CSS timing on dynamic scroll lines so Javascript can manipulate them seamlessly frame-by-frame */
.s-how--vert .step-line,
.s-how--center .step-line {
  transition: transform 0.1s linear;
  /* extremely fast catchup interpolation just to smooth 60fps locking */
  transition-delay: 0s;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFIER: HORIZONTALLY CENTERED & ALTERNATING (Version 2)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .s-how--center .timeline-step {
    grid-template-columns: 1fr 48px 1fr;
    gap: 4rem;
  }

  .s-how--center .step-line-wrapper {
    left: 24px;
  }

  /* EVEN Steps: Content Left, Image Right */
  .s-how--center .timeline-step:nth-child(even) .timeline-step__content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .s-how--center .timeline-step:nth-child(even) .timeline-step__content p {
    margin-left: auto;
  }

  .s-how--center .timeline-step:nth-child(even) .timeline-step__marker {
    grid-column: 2;
    grid-row: 1;
  }

  .s-how--center .timeline-step:nth-child(even) .timeline-step__image {
    grid-column: 3;
    grid-row: 1;
  }

  /* ODD Steps: Image Left, Content Right */
  .s-how--center .timeline-step:nth-child(odd) .timeline-step__image {
    grid-column: 1;
    grid-row: 1;
  }

  .s-how--center .timeline-step:nth-child(odd) .timeline-step__marker {
    grid-column: 2;
    grid-row: 1;
  }

  .s-how--center .timeline-step:nth-child(odd) .timeline-step__content {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
  }

  .s-how--center .timeline-step:nth-child(odd) .timeline-step__content p {
    margin-right: auto;
  }
}

.timeline-step__content {
  padding-top: 0;
}

.timeline-step__meta {
  margin-bottom: 0.75rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-step__content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.timeline-step__content p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 38ch;
}

.timeline-step__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-float);
}

.timeline-step__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step__image:hover img {
  transform: scale(1.04);
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 4: KEY METRICS — BENTO GRID
   ═══════════════════════════════════════════════════════════════ */
.s-metrics {
  padding: 7rem 0;
  background: var(--canvas-bg);
  position: relative;
}

.s-metrics__header {
  max-width: 480px;
  margin-bottom: 3rem;
}

.s-metrics__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* ── Bento Grid ──────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  /* Base for stationary arrows */
}

.bento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: visible;
  /* Changed to visible to ensure internal decorations or shadows aren't clipped */
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 220, 150, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  border-radius: inherit;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  z-index: 20;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.bento-card__big {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.bento-card__big .counter {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.bento-card__unit {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.bento-card__sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Hero bento card (largest) */
.bento-card--hero {
  background: var(--accent-dark);
  color: var(--white);
  border-color: transparent;
}

.bento-card--hero .bento-card__label {
  color: rgba(212, 220, 150, 0.5);
}

.bento-card--hero .counter {
  color: var(--accent);
  font-size: 3rem;
}

.bento-card--hero .bento-card__unit {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
}

.bento-card--hero .bento-card__sub {
  color: rgba(255, 255, 255, 0.5);
}

.bento-card--hero:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.4)
}


/* ── Regulation Badge (reusable pill badge) ──────────────────── */
.reg-badge {
  padding: 0.5rem 1rem;
  background: var(--canvas-bg);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

/* ── Phase Cards ──────────────────────────────────────────────── */
.phase-card {
  overflow: visible;
}

.phase-card__header p {
  min-height: 44px;
}

/* Phase badge — base */
.phase-card__badge {
  display: inline-block;
  margin-bottom: 1rem;
  border: none;
}

.phase-card__badge--active {
  background: var(--text-primary);
  color: #fff;
}

.phase-card__badge--next {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.phase-card__badge--target {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Phase card title */
.phase-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Light-bg phase card title */
.phase-card:not(.bento-card--hero) .phase-card__title {
  color: var(--text-primary);
}

/* Dark-bg (hero) phase card title */
.bento-card--hero .phase-card__title {
  color: var(--white);
}

/* Phase card description */
.phase-card__desc {
  font-size: 0.875rem;
  line-height: 1.5;
}

.phase-card:not(.bento-card--hero) .phase-card__desc {
  color: var(--text-muted);
}

.bento-card--hero .phase-card__desc {
  color: rgba(255, 255, 255, 0.6);
}

/* Phase card body divider */
.phase-card__body {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.phase-card:not(.bento-card--hero) .phase-card__body {
  border-top: 1px solid var(--border-light);
}

.bento-card--hero .phase-card__body {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Phase card field label */
.phase-card__field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.phase-card:not(.bento-card--hero) .phase-card__field-label {
  color: var(--text-secondary);
}

.bento-card--hero .phase-card__field-label {
  color: rgba(255, 255, 255, 0.5);
}

/* Phase card field value */
.phase-card__field-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.phase-card:not(.bento-card--hero) .phase-card__field-value {
  color: var(--text-primary);
}

.bento-card--hero .phase-card__field-value {
  color: var(--white);
}

/* Phase card field sub-text */
.phase-card__field-sub {
  font-size: 0.875rem;
  font-weight: 400;
}

.phase-card:not(.bento-card--hero) .phase-card__field-sub {
  color: var(--text-muted);
}

.bento-card--hero .phase-card__field-sub {
  color: rgba(255, 255, 255, 0.7);
}

/* Phase card field group spacing */
.phase-card__field+.phase-card__field {
  margin-top: 1rem;
}

/* Stationary connectors between growth phases */
.static-phase-arrow {
  position: absolute;
  width: 44px;
  height: 44px;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a18' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  pointer-events: none;
  /* Always visible, independent of card reveal states */
}

/* Desktop Positioning (between col 1-2 and 2-3 on row 3) */
.static-phase-arrow.arrow-1 {
  left: calc(33.333% - 1.5rem);
  bottom: 15.5%;
  /* Centered in bottom row gap */
  transform: translateX(-50%);
}

.static-phase-arrow.arrow-2 {
  left: calc(66.666% - 1.25rem);
  bottom: 15.5%;
  transform: translateX(-36%);
}

@media (max-width: 900px) {
  .static-phase-arrow {
    display: none;
    /* Hidden where row structure changes/breaks, can be refined if needed */
  }
}

@media (max-width: 768px) {
  .static-phase-arrow {
    /* Can implement vertical arrows for stacked mobile cards if desired, but for now we hide them if the grid layout changes */
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BENTO GRAPH (TIME ARBITRAGE)
   ═══════════════════════════════════════════════════════════════ */
.bento-graph {
  grid-column: 1 / -1;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--canvas-bg-dark);
  border: none;
  /* No border as requested */
  transition: none;
  /* Removed transitions for a static feel */
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bento-graph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 220, 150, 0.05) 0%, transparent 60%);
  opacity: 0.3;
  /* Always partially visible for depth, but no longer interactive */
  pointer-events: none;
}

/* Hover rules for bento-graph removed to keep it static */

.bento-graph__container {
  width: 100%;
  height: 400px;
  position: relative;
}

/* Initial States */
.bento-graph .graph-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.bento-graph .graph-fill,
.bento-graph .graph-dots,
.bento-graph .graph-annotations {
  opacity: 0;
  transform: translateY(15px);
}

/* Animations Triggered on Reveal */
.bento-graph.visible .graph-line {
  animation: drawLine 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

.bento-graph.visible .graph-fill {
  animation: fadeUpFill 1.5s ease forwards;
  animation-delay: 1.5s;
}

.bento-graph.visible .dot-1 {
  animation: fadeUpFill 0.8s ease forwards;
  animation-delay: 0.8s;
}

.bento-graph.visible .dot-2 {
  animation: fadeUpFill 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.8s;
}

.bento-graph.visible .anno-3 {
  animation: fadeUpFill 1s ease forwards;
  animation-delay: 2.2s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeUpFill {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .bento-graph {
    padding: 1.5rem 1rem;
    overflow: hidden;
  }

  .bento-graph__container {
    width: 100%;
    height: auto;
    min-width: 0;
  }

  .bento-graph__container .arbitrage-svg {
    width: 100%;
    height: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DESIGN LAB: EXPERTISE VERSIONS
   ═══════════════════════════════════════════════════════════════ */
/* No longer using array of test versions */

/* VERSION 1: Editorial Classic */
.s-exp--v1 {
  padding: 8rem 0;
  background: var(--body-bg);
}

.s-exp--v1 .exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.s-exp--v1 .exp-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.s-exp--v1 .exp-img img {
  width: 100%;
  display: block;
}

.s-exp--v1 .exp-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--white);
  /* Updated for readability on dark background */
}

.s-exp--v1 .exp-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.s-exp--v1 .exp-desc {
  color: rgba(255, 255, 255, 0.6);
  /* Updated for readability on dark background */
  line-height: 1.6;
}



@media (max-width: 900px) {
  .s-exp--v1 .exp-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 5: SECURITY
   ═══════════════════════════════════════════════════════════════ */
.s-security {
  padding: 7rem 0;
  background: var(--canvas-bg-dark);
}

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

.s-security__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.s-security__title .highlight::after {
  height: 40%;
}

.s-security__desc {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.s-security__right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-layer {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s;
}

.security-layer:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.security-layer__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}

.security-layer__text h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.security-layer__text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.security-layer__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--white);
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.s-cta {
  padding: 5rem 0 0;
  background: var(--canvas-bg);
  text-align: center;
  position: relative;
}

.s-cta__content {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.s-cta__content .section-label {
  color: var(--text-muted);
}

.s-cta__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.s-cta__desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.s-cta__image {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin: 0 -0.5rem;
  line-height: 0;
}

.s-cta__image img {
  width: 100%;
  height: clamp(350px, 35vh, 400px);
  object-fit: cover;
  object-position: center 70%;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════
   PILL BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
}

.btn-pill--dark {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-pill--dark:hover {
  background: #3a3c30;
  transform: translateY(-1px);
}

.btn-pill--accent {
  background: var(--accent);
  color: var(--white);
}

.btn-pill--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-pill--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--accent-dark);
  color: var(--white);
  padding: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  max-width: 200px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

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

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.2);
}


/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.5s;
}

.reveal-delay-4 {
  transition-delay: 0.7s;
}

.reveal-delay-5 {
  transition-delay: 0.9s;
}

.reveal-delay-6 {
  transition-delay: 1.1s;
}

.reveal-delay-7 {
  transition-delay: 1.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
    min-height: 90dvh;
  }

  .nav-links {
    display: none;
  }

  /* Section padding */
  .s-problem,
  .s-solution,
  .s-how,
  .s-metrics,
  .s-security,
  .s-exp--v1,
  .s-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .s-cta {
    padding-bottom: 0;
  }

  .s-security .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Problem */
  .s-problem__gap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gap-stat {
    text-align: left;
    padding: 0;
  }

  /* Solution cards */
  .s-solution__cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Timeline */
  .timeline-step {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .timeline-step__marker {
    display: none;
  }

  .timeline-step__content p {
    max-width: none;
  }

  /* Bento grid */
  .bento-grid {
    grid-template-columns: 1fr;
  }


  .bento-card--hero .counter {
    font-size: 3rem;
  }

  /* Security */
  .security-layer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem;
  }

  .security-layer__icon {
    display: none;
  }

  .security-layer__tag {
    justify-self: start;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem 0;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .bento-card__big .counter {
    font-size: 2.25rem;
  }
}