.about-hero {
  position: relative;
  top: auto;
}
.about-hero .hero-left {
  padding-top: 140px;
  padding-bottom: 100px;
}
.about-hero .hero-sub {
  margin-bottom: 0;
}

.section-process {
  position: relative;
  z-index: 14;
  background: #ffffff;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0;
  overflow: hidden;
}

.section-process h2 {
  color: var(--primary);
  text-align: center;
  padding: 0 64px;
}

.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.proc-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.proc-io-label {
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 18px;
}
.proc-input .proc-io-label { text-align: left; padding-left: clamp(20px, 3.5vw, 56px); }
.proc-output .proc-io-label { text-align: right; padding-right: clamp(20px, 3.5vw, 56px); }

.flow {
  position: relative;
  height: clamp(300px, 30vw, 430px);
}

.sankey {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sankey-v { display: none; }

.flow-labels {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.flow-label {
  flex: 1;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.05vw, 1.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proc-input .flow-label {
  justify-content: flex-start;
  padding-left: clamp(20px, 3.5vw, 56px);
}
.proc-output .flow-label {
  justify-content: flex-end;
  padding-right: clamp(20px, 3.5vw, 56px);
  text-align: right;
}

.proc-arrow { display: none; }

.proc-hub {
  flex: 0 0 auto;
  padding: 0 clamp(24px, 3vw, 56px);
  text-align: center;
}

.proc-hub-label {
  display: block;
  font-size: clamp(0.85rem, 1.15vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 44px;
}

.proc-steps {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 26px);
}

.proc-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.proc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(50% + 38px);
  width: calc(100% - 76px + clamp(12px, 1.6vw, 26px));
  height: 2px;
  background: rgba(1,26,63,0.15);
}

.proc-step-num {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--cap);
  color: var(--cap);
  background: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.proc-step-name {
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-bring {
  background: var(--primary);
}
.section-bring .case-card:nth-child(6)::before { background: #ffffff; }
.section-bring .case-card:nth-child(6) .case-card-tag { color: #ffffff; }



.hero-rings {
  position: relative;
  width: min(90%, 86vh, 680px);
  aspect-ratio: 1 / 1;
  z-index: 1;                 /* sits above the .dot-grid backdrop */
  opacity: 0;
  animation: ringsFadeIn 1.2s ease 0.6s forwards;
}

/* Both rings fill the square and rotate about their own centre */
.hero-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
  will-change: transform;
}

.hero-ring-outer { opacity: 0.7; animation: ringSpinCW  24s linear infinite; }
.hero-ring-inner { opacity: 1;   animation: ringSpinCCW 16s linear infinite; }

@keyframes ringSpinCW  { from { transform: rotate(0deg); } to { transform: rotate(360deg);  } }
@keyframes ringSpinCCW { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes ringsFadeIn { to { opacity: 1; } }

/* Hold the rings still and fully visible for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .hero-rings { opacity: 1; animation: none; }
  .hero-ring-outer,
  .hero-ring-inner { animation: none; }
}


@media (max-width: 1024px) {
  .section-process { padding: 80px 0; }
  .section-process h2 { margin-bottom: 8px; padding: 0 24px; }

  .process-flow {
    flex-direction: column;
    align-items: stretch;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 24px;
  }

  .proc-side { width: 100%; }

  .proc-input .proc-io-label,
  .proc-output .proc-io-label {
    text-align: center;
    padding: 0;
    margin: 28px 0 14px;
  }

  .flow { height: clamp(170px, 42vw, 230px); }

  .sankey-h { display: none; }
  .sankey-v { display: block; }

  .flow-labels { flex-direction: row; }
  .proc-input .flow-label {
    align-items: flex-start;
    justify-content: center;
    padding: 12px 4px 0;
    text-align: center;
  }
  .proc-output .flow-label {
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px 12px;
    text-align: center;
  }
  .flow-label { font-size: clamp(0.7rem, 2.4vw, 0.85rem); letter-spacing: 0.04em; }

  .proc-arrow {
    display: block;
    width: 22px;
    height: 36px;
    align-self: center;
    margin: 4px 0;
    position: relative;
  }
  .proc-arrow::before {
    content: '';
    position: absolute;
    left: 50%; top: 0;
    width: 2px; height: 100%;
    background: rgba(1,26,63,0.25);
    transform: translateX(-50%);
  }
  .proc-arrow::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 11px; height: 11px;
    border-right: 2px solid rgba(1,26,63,0.45);
    border-top: 2px solid rgba(1,26,63,0.45);
    transform: translateX(-50%) rotate(135deg);
  }

  .proc-hub { padding: 28px 0 8px; }
  .proc-hub-label { margin-bottom: 32px; }
  .proc-steps { gap: 6px; }
  .proc-step-num { width: 56px; height: 56px; font-size: 1.1rem; margin-bottom: 14px; }
  .proc-step:not(:last-child)::after { top: 28px; left: calc(50% + 31px); width: calc(100% - 62px + 6px); }
}

@media (max-width: 599px) {
  .proc-steps { flex-wrap: wrap; gap: 24px 10px; }
  .proc-step { flex: 0 0 28%; }
  .proc-step:not(:last-child)::after { display: none; }
}
