/* Current request QA fixes — brand title, centered section headings, right-panel qualification, carousel icon accents, mobile process map cleanup. */

/* Homepage brand title: restore WEBJECTPRO as the visual brand while keeping the Mattia Corona byline. */
.home-hero .hero-text h1.hero-brand {
  text-align: center !important;
  width: 100% !important;
  max-width: min(100%, 1080px) !important;
  margin-inline: auto !important;
}

.home-hero .brand-label,
.home-hero .hero-text--widget .brand-label {
  font-size: clamp(2.4rem, 5.35vw, 4.9rem) !important;
  line-height: 0.92 !important;
  letter-spacing: 0.105em !important;
  text-indent: 0.105em !important;
  white-space: nowrap !important;
  text-align: center !important;
  justify-content: center !important;
  max-width: 100% !important;
}

.home-hero .brand-label .brand-letter,
.home-hero .hero-brand .brand-letter {
  margin-inline: 0.006em !important;
}

.home-hero .hero-radial-widget__label {
  letter-spacing: 0.14em !important;
}

@media (max-width: 760px) {
  .home-hero .brand-label,
  .home-hero .hero-text--widget .brand-label {
    font-size: clamp(1.55rem, 10.6vw, 2.75rem) !important;
    letter-spacing: 0.055em !important;
    text-indent: 0.055em !important;
  }
}

@media (max-width: 420px) {
  .home-hero .brand-label,
  .home-hero .hero-text--widget .brand-label {
    font-size: clamp(1.34rem, 10.4vw, 2.15rem) !important;
    letter-spacing: 0.045em !important;
    text-indent: 0.045em !important;
  }
}

/* Center the large glass heading panels shown in Process and Contact. */
.process-hero .hero-overlay,
.contact-hero__shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.process-hero .hero-text,
.contact-hero__shell > * {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.process-hero .hero-text h1,
.process-hero .hero-text p,
.contact-hero__shell h1,
.contact-hero__shell p,
.contact-hero__shell .contact-kicker {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.contact-hero__shell h1 {
  width: 100% !important;
}

/* About: the qualification reference belongs inside the right profile panel, not in the left bio flow. */
.about-scene .about-support-grid {
  grid-template-columns: 1fr !important;
}

.about-scene .about-support-grid .mini-callout {
  min-height: 0 !important;
}

.about-scene .about-side .signal-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(0.85rem, 1.35vw, 1.1rem) !important;
  align-content: start !important;
}

.about-scene .about-side-reference {
  --icon-accent-rgb: var(--wp-icon-gold, 255, 182, 46);
  width: 100% !important;
  min-height: 0 !important;
  padding: clamp(0.95rem, 1.45vw, 1.2rem) !important;
  border-radius: clamp(18px, 1.8vw, 24px) !important;
  border: 1px solid rgba(var(--icon-accent-rgb), 0.28) !important;
  background:
    radial-gradient(circle at 12% 14%, rgba(var(--icon-accent-rgb), 0.16), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03) 52%, rgba(var(--icon-accent-rgb), 0.035)) !important;
  box-shadow:
    0 16px 36px rgba(0,0,0,0.24),
    0 0 28px rgba(var(--icon-accent-rgb), 0.08),
    inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.about-scene .about-side-reference .mini-callout__label {
  color: rgb(var(--icon-accent-rgb)) !important;
  letter-spacing: 0.1em !important;
}

.about-scene .about-side-reference .reference-list {
  margin: 0.7rem 0 0 1rem !important;
  padding: 0 !important;
}

.about-scene .about-side-reference .reference-list li {
  margin: 0.35rem 0 !important;
  color: rgba(247,242,232,0.82) !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1100px) {
  .about-scene .about-side-reference {
    padding: 1rem !important;
  }
}

/* Work-vibes carousel: use deliberate, content-specific colour accents instead of one cyan treatment. */
.about-scene .work-vibes-track .vibe-card {
  --icon-accent-rgb: var(--wp-icon-cyan, 68, 217, 255);
  --vibe-card-accent: rgb(var(--icon-accent-rgb));
  border-color: rgba(var(--icon-accent-rgb), 0.22) !important;
  background:
    radial-gradient(circle at 16% 12%, rgba(var(--icon-accent-rgb), 0.12), transparent 34%),
    linear-gradient(180deg, rgba(42,48,57,0.92), rgba(22,27,35,0.94)) !important;
}

.about-scene .work-vibes-track .vibe-card:nth-child(12n + 1) { --icon-accent-rgb: var(--wp-icon-blue, 47, 133, 255); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 2) { --icon-accent-rgb: var(--wp-icon-green, 87, 223, 120); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 3) { --icon-accent-rgb: var(--wp-icon-orange, 255, 139, 50); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 4) { --icon-accent-rgb: var(--wp-icon-gold, 255, 182, 46); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 5) { --icon-accent-rgb: var(--wp-icon-purple, 150, 87, 255); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 6) { --icon-accent-rgb: var(--wp-icon-lime, 200, 239, 68); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 7) { --icon-accent-rgb: var(--wp-icon-red, 255, 78, 94); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 8) { --icon-accent-rgb: var(--wp-icon-teal, 46, 208, 187); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 9) { --icon-accent-rgb: var(--wp-icon-cyan, 68, 217, 255); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 10) { --icon-accent-rgb: var(--wp-icon-purple, 150, 87, 255); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n + 11) { --icon-accent-rgb: var(--wp-icon-green, 87, 223, 120); }
.about-scene .work-vibes-track .vibe-card:nth-child(12n) { --icon-accent-rgb: var(--wp-icon-gold, 255, 182, 46); }

.about-scene .work-vibes-track .vibe-card.is-active {
  border-color: rgba(var(--icon-accent-rgb), 0.42) !important;
  box-shadow:
    0 24px 44px rgba(0,0,0,0.28),
    0 0 34px rgba(var(--icon-accent-rgb), 0.13),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.about-scene .vibe-card__icon {
  color: rgb(var(--icon-accent-rgb)) !important;
  border-color: rgba(var(--icon-accent-rgb), 0.34) !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.16), transparent 34%),
    radial-gradient(circle at 42% 40%, rgba(var(--icon-accent-rgb), 0.34), transparent 62%),
    linear-gradient(145deg, rgba(var(--icon-accent-rgb), 0.15), rgba(255,255,255,0.035)) !important;
  box-shadow:
    0 0 30px rgba(var(--icon-accent-rgb), 0.18),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}

.about-scene .vibe-card__chip,
.about-scene .vibe-card__meta span {
  border-color: rgba(var(--icon-accent-rgb), 0.23) !important;
  background: rgba(var(--icon-accent-rgb), 0.07) !important;
}

.about-scene .vibe-card__chip {
  color: rgba(247,242,232,0.78) !important;
}

.about-scene .vibe-card__meta span {
  color: rgba(247,242,232,0.84) !important;
}

/* Mobile only: remove duplicate Step map labels/titles from inline detail cards; the step title already appears above. */
@media (max-width: 760px) {
  .process-scene .process-mobile-detail .process-detail__eyebrow,
  .process-scene .process-mobile-detail .process-detail__title {
    display: none !important;
  }

  .process-scene .process-mobile-detail .process-detail {
    gap: 0.75rem !important;
  }

  .process-scene .process-mobile-detail .process-detail__copy {
    margin-top: 0 !important;
  }
}


/* Final request pass: full bio copy, matching mobile process icon colours, and safer step-map scroll endpoint. */
.about-scene .about-lede {
  max-width: 78ch !important;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem) !important;
  line-height: 1.72 !important;
  color: rgba(248, 250, 255, 0.92) !important;
}

/* Give inline mobile process maps the same step-specific colour system used by the desktop right panel. */
.process-scene .process-step[data-step="step1"] { --detail-accent-rgb: var(--wp-icon-blue, 47, 133, 255); }
.process-scene .process-step[data-step="step2"] { --detail-accent-rgb: var(--wp-icon-teal, 46, 208, 187); }
.process-scene .process-step[data-step="step3"] { --detail-accent-rgb: var(--wp-icon-green, 87, 223, 120); }
.process-scene .process-step[data-step="step4"] { --detail-accent-rgb: var(--wp-icon-purple, 150, 87, 255); }
.process-scene .process-step[data-step="step5"] { --detail-accent-rgb: var(--wp-icon-cyan, 68, 217, 255); }
.process-scene .process-step[data-step="step6"] { --detail-accent-rgb: var(--wp-icon-gold, 255, 182, 46); }
.process-scene .process-step[data-step="step7"] { --detail-accent-rgb: var(--wp-icon-orange, 255, 139, 50); }

.process-scene .process-mobile-detail .process-detail,
.process-scene .process-mobile-detail .process-flow,
.process-scene .process-mobile-detail .process-flow__item {
  --mobile-detail-accent-rgb: var(--detail-accent-rgb, var(--wp-icon-cyan, 68, 217, 255));
}

.process-scene .process-mobile-detail .process-flow__icon {
  color: rgb(var(--mobile-detail-accent-rgb)) !important;
  border-color: rgba(var(--mobile-detail-accent-rgb), 0.36) !important;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.15), transparent 34%),
    radial-gradient(circle at 42% 34%, rgba(var(--mobile-detail-accent-rgb), 0.32), transparent 62%),
    linear-gradient(145deg, rgba(var(--mobile-detail-accent-rgb), 0.14), rgba(255,255,255,0.04)) !important;
  box-shadow:
    0 0 28px rgba(var(--mobile-detail-accent-rgb), 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.process-scene .process-mobile-detail .process-flow__arrow {
  color: rgb(var(--mobile-detail-accent-rgb)) !important;
}

.process-scene .process-mobile-detail .process-flow__item {
  border-color: rgba(var(--mobile-detail-accent-rgb), 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 22px rgba(var(--mobile-detail-accent-rgb), 0.045) !important;
}

/* Desktop step details: lower the scroll endpoint so the last step-7 card can be fully reached. */
@media (min-width: 981px) {
  .process-scene .deliverables-panel {
    max-height: min(720px, calc(100svh - 152px)) !important;
    padding-bottom: max(4.6rem, calc(env(safe-area-inset-bottom, 0px) + 4rem)) !important;
    scroll-padding-bottom: 5rem !important;
  }

  .process-scene .process-detail-shell {
    padding-bottom: clamp(3.4rem, 8svh, 5.5rem) !important;
  }

  .process-scene .process-detail {
    padding-bottom: 0.5rem !important;
  }

  .process-scene .process-detail .process-flow {
    padding-bottom: clamp(1.8rem, 4svh, 3.2rem) !important;
  }
}

/* Process right detail panel correction: keep the previous active-step behaviour and only give the sticky map enough scroll room for the final Support card. */
@media (min-width: 981px) {
  .process-scene .deliverables-panel {
    top: clamp(0.75rem, 2svh, 1.2rem) !important;
    max-height: calc(100svh - clamp(2.25rem, 5svh, 3.8rem)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable both-edges;
    padding-bottom: clamp(2.4rem, 7svh, 5rem) !important;
    scroll-padding-bottom: clamp(3.2rem, 9svh, 6rem) !important;
  }

  .process-scene .process-detail-shell {
    min-height: 0 !important;
    padding-bottom: clamp(3.5rem, 9svh, 6.25rem) !important;
  }

  .process-scene .process-flow {
    padding-bottom: clamp(2.6rem, 8svh, 5.5rem) !important;
  }
}

/* Process detail placement fix: keep the right step-detail panel below the sticky 1–7 step bar on desktop. */
@media (min-width: 981px) {
  .process-scene {
    --process-sticky-stepbar-clearance: clamp(9.25rem, 14svh, 10.65rem);
  }

  .process-scene .deliverables-panel {
    position: sticky !important;
    top: var(--process-sticky-stepbar-clearance) !important;
    max-height: calc(100svh - var(--process-sticky-stepbar-clearance) - 1.1rem) !important;
    align-self: start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: clamp(3.75rem, 8svh, 6rem) !important;
    scroll-padding-top: 0.75rem !important;
    scroll-padding-bottom: clamp(4rem, 9svh, 6.25rem) !important;
  }

  .process-scene .process-detail-shell {
    padding-bottom: clamp(4rem, 9svh, 6.5rem) !important;
  }
}
