.portal-growth-journey {
  --growth-active: 0;
  --growth-progress: .2;
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 8% 8%, rgba(223, 195, 155, .28), transparent 25rem),
    radial-gradient(circle at 92% 42%, rgba(185, 187, 168, .28), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(247, 244, 236, .86));
}

.portal-growth-journey::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 55, 37, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 55, 37, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.portal-growth-journey > * {
  position: relative;
  z-index: 1;
}

.portal-growth-journey .portal-section-head {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.portal-growth-journey .portal-section-head h2 {
  max-width: 12ch;
}

.portal-growth-nav {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 26px;
  padding: 9px;
  border: 1px solid rgba(33, 55, 37, .12);
  border-radius: 999px;
  background: rgba(251, 250, 246, .82);
  box-shadow: 0 16px 40px rgba(20, 28, 20, .08);
  backdrop-filter: blur(18px) saturate(1.08);
}

.portal-growth-nav button {
  position: relative;
  min-width: 0;
  min-height: 46px;
  padding: 8px 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #667066;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.portal-growth-nav button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--portal-green), var(--portal-green-2));
  opacity: 0;
  transform: scale(.88);
  transition: opacity 220ms ease, transform 220ms ease;
}

.portal-growth-nav button:hover,
.portal-growth-nav button:focus-visible {
  color: var(--portal-green);
  background: rgba(33, 55, 37, .07);
}

.portal-growth-nav button.is-active,
.portal-growth-nav button[aria-current="step"] {
  color: #fff;
  background: transparent;
  transform: translateY(-1px);
}

.portal-growth-nav button.is-active::before,
.portal-growth-nav button[aria-current="step"]::before {
  opacity: 1;
  transform: scale(1);
}

.portal-growth-layout {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(440px, 1.08fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.portal-growth-visual-shell {
  position: sticky;
  top: 158px;
  min-width: 0;
}

.portal-growth-stage {
  position: relative;
  min-height: min(67vh, 650px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: clamp(30px, 4vw, 52px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(223, 195, 155, .2), transparent 19rem),
    radial-gradient(circle at 82% 78%, rgba(123, 171, 136, .19), transparent 22rem),
    linear-gradient(145deg, #101b13, #1b3b25 58%, #102419);
  box-shadow: 0 34px 90px rgba(16, 30, 20, .2);
}

.portal-growth-stage::after {
  content: counter(growth-phase, decimal-leading-zero);
  position: absolute;
  top: clamp(18px, 4vw, 38px);
  right: clamp(20px, 4vw, 42px);
  z-index: 3;
  color: rgba(255, 255, 255, .12);
  font-family: var(--portal-serif);
  font-size: clamp(5rem, 12vw, 9.5rem);
  line-height: .8;
  letter-spacing: -.08em;
  pointer-events: none;
}

.portal-growth-stage-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000, transparent 80%);
}

.portal-growth-stage-orb {
  position: absolute;
  z-index: 0;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(8px);
  opacity: .22;
  pointer-events: none;
}

.portal-growth-stage-orb-one {
  top: -90px;
  left: -70px;
  background: radial-gradient(circle, #dfc39b, transparent 68%);
  animation: growth-orb-one 10s ease-in-out infinite alternate;
}

.portal-growth-stage-orb-two {
  right: -90px;
  bottom: -90px;
  background: radial-gradient(circle, #90be9d, transparent 68%);
  animation: growth-orb-two 12s ease-in-out infinite alternate;
}

.portal-growth-scene {
  position: absolute;
  inset: 36px 24px 108px;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(.96);
  pointer-events: none;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.portal-growth-scene.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.portal-growth-scene svg {
  display: block;
  width: min(100%, 630px);
  max-height: min(54vh, 520px);
  overflow: visible;
}

.scene-panel {
  fill: rgba(247, 244, 236, .09);
  stroke: rgba(255, 255, 255, .21);
  stroke-width: 2;
}

.scene-paper,
.scene-floating-card,
.scene-node {
  fill: rgba(247, 244, 236, .96);
  stroke: rgba(223, 195, 155, .48);
  stroke-width: 2;
}

.scene-floating-card {
  filter: drop-shadow(0 18px 18px rgba(3, 13, 7, .24));
}

.scene-heading,
.scene-button,
.scene-success,
.scene-chart-one {
  fill: #dfc39b;
}

.scene-address,
.scene-chart-two,
.scene-language-one {
  fill: #9ec6a9;
}

.scene-line,
.scene-divider,
.scene-orbit,
.phase-growth-network-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, .42);
  stroke-width: 2;
}

.scene-divider {
  stroke: rgba(255, 255, 255, .16);
}

.scene-dot {
  fill: rgba(223, 195, 155, .9);
}

.scene-mark,
.scene-pencil-path,
.scene-mail,
.scene-lock-line,
.scene-cart,
.scene-success-mark,
.scene-growth-arrow,
.scene-person-line {
  fill: none;
  stroke: #173824;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-pencil-path,
.scene-flow-line,
.scene-orbit,
.phase-growth-network-lines path {
  stroke-dasharray: 9 12;
}

.scene-pencil-dot,
.scene-flow-pulse,
.scene-network-pulse {
  fill: #dfc39b;
}

.scene-swatch-one { fill: #173824; }
.scene-swatch-two { fill: #dfc39b; }
.scene-swatch-three { fill: #b9bba8; }
.scene-swatch-four { fill: #f7f4ec; }
.scene-swatch { stroke: rgba(255, 255, 255, .24); stroke-width: 2; }

.scene-phone {
  fill: #10130f;
  stroke: rgba(255, 255, 255, .26);
  stroke-width: 3;
  filter: drop-shadow(0 24px 24px rgba(3, 13, 7, .3));
}

.scene-badge {
  fill: rgba(223, 195, 155, .18);
  stroke: rgba(223, 195, 155, .72);
  stroke-width: 2;
}

.scene-lock {
  fill: #dfc39b;
}

.scene-calendar-pin,
.scene-flow-line {
  fill: none;
  stroke: #dfc39b;
  stroke-width: 8;
  stroke-linecap: round;
}

.scene-calendar-days circle {
  fill: rgba(255, 255, 255, .22);
}

.scene-calendar-days .is-selected {
  fill: #dfc39b;
}

.scene-cart-wheel,
.scene-chart-three,
.scene-language-two {
  fill: #173824;
}

.scene-success-mark {
  stroke: #173824;
  stroke-width: 6;
}

.scene-chart {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.scene-content-image {
  fill: url(#content-gradient);
  fill: #9ec6a9;
}

.scene-orbit {
  stroke: rgba(223, 195, 155, .42);
}

.scene-orbit-small {
  stroke: rgba(255, 255, 255, .2);
}

.scene-language {
  stroke: rgba(255, 255, 255, .3);
  stroke-width: 2;
}

.scene-language-three { fill: #f7f4ec; }

.phase-growth-network-lines path {
  stroke: rgba(223, 195, 155, .42);
  stroke-width: 3;
}

.scene-person {
  fill: #173824;
}

.scene-person-line {
  stroke-width: 7;
}

.portal-growth-stage-caption {
  position: absolute;
  right: clamp(22px, 4vw, 42px);
  bottom: 40px;
  left: clamp(22px, 4vw, 42px);
  z-index: 4;
  display: grid;
  gap: 5px;
}

.portal-growth-stage-caption span {
  color: var(--portal-sand);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.portal-growth-stage-caption strong {
  max-width: 17ch;
  color: #fffdf7;
  font-family: var(--portal-serif);
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.portal-growth-stage-progress {
  position: absolute;
  right: 42px;
  bottom: 18px;
  left: 42px;
  z-index: 5;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
}

.portal-growth-stage-progress span {
  display: block;
  width: calc(var(--growth-progress) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dfc39b, #9ec6a9);
  transition: width 420ms cubic-bezier(.2, .8, .2, 1);
}

.portal-growth-steps {
  display: grid;
  gap: 20px;
  counter-reset: growth-card;
  padding-bottom: 8vh;
}

.portal-growth-card {
  position: relative;
  display: grid;
  gap: 0;
  min-height: 240px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(33, 55, 37, .11);
  border-radius: 32px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 14px 34px rgba(20, 28, 20, .05);
  opacity: .62;
  transform: translate3d(0, 0, 0) scale(.985);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
  scroll-margin-top: 160px;
}

.portal-growth-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #dfc39b, #9ec6a9);
  opacity: 0;
  transform: scaleY(.35);
  transform-origin: center;
  transition: opacity 260ms ease, transform 360ms ease;
}

.portal-growth-card::after {
  content: attr(data-phase-number);
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(33, 55, 37, .07);
  font-family: var(--portal-serif);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

.portal-growth-card:hover,
.portal-growth-card:focus-within,
.portal-growth-card.is-active {
  opacity: 1;
  transform: translate3d(0, -2px, 0) scale(1);
  border-color: rgba(33, 55, 37, .2);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 70px rgba(20, 28, 20, .11);
}

.portal-growth-card.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.portal-growth-card .portal-phase-label {
  position: relative;
  z-index: 1;
}

.portal-growth-card h3 {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 14px 0 10px;
  color: var(--portal-green);
  font-family: var(--portal-serif);
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}

.portal-growth-card .portal-phase-summary {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: 0 0 14px;
  color: #82683d;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1.45;
}

.portal-growth-card .portal-phase-description {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 0;
  color: var(--portal-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.portal-growth-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 420ms cubic-bezier(.2, .8, .2, 1), opacity 260ms ease;
}

.portal-growth-card.is-active .portal-growth-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.portal-growth-details-inner {
  min-height: 0;
  overflow: hidden;
}

.portal-growth-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.portal-growth-feature-list li {
  position: relative;
  padding-inline-start: 25px;
  color: #4f5a50;
  font-size: .95rem;
  line-height: 1.45;
}

.portal-growth-feature-list li::before {
  content: "";
  position: absolute;
  top: .44em;
  inset-inline-start: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dfc39b, #9ec6a9);
  box-shadow: 0 0 0 4px rgba(223, 195, 155, .16);
}

.portal-growth-card .portal-package-cta {
  width: fit-content;
  margin-top: 26px;
}

.portal-growth-card.is-active .portal-package-cta {
  color: #fff;
  background: var(--portal-green);
}

.portal-growth-card-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(33, 55, 37, .15);
  border-radius: 999px;
  color: var(--portal-green);
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.portal-growth-card-toggle span {
  display: block;
  transition: transform 220ms ease;
}

.portal-growth-card.is-active .portal-growth-card-toggle span {
  transform: rotate(45deg);
}

.portal-growth-scene.is-active .phase-brand-board {
  animation: phase-enter 620ms cubic-bezier(.2, .8, .2, 1) both;
}

.portal-growth-scene.is-active .scene-swatch {
  transform-box: fill-box;
  transform-origin: center;
  animation: brand-swatch 4.8s ease-in-out infinite;
}

.portal-growth-scene.is-active .scene-swatch-two { animation-delay: -.8s; }
.portal-growth-scene.is-active .scene-swatch-three { animation-delay: -1.6s; }
.portal-growth-scene.is-active .scene-swatch-four { animation-delay: -2.4s; }

.portal-growth-scene.is-active .scene-pencil-path,
.portal-growth-scene.is-active .scene-flow-line,
.portal-growth-scene.is-active .scene-orbit,
.portal-growth-scene.is-active .phase-growth-network-lines path {
  animation: growth-line-flow 10s linear infinite;
}

.portal-growth-scene.is-active .phase-online-phone {
  transform-origin: center;
  animation: online-phone-float 5s ease-in-out infinite;
}

.portal-growth-scene.is-active .phase-online-mail,
.portal-growth-scene.is-active .phase-online-lock {
  transform-origin: center;
  animation: online-chip-float 5.6s ease-in-out infinite;
}

.portal-growth-scene.is-active .phase-online-lock { animation-delay: -2.2s; }

.portal-growth-scene.is-active .scene-flow-pulse,
.portal-growth-scene.is-active .scene-network-pulse {
  animation: system-pulse 2.4s ease-in-out infinite;
}

.portal-growth-scene.is-active .scene-flow-pulse-two,
.portal-growth-scene.is-active .scene-network-pulse-two { animation-delay: -.8s; }
.portal-growth-scene.is-active .scene-flow-pulse-three,
.portal-growth-scene.is-active .scene-network-pulse-three { animation-delay: -1.6s; }
.portal-growth-scene.is-active .scene-network-pulse-four { animation-delay: -2.1s; }

.portal-growth-scene.is-active .scene-chart-one { animation: chart-rise 3.8s ease-in-out infinite; }
.portal-growth-scene.is-active .scene-chart-two { animation: chart-rise 3.8s ease-in-out -1.1s infinite; }
.portal-growth-scene.is-active .scene-chart-three { animation: chart-rise 3.8s ease-in-out -2.2s infinite; }

.portal-growth-scene.is-active .phase-content-card,
.portal-growth-scene.is-active .phase-content-languages {
  transform-origin: center;
  animation: content-float 6s ease-in-out infinite;
}

.portal-growth-scene.is-active .phase-content-card-two { animation-delay: -2s; }
.portal-growth-scene.is-active .phase-content-card-three { animation-delay: -4s; }
.portal-growth-scene.is-active .phase-content-languages { animation-delay: -1.2s; }

.portal-growth-scene.is-active .phase-growth-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: network-breathe 4.8s ease-in-out infinite;
}

.portal-growth-scene.is-active .phase-growth-node-two { animation-delay: -.8s; }
.portal-growth-scene.is-active .phase-growth-node-three { animation-delay: -1.6s; }
.portal-growth-scene.is-active .phase-growth-node-four { animation-delay: -2.4s; }
.portal-growth-scene.is-active .phase-growth-node-five { animation-delay: -3.2s; }
.portal-growth-scene.is-active .phase-growth-node-six { animation-delay: -4s; }

@keyframes phase-enter {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes growth-orb-one {
  to { transform: translate3d(48px, 34px, 0) scale(1.12); }
}

@keyframes growth-orb-two {
  to { transform: translate3d(-42px, -30px, 0) scale(.92); }
}

@keyframes brand-swatch {
  50% { transform: translateY(-7px) scale(1.06); }
}

@keyframes growth-line-flow {
  to { stroke-dashoffset: -84; }
}

@keyframes online-phone-float {
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes online-chip-float {
  50% { transform: translateY(-7px); }
}

@keyframes system-pulse {
  50% { opacity: .35; transform: scale(1.5); }
}

@keyframes chart-rise {
  50% { transform: scaleY(.72); }
}

@keyframes content-float {
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes network-breathe {
  50% { transform: scale(1.08); }
}

@media (max-width: 1100px) {
  .portal-growth-layout {
    grid-template-columns: minmax(320px, .82fr) minmax(390px, 1.18fr);
    gap: 34px;
  }

  .portal-growth-feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .portal-growth-journey {
    padding-inline: 18px;
  }

  .portal-growth-nav {
    top: 72px;
    display: flex;
    gap: 8px;
    margin-right: -18px;
    margin-left: -18px;
    padding: 9px 18px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .portal-growth-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-growth-nav button {
    flex: 0 0 auto;
    min-width: 120px;
    scroll-snap-align: center;
  }

  .portal-growth-layout {
    display: block;
  }

  .portal-growth-visual-shell {
    position: relative;
    top: auto;
    margin-bottom: 24px;
  }

  .portal-growth-stage {
    min-height: 430px;
    border-radius: 32px;
  }

  .portal-growth-scene {
    inset: 18px 8px 98px;
  }

  .portal-growth-scene svg {
    max-height: 330px;
  }

  .portal-growth-stage::after {
    font-size: 5.7rem;
  }

  .portal-growth-stage-caption {
    right: 24px;
    bottom: 32px;
    left: 24px;
  }

  .portal-growth-stage-caption strong {
    font-size: 1.65rem;
  }

  .portal-growth-stage-progress {
    right: 24px;
    bottom: 14px;
    left: 24px;
  }

  .portal-growth-steps {
    gap: 14px;
    padding-bottom: 32px;
  }

  .portal-growth-card {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 26px;
    opacity: 1;
    transform: none;
    scroll-margin-top: 138px;
  }

  .portal-growth-card::after {
    top: 16px;
    right: 72px;
    font-size: 4.3rem;
  }

  .portal-growth-card-toggle {
    display: grid;
  }

  .portal-growth-card h3 {
    max-width: calc(100% - 56px);
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .portal-growth-card .portal-phase-summary,
  .portal-growth-card .portal-phase-description {
    max-width: calc(100% - 28px);
  }

  .portal-growth-feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .portal-growth-stage {
    min-height: 380px;
  }

  .portal-growth-scene svg {
    width: 112%;
    max-width: none;
  }

  .portal-growth-nav button {
    min-width: 104px;
    font-size: .7rem;
  }

  .portal-growth-card {
    padding: 22px 18px;
  }

  .portal-growth-card-toggle {
    top: 18px;
    right: 18px;
  }

  .portal-growth-card h3 {
    font-size: 2.15rem;
  }
}

html[dir="rtl"] .portal-growth-card::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .portal-growth-card::after {
  right: auto;
  left: 24px;
}

html[dir="rtl"] .portal-growth-card-toggle {
  right: auto;
  left: 24px;
}

html[dir="rtl"] .portal-growth-card h3,
html[dir="rtl"] .portal-growth-card .portal-phase-summary,
html[dir="rtl"] .portal-growth-card .portal-phase-description {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .portal-growth-stage-orb,
  .portal-growth-scene.is-active *,
  .portal-growth-nav button,
  .portal-growth-nav button::before,
  .portal-growth-card,
  .portal-growth-card::before,
  .portal-growth-details,
  .portal-growth-card-toggle span,
  .portal-growth-stage-progress span {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
