/* ============================================================
   PROCESS SECTION — Incline Agency
   ============================================================ */

.site-process {
  background: var(--bg, #0B1113);
  padding: clamp(52px, 7vh, 80px) clamp(24px, 5vw, 72px);
}

.process-inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.process-title {
  margin-bottom: 14px;
}

.process-intro {
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--muted, rgba(255,255,255,0.55));
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 52px;
}

/* ============================================================
   Timeline
   ============================================================ */

.ps-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 52px;
}

/* ---- Step row ---- */
.ps-step {
  display: flex;
  gap: 24px;
  position: relative;
}

/* ---- Left spine: node + connector line ---- */
.ps-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.ps-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F181A;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
  position: relative;
  z-index: 1;
}

/* Active node when step is expanded */
.ps-step.is-open .ps-node {
  border-color: rgba(207,232,255,0.35);
  color: #CFE8FF;
  background: rgba(207,232,255,0.05);
}

.ps-connector {
  width: 1px;
  flex: 1;
  min-height: 20px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}

/* No connector on last step — handled via .ps-node--last sibling hiding */
.ps-step:last-child .ps-connector {
  display: none;
}

/* ---- Right body ---- */
.ps-body {
  flex: 1;
  min-width: 0;
  padding-bottom: 32px;
}

.ps-step:last-child .ps-body {
  padding-bottom: 0;
}

/* Top row: title + deliverable + toggle */
.ps-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px; /* align with node height */
  margin-bottom: 8px;
}

.ps-title {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
}

/* Right cluster: deliverable tag + chevron */
.ps-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ps-deliverable {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(39,201,63,0.80);
  background: rgba(39,201,63,0.07);
  border: 1px solid rgba(39,201,63,0.14);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Expand toggle */
.ps-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  flex-shrink: 0;
}

.ps-toggle:hover,
.ps-toggle[aria-expanded="true"] {
  background: rgba(207,232,255,0.08);
  border-color: rgba(207,232,255,0.20);
  color: #CFE8FF;
}

.ps-toggle:focus-visible {
  outline: 2px solid rgba(207,232,255,0.40);
  outline-offset: 2px;
}

/* Chevron rotates when open */
.ps-chevron {
  transition: transform 180ms cubic-bezier(0.4,0,0.2,1);
}

.ps-toggle[aria-expanded="true"] .ps-chevron {
  transform: rotate(180deg);
}

/* Summary */
.ps-summary {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}

/* ---- Expandable detail panel ---- */
.ps-detail {
  margin-top: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}

.ps-detail[hidden] {
  display: none;
}

.ps-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ps-detail-label {
  display: block;
  font-family: var(--font-main);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.30);
  margin-bottom: 6px;
}

.ps-detail-col p {
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}

/* ---- CTA ---- */
.process-cta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.process-cta-link {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 1px;
  transition: border-color 140ms ease;
}

.process-cta-link:hover {
  border-color: #ffffff;
}

.process-cta-link--muted {
  font-weight: 400;
  color: rgba(255,255,255,0.48);
  border-bottom-color: transparent;
}

.process-cta-link--muted:hover {
  color: rgba(255,255,255,0.72);
  border-bottom-color: rgba(255,255,255,0.18);
}

.process-cta-sep {
  color: rgba(255,255,255,0.22);
  font-size: 0.88rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 680px) {
  .ps-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ps-right {
    gap: 8px;
  }

  .ps-deliverable {
    display: none; /* hide on small screens — shown in expanded panel */
  }
}

@media (max-width: 480px) {
  .site-process {
    padding: clamp(52px, 7vh, 80px) clamp(16px, 5vw, 24px);
  }

  .ps-step {
    gap: 14px;
  }

  .ps-node {
    width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .ps-spine {
    width: 34px;
  }

  .ps-row {
    min-height: 34px;
  }

  .ps-title {
    font-size: 0.93rem;
  }

  .ps-detail {
    padding: 14px;
  }

  .process-cta-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .process-cta-sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-chevron,
  .ps-node,
  .ps-toggle {
    transition: none !important;
  }
}
