/* ==========================================================================
   ANFALOVA.ART HIGH-FIDELITY HERO & LIQUID GLASS WEBGL CAROUSEL
   Clean, Seamless, Full-Hero Canvas — No Stepped Blur Lines, No Box Cuts
   ========================================================================== */
:root {
  --bg-primary: #09090a;
  --bg-surface: #101012;
  --bg-surface-elevated: #161618;
  
  --text-white: #ffffff;
  --text-muted: #929292;
  --text-subtle: #5f5f67;
  
  /* Brand Identity & Primary Accent: UNLIMITEDWF Official Blue */
  --brand-blue: #1162dd;
  --brand-blue-hover: #2e7eff;
  --accent-brand: #1162dd;
  --accent-brand-hover: #2e7eff;
  --accent-red: #1162dd; /* Aliased to brand blue so all elements update */
  --accent-red-hover: #2e7eff;
  --accent-blue: #1162dd;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  
  --radius-card: 14px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Inline gutter spacing: 150px to 180px on desktop screens, fluid on smaller devices */
  --hero-inline-padding: clamp(24px, 8.5vw, 160px);
}

@media (min-width: 1400px) {
  :root {
    --hero-inline-padding: clamp(150px, 8.8vw, 180px);
  }
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
}

/* ==========================================================================
   LENIS SMOOTH SCROLL STYLES
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

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

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

button {
  border: none;
  background: transparent;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

/* Ambient glow layers (Continuous fixed atmospheric background) */
.ambient-glow {
  position: fixed;
  top: -120px;
  right: -80px;
  width: clamp(500px, 45vw, 750px);
  height: clamp(500px, 45vw, 750px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 98, 221, 0.18) 0%, rgba(17, 98, 221, 0.05) 50%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ambient-glow-secondary {
  position: fixed;
  bottom: -140px;
  left: -80px;
  width: clamp(480px, 42vw, 680px);
  height: clamp(480px, 42vw, 680px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 98, 221, 0.14) 0%, rgba(17, 98, 221, 0.03) 50%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .ambient-glow,
body.is-loaded .ambient-glow-secondary {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   HERO FRAME & LAYOUT (Seamless & Transparent)
   ========================================================================== */
.intro-hero-frame {
  position: relative;
  z-index: 5;
  background: transparent;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.intro-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: 24px 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: clamp(16px, 2.5vh, 28px);
  background: transparent;
  overflow: visible;
}

/* ==========================================================================
   FULLSCREEN WEBGL SURFACE (Hero Liquid Glass Carousel & Seamless Atmosphere)
   ========================================================================== */
.originkit-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}

.originkit-surface canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  pointer-events: auto;
}

.originkit-surface canvas:active {
  cursor: grabbing;
}

/* ==========================================================================
   INTERACTIVE PIXEL GRID CANVAS (Active globally across all sections & hero)
   ========================================================================== */
.pixel-grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 80;
  pointer-events: none;
  display: block;
}

/* ==========================================================================
   TOP GROUP: HEADER NAVIGATION & EXPERIENCE STAT
   ========================================================================== */
.hero-top-group {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--hero-inline-padding);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3.2vw, 48px);
  flex: 1;
}

/* Brand Logo (Exact anfalova.art style) */
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.92;
}

.brand-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-white);
  line-height: 1;
}

.brand-dot {
  color: var(--accent-red);
  font-weight: 800;
}

.brand-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red);
  font-size: 1.15em;
  margin-left: 2px;
}

/* ==========================================================================
   CUSTOM SQUARE OUTLINE CURSOR & MAGNETIC BOX MORPH
   ========================================================================== */
.custom-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

/* Hide OS cursor on fine pointer devices */
@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor canvas {
    cursor: none !important;
  }
}

/* Precision square outline box */
.cursor-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  box-sizing: border-box;
  background-color: transparent;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: 
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* When magnetically hovering a navigation menu item */
.custom-cursor.is-nav-hover .cursor-box {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 16px rgba(17, 98, 221, 0.22), inset 0 0 8px rgba(17, 98, 221, 0.08);
}

/* Central brand blue jewel dot */
.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  box-shadow: 0 0 8px var(--brand-blue);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ==========================================================================
   NAVIGATION LINKS
   ========================================================================== */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-white);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-item:hover {
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 60;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   NAVIGATION STAGGERED ENTRANCE REVEAL
   ========================================================================== */
.reveal-nav-item {
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(4px);
  transition: 
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s ease;
  transition-delay: calc(0.08s + var(--nav-i, 1) * 0.055s);
  will-change: transform, opacity, filter;
}

body.is-loaded .reveal-nav-item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   CAROUSEL SHELL (Spacer & Anchor — No Cutoffs, No Overflow Hidden)
   ========================================================================== */
.carousel-shell {
  position: relative;
  width: 100%;
  height: clamp(260px, 32vh, 380px);
  margin: auto 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 10;
  pointer-events: none; /* Let clicks and drags reach WebGL canvas */
}

/* ==========================================================================
   HERO BOTTOM GROUP & BRAND TYPOGRAPHY
   ========================================================================== */
.hero-bottom-group {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--hero-inline-padding);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(32px, 4vw, 80px);
  position: relative;
  z-index: 20;
  pointer-events: none; /* Let empty space pass pointer drags directly through to the canvas */
}

.hero-bottom-main,
.hero-bottom-aside {
  pointer-events: auto; /* Interactive text, button and links remain fully clickable */
}

.hero-bottom-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

/* Independent Design Studio Kicker Tag */
.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue);
  animation: pulse-dot 2.4s infinite ease-in-out;
}

/* Main Headline */
.intro-title {
  margin: 0;
  padding: 0;
  font-size: clamp(38px, 5.2vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text-white);
}

.intro-title strong {
  color: #ffffff;
  font-weight: 700;
}

.title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Headline Masked Curtain Reveal (Ample descender room for 'g', 'y', 'p') */
.headline-mask {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding-top: 0.06em;
  padding-bottom: 0.28em;
  margin-bottom: -0.28em;
}

.headline-inner {
  display: inline-block;
  vertical-align: top;
  padding-bottom: 0.08em;
  transform: translateY(125%) rotate(1.2deg);
  transform-origin: bottom left;
  opacity: 0;
  filter: blur(4px);
  transition: 
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
  will-change: transform, opacity, filter;
}

.headline-inner.line-1 {
  transition-delay: 0.28s;
}

.headline-inner.line-2 {
  transition-delay: 0.42s;
}

body.is-loaded .headline-inner {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
  filter: blur(0);
}

/* Bottom Aside: Subtext & CTA Button */
.hero-bottom-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 420px;
  padding-bottom: 6px;
}

.intro-subtext {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #09090a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: 
    background-color 0.25s ease, 
    color 0.25s ease, 
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
    box-shadow 0.25s ease;
}

.btn-cta:hover {
  background-color: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(17, 98, 221, 0.4);
}

.btn-arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn-cta:hover .btn-arrow {
  transform: translateY(2px);
}

/* Generic Staggered Fade-Up Reveal */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: 
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
  transition-delay: calc(0.18s + var(--fade-i, 1) * 0.12s);
  will-change: transform, opacity, filter;
}

body.is-loaded .reveal-fade-up {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Interactive Hint Tooltip Card */
.intro-hint-popup {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 320px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.intro-hint-popup.is-active {
  opacity: 1;
  transform: scale(1);
}

.hint-panel p {
  font-size: 14px;
  line-height: 1.35;
  color: #ededed;
  font-weight: 500;
}

/* ==========================================================================
   LIGHTBOX PREVIEW MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-card);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  font-size: 2.2rem;
  color: var(--text-white);
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-caption {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN & ACCESSIBILITY
   ========================================================================== */
@media (max-width: 1024px) {
  .site-nav {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 24px;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.is-active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-toggle.is-active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .intro-experience {
    margin-left: 0;
    margin-top: 12px;
  }

  .hero-top-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-title-line {
    white-space: normal;
  }

  .desktop-break {
    display: none;
  }

  .mobile-title-space {
    display: inline;
  }

  .headline-mask {
    display: inline;
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .headline-inner {
    display: inline;
  }

  .site-nav .reveal-nav-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .nav-item {
    padding: 6px 0;
    font-size: 18px;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 960px) {
  .hero-bottom-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero-bottom-aside {
    max-width: 100%;
    gap: 18px;
  }
}

/* ==========================================================================
   LATEST PROJECTS SECTION — Minimalist Editorial Project List (anfalova UI)
   Seamless, continuous transparent overlay on top of the liquid glass background
   ========================================================================== */
.projects-section {
  position: relative;
  width: 100%;
  padding: clamp(90px, 12vh, 160px) var(--hero-inline-padding) clamp(100px, 14vh, 180px);
  background: transparent !important;
  z-index: 10;
  box-sizing: border-box;
  pointer-events: auto;
}

/* ── Top Header Bar ── */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(3px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s ease;
  will-change: transform, opacity, filter;
}

.projects-header.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.projects-heading {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-white);
  line-height: 1.1;
  margin: 0;
}

.projects-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.projects-all-btn:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.projects-all-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #09090a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.projects-all-btn:hover .projects-all-badge {
  transform: scale(1.1) rotate(90deg);
  background: var(--brand-blue);
  color: #ffffff;
}

/* ── Header Divider ── */
.projects-header-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
  will-change: transform;
}

.projects-header-divider.is-revealed {
  transform: scaleX(1);
}

/* ── Projects List ── */
.projects-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* ── Individual Project Row ── */
.project-row {
  display: block;
  position: relative;
  padding: clamp(38px, 4.5vh, 56px) 0 clamp(44px, 5.2vh, 64px);
  text-decoration: none;
  color: var(--text-white);
  cursor: pointer;
  outline: none;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s ease,
    color 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--row-i, 0) * 0.08s);
  will-change: transform, opacity, filter;
}

.project-row.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Top Meta Sub-Row ── */
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.05vw, 14.5px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #8c8c92;
  margin-bottom: clamp(20px, 2.6vh, 36px);
  transition: color 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: inherit;
  transition: color 0.32s ease;
}

.project-meta-right {
  display: flex;
  align-items: baseline;
  gap: clamp(32px, 5.5vw, 96px);
  color: inherit;
}

.project-services {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.2vw, 36px);
  color: inherit;
}

.service-tag {
  color: inherit;
  transition: color 0.32s ease;
}

.project-year {
  font-variant-numeric: tabular-nums;
  color: inherit;
  transition: color 0.32s ease;
}

/* ── Main Project Title Row ── */
.project-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.project-title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 6.8vw, 102px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: #ffffff;
  margin: 0;
  transition:
    color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

/* ── Right-Edge Circular Action Button (→) with Brand Blue ── */
.project-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 3.8vw, 54px);
  height: clamp(44px, 3.8vw, 54px);
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  opacity: 0;
  transform: scale(0.65) translateX(-16px);
  box-shadow: 0 10px 28px rgba(17, 98, 221, 0.45);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.project-arrow-btn svg {
  display: block;
}

/* ── Divider Line Below Each Row ── */
.project-row-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  transition: background 0.35s ease;
}

/* ==========================================================================
   HOVER STATE — UNLIMITEDWF Official Brand Blue (#1162DD)
   Typography remains consistently in modern sans-serif (no font family change)
   ========================================================================== */
.project-row:hover,
.project-row.is-active-pointer {
  color: var(--brand-blue);
}

.project-row:hover .project-meta,
.project-row.is-active-pointer .project-meta {
  color: var(--brand-blue);
}

.project-row:hover .project-title,
.project-row.is-active-pointer .project-title {
  color: var(--brand-blue);
  transform: translateX(4px);
}

.project-row:hover .project-arrow-btn,
.project-row.is-active-pointer .project-arrow-btn {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.project-row:hover .project-row-line,
.project-row.is-active-pointer .project-row-line {
  background: rgba(17, 98, 221, 0.42);
}

/* ==========================================================================
   FLOATING INTERACTIVE CURSOR PREVIEW CARD (60fps Spring Glide)
   ========================================================================== */
.project-floating-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(280px, 25vw, 420px);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  z-index: 75;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.92);
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  will-change: transform, opacity;
  background: #141416;
}

.project-floating-preview.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.preview-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.floating-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Mobile & Tablet Responsiveness ── */
@media (max-width: 860px) {
  .project-meta-right {
    gap: 24px;
  }

  .project-services {
    gap: 12px;
  }

  .project-title {
    font-size: clamp(38px, 9vw, 56px);
  }

  /* On touch devices, reveal arrow button permanently */
  .project-arrow-btn {
    opacity: 0.85;
    transform: scale(0.85);
  }

  .project-floating-preview {
    display: none;
  }
}

@media (max-width: 600px) {
  .projects-section {
    padding: 60px var(--hero-inline-padding) 90px;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .project-meta-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   WHAT YOU'LL GET / PROCESS BENTO SECTION (Exact Reference Design)
   3-column compact top cards + 2-column wide cards + bottom feature chips
   ========================================================================== */
.process-section {
  position: relative;
  width: 100%;
  padding: clamp(90px, 12vh, 160px) var(--hero-inline-padding) clamp(100px, 14vh, 180px);
  background: transparent !important;
  z-index: 10;
  box-sizing: border-box;
}

.process-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Centered Header ── */
.bento-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(48px, 7vh, 72px);
  max-width: 820px;
  opacity: 0;
  transform: translateY(32px);
  filter: blur(5px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
  will-change: transform, opacity, filter;
}

.bento-header.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.bento-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.bento-kicker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1162dd 0%, #38bdf8 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.bento-main-heading {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-white);
  margin: 0;
}

.bento-title-break {
  display: block;
}

/* ── 6-Column Bento Grid: Row 1 (span 2 each), Row 2 (span 3 each) ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  width: 100%;
  margin-bottom: clamp(40px, 6vh, 64px);
}

/* ── Bento Card Anatomy with Staggered Scroll Reveal ── */
.bento-card {
  position: relative;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 26px;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  opacity: 0;
  transform: translateY(44px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--card-delay, 0s);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity, filter;
}

.bento-card.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.bento-card.is-revealed:hover {
  transform: translateY(-4px) scale(1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.bento-card-compact {
  grid-column: span 2;
  min-height: 380px;
}

.bento-card-wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 36px 36px;
  min-height: 190px;
}

/* ── Bento Content (Title & Description) ── */
.bento-content {
  margin-top: 24px;
}

.bento-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 8px;
}

.bento-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: #8c8c94;
  margin: 0;
}

/* ── Wide Card Layout ── */
.bento-wide-content {
  max-width: 260px;
}

.bento-wide-content .bento-title {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.bento-wide-visual {
  flex-shrink: 0;
}

/* ==========================================================================
   WIDGET 1: GROWTH EQUALIZER CHART
   ========================================================================== */
.widget-chart {
  background: #0c0c0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px 20px 16px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-header {
  display: flex;
  align-items: center;
}

.chart-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 95px;
  padding: 6px 0;
}

.chart-bars .bar {
  width: 7.5px;
  height: var(--h, 50%);
  border-radius: 9999px;
  background: linear-gradient(to top, #0b3475 0%, #1162dd 45%, #38bdf8 100%);
  transform-origin: bottom;
  animation: barPulse 2.8s infinite ease-in-out var(--delay, 0s);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

@keyframes barPulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.9;
  }
  50% {
    transform: scaleY(0.72);
    opacity: 0.65;
  }
}

.chart-timeline {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #60606b;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

/* ==========================================================================
   WIDGET 2: TAILOR-MADE DESIGN (Dynamic Island Notification)
   ========================================================================== */
.widget-notification {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.island-device {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.island-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.island-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.island-card {
  width: 90%;
  background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover .island-card {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.25);
}

.island-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #0a1b38;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 14px rgba(17, 98, 221, 0.35);
}

.island-text-group {
  display: flex;
  flex-direction: column;
}

.island-status-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.status-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #38bdf8;
}

.island-card-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.island-card-time {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #6c6c75;
  margin-top: 2px;
}

.island-guides {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 82%;
  margin-top: 14px;
  opacity: 0.45;
}

.guide-line {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0.25) 4px, transparent 4px, transparent 8px);
}

/* ==========================================================================
   WIDGET 3: SCALABLE AS YOU GROW (Curve Graph)
   ========================================================================== */
.widget-curve {
  height: 200px;
  position: relative;
  background: #0c0c0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
}

.curve-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.curve-grid-labels {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #4b4b56;
  font-weight: 500;
  pointer-events: none;
}

/* ==========================================================================
   WIDGET 4: WORKFLOW INTEGRATION (App Icons Grid)
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  gap: 12px;
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.app-icon:hover {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.24);
  background-color: #202028;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.app-icon svg {
  display: block;
}

/* ==========================================================================
   WIDGET 5: COLLABORATE REAL-TIME (Avatars & Interactive Cursor)
   ========================================================================== */
.avatars-cluster {
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 28px;
}

.collab-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: -12px;
  position: relative;
  background: #1e1e24;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.collab-avatar:first-child {
  margin-left: 0;
}

.collab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ring-purple {
  box-shadow: 0 0 0 3px #a855f7, 0 6px 16px rgba(168, 85, 247, 0.35);
  z-index: 1;
}

.ring-cyan {
  box-shadow: 0 0 0 3px #38bdf8, 0 6px 16px rgba(56, 189, 248, 0.45);
  z-index: 1;
}

.ring-blue {
  box-shadow: 0 0 0 3px #1162dd, 0 6px 18px rgba(17, 98, 221, 0.55);
  z-index: 2;
}

.ring-purple {
  box-shadow: 0 0 0 3px #8b5cf6, 0 6px 16px rgba(139, 92, 246, 0.35);
  z-index: 3;
}

.ring-ghost {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: transparent;
  z-index: 4;
}

/* Live Collab Cursor */
.live-collab-cursor {
  position: absolute;
  bottom: -22px;
  right: -4px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  z-index: 10;
  pointer-events: none;
  animation: cursorFloat 3.8s infinite ease-in-out;
}

.live-collab-cursor svg {
  color: #38bdf8;
  transform: rotate(-15deg);
  filter: drop-shadow(0 2px 8px rgba(17, 98, 221, 0.9));
}

.cursor-tag {
  background: #1162dd;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 4px 16px rgba(17, 98, 221, 0.65);
  margin-top: 8px;
}

@keyframes cursorFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -8px);
  }
}

/* ==========================================================================
   BOTTOM FEATURE PILL CHIPS
   ========================================================================== */
.bento-chips-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bento-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: rgba(22, 22, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.085);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px) scale(0.92);
  filter: blur(3px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay: calc(var(--chip-i, 0) * 0.05s);
  will-change: transform, opacity, filter;
}

.bento-chip.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.bento-chip:hover {
  transform: translateY(-2px) scale(1);
  background-color: rgba(17, 98, 221, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 98, 221, 0.25);
}

.chip-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1162dd 0%, #38bdf8 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

/* ── Responsive Bento Breakpoints ── */
@media (max-width: 1024px) {
  .bento-card-compact {
    grid-column: span 3;
  }
  
  .bento-card:nth-child(3) {
    grid-column: span 6;
  }

  .bento-card-wide {
    grid-column: span 3;
  }
}

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

  .bento-card-compact,
  .bento-card:nth-child(3),
  .bento-card-wide {
    grid-column: span 1;
  }

  .bento-card-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px;
  }

  .bento-wide-content {
    max-width: 100%;
  }

  .bento-wide-visual {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .bento-title-break {
    display: inline;
  }
}

@media (max-width: 480px) {
  .process-section {
    padding: 60px var(--hero-inline-padding) 90px;
  }

  .apps-grid {
    grid-template-columns: repeat(3, 44px);
    gap: 10px;
  }

  .app-icon {
    width: 44px;
    height: 44px;
  }

  .collab-avatar {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   PINNED SCROLL STAGES (IDEA · CONCEPTION* · LAUNCH)
   Sticky-pinned sequence where cards emerge from the bottom one-by-one as user scrolls
   ========================================================================== */
.stages-scroll-section {
  position: relative;
  width: 100%;
  height: 340vh; /* 340vh gives ample, buttery scroll runway */
  background: transparent;
  z-index: 15;
  box-sizing: border-box;
}

.stages-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.stages-sticky-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--hero-inline-padding);
  box-sizing: border-box;
}

/* ── Giant Centered Background Typography ── */
.stages-big-words {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  gap: clamp(8px, 1.6vh, 20px);
}

.stage-word {
  position: relative;
  font-family: var(--font-sans);
  font-size: clamp(62px, 10.5vw, 150px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-word .word-text {
  display: inline-block;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.stage-word .word-default {
  opacity: 1;
  transform: translateY(0);
}

.stage-word .word-active {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  color: var(--brand-blue);
  text-shadow: 0 0 40px rgba(17, 98, 221, 0.5), 0 0 80px rgba(56, 189, 248, 0.25);
}

.stage-word .word-active .title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--brand-blue);
}

/* When word is active */
.stage-word.is-active .word-default {
  opacity: 0;
  transform: translateY(-18px) scale(0.96);
  filter: blur(4px);
}

.stage-word.is-active .word-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ── Scroll-Driven Cards Layer ── */
.stages-cards-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--hero-inline-padding);
}

.stage-card {
  position: absolute;
  width: clamp(290px, 24vw, 360px);
  height: clamp(390px, 50vh, 490px);
  border-radius: 26px;
  overflow: hidden;
  pointer-events: auto;
  will-change: transform, opacity;
  transform: translate3d(0, 110vh, 0);
  opacity: 0;
  box-sizing: border-box;
}

.stage-card-inner {
  width: 100%;
  height: 100%;
  padding: clamp(28px, 3.2vh, 36px) clamp(24px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Card 1: Idea / Discovery (Vibrant Brand Blue Solid) */
.stage-card-1 {
  left: max(32px, 8.5vw);
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(17, 98, 221, 0.5), 0 0 40px rgba(17, 98, 221, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translate3d(0, 110vh, 0) rotate(-1.5deg);
}

/* Card 2: Conception (Elevated Obsidian Surface with Cyan Glow) */
.stage-card-2 {
  left: 50%;
  margin-left: calc(-1 * clamp(290px, 24vw, 360px) / 2);
  background: #0f1624;
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.18);
  transform: translate3d(0, 110vh, 0);
}

/* Card 3: Launch (Cobalt Night Gradient) */
.stage-card-3 {
  right: max(32px, 8.5vw);
  background: linear-gradient(155deg, #0e377e 0%, #071736 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(17, 98, 221, 0.3);
  transform: translate3d(0, 110vh, 0) rotate(1.5deg);
}

/* ── Inside Card Typography ── */
.stage-card-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-bottom: 14px;
}

.stage-card-lead {
  font-family: var(--font-sans);
  font-size: clamp(20px, 1.85vw, 25px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0;
  color: #ffffff;
}

.stage-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.stage-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Bottom Step Indicator Pill ── */
.stages-step-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(16, 16, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 8px 18px;
  pointer-events: none;
}

.step-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.step-progress-track {
  width: 90px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.step-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1162dd, #38bdf8);
  border-radius: 9999px;
  transform-origin: left;
  transform: scaleX(0.33);
  transition: transform 0.15s ease-out;
}

/* ── Responsive Behavior ── */
@media (max-width: 1024px) {
  .stage-card {
    width: clamp(270px, 28vw, 320px);
    height: clamp(360px, 46vh, 440px);
  }
}

@media (max-width: 860px) {
  .stages-cards-container {
    padding: 0 20px;
  }

  .stage-card {
    left: 50% !important;
    right: auto !important;
    margin-left: calc(-1 * clamp(280px, 86vw, 340px) / 2) !important;
    width: clamp(280px, 86vw, 340px);
    height: 420px;
  }

  .stage-card-1 {
    z-index: 10;
  }
  .stage-card-2 {
    z-index: 11;
  }
  .stage-card-3 {
    z-index: 12;
  }

  .stages-big-words {
    opacity: 0.35;
  }
}

/* ==========================================================================
   PREFERS REDUCED MOTION (Accessibility)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal-nav-item,
  .headline-inner,
  .reveal-fade-up,
  .ambient-glow,
  .projects-header,
  .projects-header-divider,
  .project-row,
  .bento-header,
  .bento-card,
  .bento-chip,
  .stage-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .stages-scroll-section {
    height: auto !important;
  }

  .stages-sticky-frame {
    position: relative !important;
    height: auto !important;
    padding: 80px 24px !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  .stages-cards-container {
    position: relative !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .stage-card {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto !important;
  }

  .slide-mask {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%) !important;
    transition: none !important;
  }

  .work-slide-img {
    transform: none !important;
  }
}
