/* A constellation resolves into a complete, readable project timeline. */
.process-explorer {
  margin-top: 36px;
  overflow-anchor: none;
  --process-link: color-mix(in srgb, var(--muted) 65%, var(--line));
}
.process-rail {
  position: relative;
  display: grid;
  gap: 36px;
  padding: 24px 12px;
  isolation: isolate;
}
.process-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: -1;
}
.process-constellation path {
  fill: none;
  stroke: var(--process-link);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.process-node {
  --phase-accent: var(--purple);
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.process-node:nth-of-type(2) {
  --phase-accent: var(--cyan);
}
.process-node:nth-of-type(3) {
  --phase-accent: var(--pink);
}
#proceso .process-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  min-height: 64px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: 600 15px/1.5 var(--sans);
  translate: none;
  scale: none;
  text-align: left;
}
.process-point {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--phase-accent) 65%, var(--line));
  border-radius: 50%;
  background: var(--panel);
  color: var(--phase-accent);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}
.process-star {
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.process-name {
  display: grid;
  gap: 3px;
}
.process-name small {
  color: var(--phase-accent);
  font: 500 10px/1.4 var(--mono);
}
#proceso .process-trigger[aria-expanded='true'] .process-point {
  border-color: var(--phase-accent);
  background: color-mix(in srgb, var(--phase-accent) 10%, var(--panel));
}
#proceso .process-trigger:focus-visible {
  outline-color: var(--phase-accent);
  outline-offset: 6px;
  border-radius: 8px;
}
@media (hover: hover) and (pointer: fine) {
  #proceso .process-trigger:hover .process-point {
    transform: scale(1.08);
    border-color: var(--phase-accent);
  }
}
.process-explorer.is-ready:not(.is-active) .process-rail {
  height: 340px;
}
.is-ready:not(.is-active) .process-node {
  position: absolute;
  display: block;
  width: 150px;
  left: 18%;
  top: 18%;
}
.is-ready:not(.is-active) .process-node:nth-of-type(2) {
  left: 46%;
  top: 65%;
}
.is-ready:not(.is-active) .process-node:nth-of-type(3) {
  left: 76%;
  top: 24%;
}
.process-panel {
  border-left: 1px solid color-mix(in srgb, var(--phase-accent) 65%, var(--line));
  padding: 12px 0 16px clamp(20px, 3vw, 40px);
}
.process-panel[hidden] {
  display: none;
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px 16px;
}
.process-step + .process-step {
  margin-top: 32px;
}
.process-step > span {
  display: grid;
  place-items: center;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--phase-accent);
  font: 500 10px/1 var(--mono);
}
.process-step h3 {
  margin: 0;
}
.process-step p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
}
html[data-color-mode='light'] .process-explorer {
  --process-link: color-mix(in srgb, var(--muted) 75%, var(--line));
}
@media (max-width: 640px) {
  .process-rail {
    padding-inline: 0;
    gap: 28px;
  }
  .process-explorer.is-ready:not(.is-active) .process-rail {
    height: 320px;
  }
  .is-ready:not(.is-active) .process-node {
    left: 3%;
    top: 10%;
    width: 130px;
  }
  .is-ready:not(.is-active) .process-node:nth-of-type(2) {
    left: 48%;
    top: 44%;
  }
  .is-ready:not(.is-active) .process-node:nth-of-type(3) {
    left: 9%;
    top: 76%;
  }
  .process-node {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #proceso .process-trigger {
    font-size: 13px;
    gap: 12px;
  }
  .process-panel {
    margin-left: 22px;
    padding-left: 24px;
  }
  .process-step {
    gap: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .process-point {
    transition: none;
  }
  #proceso .process-trigger:hover .process-point {
    transform: none;
  }
}

.process-point::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.process-trigger[aria-expanded='true'] .process-point::after {
  animation: process-ring 700ms ease-out;
}
.process-trigger[aria-expanded='true'] .process-point {
  box-shadow: 0 0 24px color-mix(in srgb, var(--phase-accent) 12%, transparent);
}
.process-name {
  transition: color 180ms ease;
}
.process-trigger:is(:hover, :focus-visible) .process-name {
  color: var(--phase-accent);
}
.process-star {
  transform-origin: center;
}
@keyframes process-ring {
  from {
    opacity: 0.65;
    transform: scale(0.75);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .process-trigger[aria-expanded='true'] .process-point::after {
    animation: none;
  }
  .process-name {
    transition: none;
  }
}

/* A focused observatory for the three interactive stages. */
.process-explorer {
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at 50% 55%,
      color-mix(in srgb, var(--purple) 4%, transparent),
      transparent 68%
    ),
    color-mix(in srgb, var(--panel) 25%, transparent);
}
.process-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  color: var(--muted);
  font: 10px/1.6 var(--mono);
}
.process-legend > span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.process-legend p {
  margin: 0;
  font: inherit;
  color: inherit;
}
.process-hint {
  display: none;
}
.is-ready .process-hint {
  display: block;
}
.is-ready:not(.is-active) .process-close-hint,
.is-active .process-open-hint {
  display: none;
}
.process-explorer.is-ready:not(.is-active) .process-rail {
  height: 300px;
}
.process-point {
  flex-basis: 52px;
  height: 52px;
}
.process-point::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  border-top-color: color-mix(in srgb, var(--phase-accent) 40%, transparent);
  border-radius: inherit;
  transform: rotate(-25deg);
  transition: transform 500ms ease;
}
.process-trigger:is(:hover, :focus-visible, [aria-expanded='true']) .process-point::before {
  transform: rotate(65deg);
}
.process-star {
  width: 18px;
  height: 18px;
}
.process-panel {
  border-radius: 0 10px 10px 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--phase-accent) 3%, transparent),
    transparent 70%
  );
}
.process-step > span {
  border-color: color-mix(in srgb, var(--phase-accent) 25%, var(--line));
  background: color-mix(in srgb, var(--panel) 75%, transparent);
}
@media (max-width: 640px) {
  .process-explorer {
    border-radius: 16px;
  }
  .process-legend {
    gap: 5px;
    padding-bottom: 14px;
  }
  .process-legend > span {
    flex-basis: 100%;
  }
  .process-explorer.is-ready:not(.is-active) .process-rail {
    height: 320px;
  }
  .process-point {
    flex-basis: 44px;
    height: 44px;
  }
  .process-star {
    width: 16px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .process-point::before {
    transition: none;
  }
}

/* The original home star physics, confined behind this interactive diagram. */
.process-explorer {
  position: relative;
  isolation: isolate;
}
.process-starfield {
  position: absolute;
  inset: 68px 0 0;
  width: 100%;
  height: calc(100% - 68px);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0.48;
  transition: opacity 350ms ease;
}
.process-explorer.is-active .process-starfield {
  opacity: 0.16;
}
html[data-color-mode='light'] .process-starfield {
  opacity: 0.38;
}
html[data-color-mode='light'] .process-explorer.is-active .process-starfield {
  opacity: 0.12;
}
@media (max-width: 640px) {
  .process-starfield {
    inset-block-start: 82px;
    height: calc(100% - 82px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .process-starfield {
    transition: none;
  }
}
