/* Workflow chapter: a connected process with restrained watercolor depth. */
#thinking.workflow-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 26%, rgba(207, 224, 244, .5), transparent 30%),
    radial-gradient(circle at 84% 76%, rgba(222, 213, 235, .34), transparent 32%),
    linear-gradient(145deg, rgba(241, 247, 250, .92), rgba(248, 247, 242, .92));
}

#thinking.workflow-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58vw;
  height: 58vw;
  right: -24vw;
  top: -20vw;
  border: 1px solid rgba(71, 103, 158, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(95, 124, 173, .025), 0 0 0 150px rgba(95, 124, 173, .018);
}

#thinking .workflow-heading p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.85;
}

#thinking .workflow-portals {
  position: relative;
  gap: 0;
  padding-top: 0;
  border: 0 !important;
  border-top: 1px solid rgba(65, 101, 165, .2) !important;
  border-bottom: 1px solid rgba(65, 101, 165, .14) !important;
  background: transparent !important;
  box-shadow: none !important;
}

#thinking .workflow-portals::before {
  display: none;
}

#thinking .workflow-portals > :is(button, a) {
  --portal-accent: 77, 116, 177;
  position: relative;
  min-height: 242px;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 0 !important;
  border-right: 1px solid rgba(65, 101, 165, .13) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: color .28s ease, padding-left .35s cubic-bezier(.22,1,.36,1), background .28s ease;
}

#thinking .workflow-portals > :is(button, a):last-child { border-right: 0 !important; }

#thinking .workflow-portals > :is(button, a):nth-child(2) { --portal-accent: 89, 123, 180; }
#thinking .workflow-portals > :is(button, a):nth-child(3) { --portal-accent: 104, 122, 174; }
#thinking .workflow-portals > :is(button, a):nth-child(4) { --portal-accent: 121, 113, 165; }
#thinking .workflow-portals > :is(button, a):nth-child(5) { --portal-accent: 137, 105, 154; }
#thinking .workflow-portals > :is(button, a):nth-child(6) { --portal-accent: 72, 129, 181; }

#thinking .workflow-portals > :is(button, a)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 28px;
  height: 2px;
  background: rgba(var(--portal-accent), .62);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}

#thinking .workflow-portals > :is(button, a)::after {
  display: none;
}

#thinking .workflow-portals > :is(button, a):hover,
#thinking .workflow-portals > :is(button, a):focus-visible {
  z-index: 2;
  padding-left: 30px;
  background: linear-gradient(180deg, rgba(var(--portal-accent), .055), transparent 86%) !important;
  box-shadow: none !important;
}

#thinking .workflow-portals > :is(button, a):hover::before,
#thinking .workflow-portals > :is(button, a):focus-visible::before { transform: scaleX(1); }

#thinking .workflow-portals > :is(button, a):focus-visible {
  outline: 2px solid rgba(var(--portal-accent), .46);
  outline-offset: -2px;
}

#thinking .workflow-portals small {
  position: relative;
  z-index: 1;
  color: rgba(var(--portal-accent), .92);
  letter-spacing: .13em;
}

#thinking .workflow-portals strong {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  font-size: clamp(30px, 2.7vw, 38px);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

#thinking .workflow-portals > :is(button, a):hover strong,
#thinking .workflow-portals > :is(button, a):focus-visible strong { transform: translateX(2px); }

#thinking .workflow-portals span {
  position: relative;
  z-index: 1;
  max-width: 14em;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
}

#thinking .workflow-portals i {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: color .25s ease, border-color .25s ease, transform .3s ease;
}

#thinking .workflow-portals > :is(button, a):hover i,
#thinking .workflow-portals > :is(button, a):focus-visible i {
  color: rgb(var(--portal-accent));
  border-color: rgba(var(--portal-accent), .4);
  transform: translateX(3px);
}

@media (max-width: 760px) {
  #thinking .workflow-portals {
    gap: 10px;
    padding-top: 0;
    border-bottom: 0 !important;
  }
  #thinking .workflow-portals::before { display: none; }
  #thinking .workflow-portals > :is(button, a) {
    min-height: 168px;
    padding: 22px 4px;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(65, 101, 165, .13) !important;
    border-radius: 0;
  }
  #thinking .workflow-portals > :is(button, a):hover,
  #thinking .workflow-portals > :is(button, a):focus-visible { padding-left: 10px; }
  #thinking .workflow-portals > :is(button, a)::before { left: 4px; }
  #thinking .workflow-portals > :is(button, a)::after {
    right: 14px;
    bottom: -10px;
    font-size: 72px;
  }
  #thinking .workflow-portals strong { margin-top: 18px; }
  #thinking .workflow-portals span { margin-top: 8px; }
  #thinking .workflow-portals i { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #thinking .workflow-portals > :is(button, a),
  #thinking .workflow-portals strong,
  #thinking .workflow-portals i { transition: none; }
}
