/* ==========================================================================
   TERRA â€” Process Concepts Styles (Concepts 1, 2, and 3)
   Aesthetic: Architectural, Warm, Dynamic Micro-Animations, Hand-crafted
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Preview Switcher Bar (Appears on all process variations for testing)
   -------------------------------------------------------------------------- */
.process-concept-bar {
  position: relative;
  z-index: 40;
  background: #111111;
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.process-concept-bar__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.process-concept-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #f6b800;
}

.process-concept-bar__label svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.process-concept-bar__pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.concept-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.concept-pill:hover {
  background: rgba(246, 184, 0, 0.2);
  color: #ffffff;
  border-color: rgba(246, 184, 0, 0.4);
  transform: translateY(-1px);
}

.concept-pill.is-active {
  background: #f6b800;
  color: #111111;
  font-weight: 600;
  border-color: #f6b800;
  box-shadow: 0 2px 8px rgba(246, 184, 0, 0.35);
}

/* --------------------------------------------------------------------------
   Shared Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes floatGentleSlow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.8deg);
  }
}

@keyframes sunPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(246, 184, 0, 0.35), 0 0 35px rgba(246, 184, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(246, 184, 0, 0), 0 0 50px rgba(246, 184, 0, 0.35);
  }
}

@keyframes spinePulse {
  0% {
    top: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes pulseBadgeRing {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 184, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(246, 184, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(246, 184, 0, 0);
  }
}

/* Shared Caricature Framing */
.caricature-vignette {
  position: relative;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.caricature-vignette:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   CONCEPT 1: The Living Narrative Flow
   ========================================================================== */
.concept-flow-wrapper {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

/* Continuous Journey Spine running down the page */
.flow-spine {
  position: absolute;
  top: 180px;
  bottom: 220px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, 
    rgba(246, 184, 0, 0.1) 0%, 
    rgba(246, 184, 0, 0.65) 15%, 
    rgba(246, 184, 0, 0.65) 85%, 
    rgba(246, 184, 0, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.flow-spine::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 8px;
  height: 60px;
  background: linear-gradient(180deg, transparent, #f6b800, transparent);
  border-radius: 4px;
  animation: spinePulse 5s ease-in-out infinite;
}

/* Stage Band */
.flow-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 4.5rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.flow-stage:last-child {
  border-bottom: none;
}

/* Invert layout for odd/even stages to create graceful rhythm */
.flow-stage:nth-child(even) .flow-stage__content {
  order: 2;
}
.flow-stage:nth-child(even) .flow-stage__visuals {
  order: 1;
}

/* Stage Milestone Badge */
.flow-badge-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.flow-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f6b800;
  color: #111111;
  font-family: var(--headline-font, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(246, 184, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseBadgeRing 3.5s infinite;
}

.flow-badge::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(246, 184, 0, 0.5);
  pointer-events: none;
}

.flow-stage:hover .flow-badge {
  transform: scale(1.08) rotate(5deg);
}

.flow-badge-role {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888888;
}

.flow-stage h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #111111;
}

.flow-lead {
  font-size: 1.22rem;
  font-weight: 500;
  color: #222222;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.flow-copy {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555555;
  max-width: 520px;
}

/* Paired Dual Visuals in Concept 1: Primary Arch Work + Floating Caricature */
.flow-stage__visuals {
  position: relative;
}

.flow-main-visual {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #fcfcfc;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.flow-main-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.flow-main-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Caricature Card Badge */
.flow-caricature-badge {
  position: absolute;
  width: clamp(160px, 20vw, 220px);
  z-index: 3;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.1));
  animation: floatGentle 5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.flow-stage:nth-child(odd) .flow-caricature-badge {
  bottom: -25px;
  right: -25px;
}

.flow-stage:nth-child(even) .flow-caricature-badge {
  bottom: -25px;
  left: -25px;
  animation-delay: -2.5s;
}

.flow-caricature-badge__inner {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.flow-caricature-badge img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.flow-caricature-caption {
  margin-top: 0.35rem;
  text-align: center;
  font-family: var(--body-font, sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: #111111;
  line-height: 1.2;
}

.flow-script-accent {
  position: absolute;
  z-index: 3;
  color: var(--yellow, #f6b800);
  font-family: var(--body-font, sans-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transform: none;
  pointer-events: none;
}

.process-hero-title {
  margin: 0;
  text-align: center;
  font-family: var(--body-font, sans-serif);
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #141513;
}
.process-hero-title span {
  display: block;
  margin-top: 0.35rem;
  color: var(--yellow, #f6b800);
  font-size: 0.88em;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.flow-script-accent--top {
  top: -1.8rem;
  left: 2rem;
}

/* Deliver End Area */
.flow-deliver-cta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ==========================================================================
   CONCEPT 2: Interactive Milestone Stepper
   ========================================================================== */
.concept-stepper-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 6rem;
}

/* Sticky Stepper Bar Wrapper & Bar */
.stepper-sticky-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-height, 84px);
  z-index: 990;
  background: #ffffff;
  padding-top: var(--process-sticky-gap, 14px);
  padding-bottom: var(--process-sticky-gap, 14px);
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.25rem);
  width: 100%;
  box-sizing: border-box;
}

.stepper-nav-bar {
  position: relative;
  z-index: 990;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 1320px;
  box-sizing: border-box;
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.stepper-nav-bar.is-stuck {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(246, 184, 0, 0.4);
  background: rgba(255, 255, 255, 0.98);
}

.stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}

.stepper-progress-fill {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 50%;
  height: 2px;
  background: #ececec;
  transform: translateY(-50%);
  z-index: 1;
}

.stepper-progress-fill__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #f6b800;
  transition: width 0.3s ease;
}

.stepper-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333333;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.stepper-btn:hover {
  border-color: #f6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 184, 0, 0.2);
}

.stepper-btn.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.stepper-btn__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #f6b800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stepper-btn__avatar img {
  width: 110%;
  height: 110%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.stepper-btn__num {
  font-weight: 700;
  font-size: 0.75rem;
  color: #f6b800;
}

.stepper-btn.is-active .stepper-btn__num {
  color: #f6b800;
}

/* Stepper Stage Showcase Section */
.stepper-stage-item {
  scroll-margin-top: 170px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stepper-stage-item:last-child {
  border-bottom: none;
}

/* Caricature "Experience Card" */
.experience-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: 2.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

.experience-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.experience-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(246, 184, 0, 0.15);
  color: #111111;
}

.experience-card__illustration {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: floatGentleSlow 6s ease-in-out infinite;
}

.experience-card__illustration img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.experience-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-pill {
  font-size: 0.75rem;
  background: #f2f2f2;
  color: #444;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}

/* Technical Blueprint Card */
.blueprint-card {
  border-radius: 0;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.blueprint-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.blueprint-card__body {
  padding: 2rem 2.2rem 2.4rem;
  background: #ffffff;
}

.blueprint-card__body h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #111111;
}

/* ==========================================================================
   CONCEPT 3: Dual-Layer Experience Cards
   ========================================================================== */
.concept-dual-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.dual-view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 3.5rem;
}

.dual-toggle-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #333333;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dual-toggle-btn:hover {
  border-color: #f6b800;
  background: rgba(246, 184, 0, 0.08);
}

.dual-toggle-btn.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* 3D Tilt Dual Card */
.dual-card {
  position: relative;
  scroll-margin-top: 170px;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 4rem;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  transform-style: preserve-3d;
}

.dual-card:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.1);
}

.dual-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dual-card__num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 0.9;
  color: #f6b800;
  font-family: var(--headline-font, sans-serif);
}

.dual-card__title-wrap h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #111111;
}

.dual-card__subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: #444444;
}

.dual-card__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Layer 1: Caricature with Interactive Hotspots */
.dual-caricature-panel {
  position: relative;
  background: radial-gradient(circle at 65% 35%, rgba(246, 184, 0, 0.15) 0%, transparent 60%), #fbfbfb;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.dual-caricature-panel img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Interactive Hotspots on Caricatures - Deprecated */
.hotspot-pin {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: #f6b800;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(246, 184, 0, 0.45);
  animation: pulseBadgeRing 2.8s infinite;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 5;
}

.hotspot-pin:hover {
  transform: scale(1.2);
  background: #111111;
  color: #ffffff;
}

.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #111111;
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.hotspot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #111111 transparent transparent transparent;
}

.hotspot-pin:hover .hotspot-tooltip,
.hotspot-pin.is-open .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Layer 2: Architectural Details */
.dual-craft-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dual-craft-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dual-craft-media img {
  width: 100%;
  height: auto;
  display: block;
}

.dual-craft-desc {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #555555;
}

/* Mode toggles logic */
.concept-dual-wrapper[data-mode="caricature"] .dual-craft-panel {
  display: none;
}
.concept-dual-wrapper[data-mode="caricature"] .dual-card__grid {
  grid-template-columns: 1fr;
}
.concept-dual-wrapper[data-mode="craft"] .dual-caricature-panel {
  display: none;
}
.concept-dual-wrapper[data-mode="craft"] .dual-card__grid {
  grid-template-columns: 1fr;
}

/* ==========================================================================
   Header Dropdown Menu Styles (Seamless Integration)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 250px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(246, 184, 0, 0.15);
  border-radius: 12px;
  padding: 0.6rem 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu .dropdown-item {
  display: block;
  padding: 0.65rem 1rem !important;
  font-size: 0.78rem !important;
  color: #111111 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 500 !important;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.nav-dropdown-menu .dropdown-item::after {
  display: none !important;
}

.nav-dropdown-menu .dropdown-item:hover {
  background: rgba(246, 184, 0, 0.14) !important;
  color: #000000 !important;
  transform: translateX(4px);
}

.nav-dropdown-menu .dropdown-item.is-current {
  background: #f6b800 !important;
  color: #111111 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 980px) {
  .flow-spine {
    display: none;
  }
  .flow-stage {
    grid-template-columns: 1fr;
    padding: 3rem 0;
    gap: 2.5rem;
  }
  .flow-stage:nth-child(even) .flow-stage__content {
    order: 1;
  }
  .flow-stage:nth-child(even) .flow-stage__visuals {
    order: 2;
  }
  .flow-caricature-badge {
    position: static;
    width: 100%;
    max-width: 280px;
    margin: 1.5rem auto 0;
    animation: none;
  }

  .stepper-nav-bar {
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
  }
  .stepper-nav-bar::-webkit-scrollbar {
    display: none;
  }
  .stepper-track {
    width: max-content;
    padding: 0.2rem 0.4rem;
  }
  .stepper-progress-fill {
    display: none;
  }
  .stepper-stage-item {
    grid-template-columns: 1fr;
    padding: 3rem 0;
    gap: 2.5rem;
  }

  .dual-card__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Mobile Header Dropdown */
  .nav-item-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    box-shadow: none;
    border-radius: 8px;
    width: 100%;
    margin: 0.35rem 0 0.85rem;
    padding: 0.35rem 0.5rem;
    box-sizing: border-box;
  }
  .nav-dropdown-menu .dropdown-item {
    font-size: 0.82rem !important;
    padding: 0.45rem 0.75rem !important;
    text-align: left;
    color: #111111 !important;
    line-height: 1.3;
  }
}

@media (max-width: 680px) {
  .process-concept-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .concept-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
  }
}


/* ==========================================================================
   TERRA — Process Page (Page 4 Ruby Reference Redesign)
   Authentic editorial roadmap layout matching Page 4 design reference
   ========================================================================== */

html:has(body.process-page-ruby) {
  overflow-y: auto !important;
  overflow-x: clip !important;
}

body.process-page-ruby {
  --header-height: 84px;
  --process-sticky-gap: 14px;
  background: #ffffff !important;
  position: relative;
  overflow: visible !important;
  overflow-x: clip !important;
}

/* Unified Equal Section Width Across Header, Stepper, Process Roadmap & Footer */
body.process-page-ruby .site-header .container,
body.process-page-ruby .process-ruby-shell,
body.process-page-ruby .ruby-footer .ruby-footer-shell {
  width: min(calc(100% - var(--container-pad, 3rem)), var(--max, 1280px)) !important;
  max-width: var(--max, 1280px) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

/* Main header is non-sticky on load, and only becomes sticky when page is scrolled */
body.process-page-ruby .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: height 0.25s ease, background 0.3s ease, box-shadow 0.25s ease, border-color 0.3s ease;
}

body.process-page-ruby .site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height, 84px);
  background: #ffffff;
  border-bottom: 1px solid rgba(20, 21, 19, 0.08);
  box-shadow: 0 8px 28px rgba(20, 21, 19, 0.06);
  z-index: 1000;
}

body.process-page-ruby.menu-open .site-header {
  position: fixed !important;
  z-index: 1005 !important;
}

.process-ruby-main {
  background: #ffffff !important;
  padding-top: 96px;
  padding-bottom: clamp(2rem, 3.5vw, 3.25rem);
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  overflow-x: clip;
}

@media (max-width: 768px) {
  body.process-page-ruby .site-header {
    height: 84px;
  }
  .process-ruby-main {
    padding-top: 84px;
  }
}

.process-ruby-shell {
  width: min(calc(100% - var(--container-pad, 3rem)), var(--max, 1280px));
  max-width: var(--max, 1280px);
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

body.process-page-ruby .stepper-nav-bar {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

/* 1. Page Header (Inside Row 1 Left Column below Sticky Menu) */
.process-ruby-top-heading {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.process-ruby-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-top: 0.25rem;
  margin-bottom: 0;
}

.process-ruby-header__title-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-ruby-header__title {
  position: relative;
  display: inline-block;
  font-family: var(--body-font), sans-serif;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem) !important;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.45rem;
  color: #111111;
}

.process-ruby-header__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2.5px;
  background: var(--yellow, #f6b800);
}

.process-ruby-header__script {
  width: clamp(185px, 18vw, 240px);
  height: auto;
  margin-left: clamp(4rem, 9vw, 7.5rem);
  margin-top: 0;
  margin-bottom: -1.8rem;
  position: relative;
  z-index: 2;
}

.process-ruby-header__script img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Roadmap Rows — Full Section Width so Left & Right Content Aligns Flush with Section Edges */
.process-ruby-roadmap {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 0;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
}

.process-row {
  display: grid;
  column-gap: clamp(2.5rem, 4.5vw, 4.5rem);
  align-items: center;
  position: relative;
  min-height: 0;
  scroll-margin-top: 195px;
  width: 100%;
}

.process-row--01,
.process-page-test2 .process-row--01 {
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  margin-bottom: clamp(5.5rem, 8.2vw, 7rem);
}

.process-row--02,
.process-page-test2 .process-row--02 {
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  margin-bottom: clamp(5rem, 7.5vw, 6.25rem);
}

.process-row--03,
.process-page-test2 .process-row--03 {
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  margin-bottom: clamp(4.25rem, 6.5vw, 5.5rem);
}

.process-row--04,
.process-page-test2 .process-row--04 {
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  margin-bottom: clamp(5rem, 7.5vw, 6.25rem);
}

.process-row--05,
.process-page-test2 .process-row--05 {
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  margin-top: 0;
  margin-bottom: 0;
}

.process-col {
  display: flex;
  flex-direction: column;
  position: static;
  min-width: 0;
}

/* Odd rows (01, 03, 05): Text flush Left, Image flush Right */
.process-row--01 .process-col--text,
.process-row--03 .process-col--text,
.process-row--05 .process-col--text {
  align-items: flex-start;
  justify-self: start;
  align-self: center;
  width: 100%;
}

.process-row--01 .process-col--media,
.process-row--03 .process-col--media,
.process-row--05 .process-col--media {
  align-items: flex-end;
  justify-self: end;
  width: 100%;
}

/* Even rows (02, 04): Image flush Left, Text flush Right */
.process-row--02 .process-col--media,
.process-row--04 .process-col--media {
  align-items: flex-start;
  justify-self: start;
  width: 100%;
}

.process-row--02 .process-col--text,
.process-row--04 .process-col--text {
  align-items: flex-end;
  justify-self: end;
  align-self: center;
  padding-top: 0;
  width: 100%;
}

/* 3. Full-Bleed Horizontal Section Lines (Removed per design update) */
.process-full-line {
  display: none !important;
}

/* 4. Milestone Block, Badges & Typography (Standard <p> Font Size Matching Other Pages) */
.milestone-block {
  position: relative;
  width: 100%;
  z-index: 2;
  scroll-margin-top: 195px;
}

.milestone-block--01,
.milestone-block--02,
.milestone-block--03,
.milestone-block--04,
.milestone-block--05 {
  margin-top: 0;
}

.milestone-badge {
  position: absolute;
  top: -2px;
  left: 0;
  width: 54px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/process/badge-blob.png') center / 100% 100% no-repeat;
  z-index: 3;
}

.milestone-badge .badge-num {
  font-family: var(--body-font), sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  transform: translate(1px, 1px);
}

.milestone-body {
  padding-left: 52px;
  padding-top: 22px;
  width: 100%;
  box-sizing: border-box;
}

.milestone-title {
  position: relative;
  display: inline-block;
  font-family: var(--body-font), sans-serif;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem) !important;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: #111111;
  text-decoration: none;
}

.milestone-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2.5px;
  background: var(--yellow, #f6b800);
}

.milestone-lead,
.process-page-test2 .milestone-lead {
  font-family: var(--body-font), sans-serif !important;
  font-size: clamp(0.96rem, 1.08vw, 1.04rem) !important;
  font-weight: 400;
  line-height: 1.6 !important;
  color: #55574e;
  margin: 0 0 0.55rem !important;
  max-width: 100% !important;
  text-align: left;
}

.milestone-desc,
.process-page-test2 .milestone-desc,
.milestone-block--01 .milestone-desc,
.milestone-block--02 .milestone-desc,
.milestone-block--03 .milestone-desc,
.milestone-block--04 .milestone-desc,
.milestone-block--05 .milestone-desc,
.process-page-test2 .milestone-block--01 .milestone-desc,
.process-page-test2 .milestone-block--02 .milestone-desc,
.process-page-test2 .milestone-block--03 .milestone-desc,
.process-page-test2 .milestone-block--04 .milestone-desc,
.process-page-test2 .milestone-block--05 .milestone-desc {
  font-family: var(--body-font), sans-serif !important;
  font-size: clamp(0.96rem, 1.08vw, 1.04rem) !important;
  font-weight: 400;
  line-height: 1.6 !important;
  color: #55574e;
  margin: 0;
  max-width: 100% !important;
  text-align: left !important;
}

p.milestone-desc__first {
  display: block;
  text-align: left !important;
  margin: 0 0 0.15rem !important;
}

p.milestone-desc__rest {
  display: block;
  text-align: left !important;
  margin: 0 !important;
}

/* 5. Illustrations & Media — Aligned Flush to Left (Rows 02, 04) and Right (Rows 01, 03, 05) */
.milestone-media {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.milestone-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.milestone-media--mound,
.process-page-test2 .milestone-media--mound {
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

.milestone-media--mound img,
.process-page-test2 .milestone-media--mound img {
  width: 100%;
  max-width: 680px;
  max-height: 360px;
  object-position: right center;
}

.milestone-media--plan,
.process-page-test2 .milestone-media--plan {
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
}

.milestone-media--plan img,
.process-page-test2 .milestone-media--plan img {
  width: 100%;
  max-width: 620px;
  max-height: 340px;
  object-position: left center;
}

.milestone-media--school,
.process-page-test2 .milestone-media--school {
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

.milestone-media--school img,
.process-page-test2 .milestone-media--school img {
  width: 100%;
  max-width: 620px;
  max-height: 380px;
  object-position: right center;
}

.milestone-media--planter,
.process-page-test2 .milestone-media--planter {
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
}

.milestone-media--planter img,
.process-page-test2 .milestone-media--planter img {
  width: 100%;
  max-width: 560px;
  max-height: 360px;
  border-radius: 6px;
  object-fit: cover;
  object-position: left center;
}

.milestone-media--skyline,
.milestone-media--deliver-slider,
.process-page-test2 .milestone-media--skyline,
.process-page-test2 .milestone-media--deliver-slider {
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

.milestone-media--skyline img,
.deliver-slide,
.process-page-test2 .milestone-media--skyline img,
.process-page-test2 .deliver-slide {
  max-height: 350px !important;
  border-radius: 6px;
}

/* Stage 05 Deliver Gallery Slider */
.deliver-slides {
  display: grid;
  grid-template-areas: "deliver-slide";
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.deliver-slide {
  grid-area: deliver-slide;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.deliver-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.deliver-dots {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 4;
  background: rgba(17, 17, 17, 0.45);
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.deliver-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s ease;
}

.deliver-dot.is-active {
  width: 18px;
  background: var(--yellow, #f6b800);
}

/* 7. Connectors — Arrow Images Sized & Positioned to Bridge Each Step Transition (01->02, 02->03, 03->04, 04->05) */
.milestone-connector {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.milestone-connector svg,
.milestone-connector img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  overflow: visible;
}

/* 01 (Left) -> 02 (Right): Arrowhead centered at middle of page (x = 50%) */
.connector-01-to-02 {
  top: calc(100% + 10px);
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translateX(-86.4%);
  width: clamp(118px, 10.2vw, 145px);
  height: clamp(86px, 7.5vw, 108px);
}

/* 02 (Right) -> 03 (Left): Arrowhead centered at middle of page (x = 50%) */
.connector-02-to-03 {
  top: auto;
  right: auto;
  bottom: calc(-1 * clamp(4rem, 6.2vw, 5.25rem));
  left: 50%;
  transform: translateX(-8.75%);
  width: clamp(135px, 12vw, 172px);
  height: clamp(92px, 8.2vw, 118px);
}

/* 03 (Left) -> 04 (Right): Arrowhead centered at middle of page (x = 50%) */
.connector-03-to-04 {
  top: auto;
  right: auto;
  bottom: calc(-1 * clamp(1.25rem, 2.2vw, 2rem));
  left: 50%;
  transform: translateX(-86.4%);
  width: clamp(120px, 10.5vw, 150px);
  height: clamp(110px, 9.5vw, 136px);
}

/* 04 (Right) -> 05 (Left): Arrowhead centered at middle of page (x = 50%) */
.connector-04-to-05 {
  top: auto;
  right: auto;
  bottom: calc(-1 * clamp(3.75rem, 5.8vw, 5rem));
  left: 50%;
  transform: translateX(-6.06%);
  width: clamp(140px, 12.5vw, 178px);
  height: clamp(112px, 9.8vw, 138px);
}

/* 8. Responsive Breakpoints */
@media (max-width: 1120px) {
  .milestone-connector {
    display: none;
  }
  .process-ruby-header__script {
    margin-left: clamp(3rem, 8vw, 6rem);
  }
}

@media (max-width: 980px) {
  .process-ruby-shell {
    width: min(calc(100% - 2.5rem), var(--max, 1240px));
  }

  .process-ruby-header {
    margin-bottom: 1.25rem;
  }

  .process-ruby-header__script {
    margin-left: 2rem;
    margin-bottom: 0;
  }

  .process-row,
  .process-row--01,
  .process-row--02,
  .process-row--03,
  .process-row--04,
  .process-row--05 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.05rem;
  }

  .process-full-line {
    display: none;
  }

  .milestone-block--01,
  .milestone-block--02,
  .milestone-block--03,
  .milestone-block--04,
  .milestone-block--05 {
    margin-top: 0;
  }

  .milestone-block--01 .milestone-desc,
  .milestone-block--02 .milestone-desc,
  .milestone-block--03 .milestone-desc,
  .milestone-block--04 .milestone-desc,
  .milestone-block--05 .milestone-desc {
    max-width: 100%;
  }

  .process-row--02 .process-col--media,
  .process-row--04 .process-col--media {
    order: 2;
  }

  .process-row--02 .process-col--text,
  .process-row--04 .process-col--text {
    order: 1;
  }

  .milestone-connector {
    display: none;
  }

  .milestone-media,
  .milestone-media img {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .process-cta-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .process-page-ruby {
    --process-sticky-gap: 10px;
  }

  .process-ruby-shell {
    width: min(calc(100% - 2rem), var(--max, 1240px));
  }

  .stepper-nav-bar {
    padding: 0.35rem 0.5rem;
  }

  .stepper-btn {
    padding: 0.35rem 0.8rem 0.35rem 0.35rem;
    font-size: 0.75rem;
    gap: 0.45rem;
  }

  .stepper-btn__avatar {
    width: 28px;
    height: 28px;
  }

  .process-ruby-header__script {
    margin-left: 1rem;
    width: min(240px, calc(100% - 1rem));
  }

  .milestone-badge {
    width: 52px;
    height: 48px;
  }

  .milestone-badge .badge-num {
    font-size: 0.92rem;
  }

  .milestone-body {
    padding-left: 48px;
    padding-top: 38px;
  }

  .milestone-title {
    margin-bottom: 1.45rem;
  }

  .milestone-desc__rest {
    text-align: left;
  }

  .process-cta-wrap {
    justify-content: center;
  }
}

/* ==========================================================================
   Large Screen & 1920x1200 Display Enhancements for Process
   ========================================================================== */
@media (min-width: 1400px) {
  .process-concept-bar__inner,
  .process-stages-wrap,
  .process-interactive-wrap,
  .process-milestones-wrap {
    max-width: var(--max, 1440px);
  }
  .milestone-row {
    padding-block: 1.75rem;
  }
  .milestone-title {
    font-size: clamp(1.65rem, 2.2vw, 2.15rem) !important;
  }
  .milestone-media--mound img,
  .process-page-test2 .milestone-media--mound img {
    max-width: 780px;
    max-height: 410px;
  }
  .milestone-media--plan img,
  .process-page-test2 .milestone-media--plan img {
    max-width: 720px;
    max-height: 390px;
  }
  .milestone-media--school img,
  .process-page-test2 .milestone-media--school img {
    max-width: 720px;
    max-height: 430px;
  }
  .milestone-media--planter img,
  .process-page-test2 .milestone-media--planter img {
    max-width: 660px;
    max-height: 410px;
  }
  .milestone-media--skyline,
  .milestone-media--deliver-slider,
  .process-page-test2 .milestone-media--skyline,
  .process-page-test2 .milestone-media--deliver-slider {
    max-width: 740px;
  }
  .milestone-media--skyline img,
  .deliver-slide,
  .process-page-test2 .milestone-media--skyline img,
  .process-page-test2 .deliver-slide {
    max-height: 400px !important;
  }
}

@media (min-width: 1800px) {
  .process-concept-bar__inner,
  .process-stages-wrap,
  .process-interactive-wrap,
  .process-milestones-wrap,
  .process-ruby-shell {
    max-width: var(--max, 1820px);
  }
  .milestone-row {
    padding-block: 2rem;
  }
  .milestone-title {
    font-size: clamp(1.75rem, 2.2vw, 2.25rem) !important;
  }
  .process-ruby-header__title {
    font-size: clamp(1.75rem, 2.2vw, 2.25rem) !important;
  }
  .milestone-media--mound img,
  .process-page-test2 .milestone-media--mound img {
    max-width: 920px;
    max-height: 460px;
  }
  .milestone-media--plan img,
  .process-page-test2 .milestone-media--plan img {
    max-width: 840px;
    max-height: 440px;
  }
  .milestone-media--school img,
  .process-page-test2 .milestone-media--school img {
    max-width: 840px;
    max-height: 480px;
  }
  .milestone-media--planter img,
  .process-page-test2 .milestone-media--planter img {
    max-width: 780px;
    max-height: 460px;
  }
  .milestone-media--skyline,
  .milestone-media--deliver-slider,
  .process-page-test2 .milestone-media--skyline,
  .process-page-test2 .milestone-media--deliver-slider {
    max-width: 880px;
  }
  .milestone-media--skyline img,
  .deliver-slide,
  .process-page-test2 .milestone-media--skyline img,
  .process-page-test2 .deliver-slide {
    max-height: 450px !important;
  }
}

@media (max-width: 980px) {
  .process-page-test2 .process-row--01,
  .process-page-test2 .process-row--02,
  .process-page-test2 .process-row--03,
  .process-page-test2 .process-row--04,
  .process-page-test2 .process-row--05 {
    grid-template-columns: 1fr;
  }
}
