.work-circle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 58px;
  padding: clamp(2.5rem, 4vw, 4rem) 32px 1.5rem;
  border-bottom: 1px solid rgb(91 69 145 / 0.14);
  color: #15142d;
  background:
    radial-gradient(circle at -3% 2%, rgb(203 217 255 / .46) 0 14%, transparent 14.2%),
    radial-gradient(circle at 104% 100%, rgb(220 218 255 / .48) 0 14%, transparent 14.2%),
    radial-gradient(circle at 12% 16%, rgb(126 211 164 / .10), transparent 25%),
    radial-gradient(circle at 89% 18%, rgb(139 98 233 / .11), transparent 27%),
    linear-gradient(145deg, #fbfcff 0%, #f7f4ff 56%, #fbfff9 100%);
}

.work-circle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(88 75 148 / .055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(88 75 148 / .055) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  pointer-events: none;
}

.work-circle-inner { max-width: 1440px; margin: 0 auto; }
.work-circle-header { text-align: center; }
.process-landing .work-circle-header h2 {
  margin: 0;
  max-width: none;
  color: #11112c;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .98;
}
.process-landing .work-circle-header h2 span { color: #7845ef; }
.process-landing .work-circle-header > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: .9rem 0 0;
  color: #777596;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
}
.process-landing .work-circle-header > p::before,
.process-landing .work-circle-header > p::after { width: clamp(2.5rem, 5vw, 5rem); height: 1px; background: #c7c5df; content: ""; }

/* Leave room for this section's heading, controls, and vertical padding. On a
   13-inch MacBook Air, sizing the stage almost to the viewport height made the
   complete circle section extend noticeably below the fold. */
.work-circle-stage { position: relative; width: 100%; height: clamp(485px, calc(100svh - 270px), 620px); margin-top: .6rem; }
.work-circle-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.work-circle-arrow { fill: #aebbd5; stroke: transparent; stroke-width: 22px; cursor: pointer; pointer-events: all; transition: fill 180ms ease; }
@supports (pointer-events: bounding-box) { .work-circle-arrow { pointer-events: bounding-box; } }
.work-circle-arrow:hover { fill: #8a83bd; }
.work-circle-arrow.is-active { fill: #7d42ee; }

.work-circle-tab {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.1rem;
  padding: .36rem .9rem .36rem .42rem;
  transform: translate(-50%, -50%);
  border: 1px solid #e1e4f3;
  border-radius: 1.5rem;
  background: rgb(255 255 255 / .9);
  box-shadow: 0 9px 22px rgb(72 58 135 / .11), inset 0 1px #fff;
  color: #242448;
  font: inherit;
  cursor: pointer;
}
.work-circle-tab--1 { left: 50%; top: 7%; }
.work-circle-tab--2 { left: 94%; top: 45%; flex-direction: column; width: 10.8rem; padding: .55rem .8rem; text-align: center; }
.work-circle-tab--3 { left: 74%; top: 91%; }
.work-circle-tab--4 { left: 26%; top: 91%; }
.work-circle-tab--5 { left: 6%; top: 45%; flex-direction: column; width: 10.8rem; padding: .55rem .8rem; text-align: center; }
.work-circle-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.18rem;
  height: 2.18rem;
  border: 1px solid #d8ddec;
  border-radius: 50%;
  background: #fff;
  color: #202044;
  box-shadow: 0 3px 8px rgb(52 48 106 / .08);
  font-size: .8rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.work-circle-label { max-width: 12rem; font-size: .93rem; font-weight: 700; line-height: 1.1; text-wrap: balance; }
.work-circle-tab[aria-selected="true"] { border-color: #ded2ff; box-shadow: 0 12px 25px rgb(113 66 238 / .2), inset 0 1px #fff; color: #6633d0; }
.work-circle-tab[aria-selected="true"] .work-circle-number { border-color: #7541e7; background: linear-gradient(145deg, #8850f4, #5420cb); color: white; box-shadow: 0 7px 15px rgb(98 50 218 / .35); }
.work-circle-tab:hover .work-circle-label { color: #6633d0; }
.work-circle-tab:focus-visible, .work-circle-controls button:focus-visible, .work-circle-panel:focus-visible { outline: 3px solid #7845ef; outline-offset: 4px; }

.work-circle-center { position: absolute; left: 18.5%; top: 50%; width: 63%; transform: translateY(-47%); }
.work-circle-panel {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  gap: clamp(1.3rem, 2.4vw, 2.5rem);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  border: 1px solid #dce0f1;
  border-radius: clamp(1.25rem, 2vw, 1.8rem);
  background: rgb(255 255 255 / .9);
  box-shadow: 0 20px 45px rgb(69 55 137 / .13), inset 0 1px #fff;
}
.work-circle-panel[hidden] { display: none; }
/* Keep the artwork at its own shared 4:3 ratio. Letting it stretch to the
   panel height made its size depend on the amount of copy in each tab. */
.work-circle-panel img { display: block; align-self: center; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; }
.work-circle-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; }
.process-landing .work-circle-step { margin: 0 0 .7rem; color: #7b49ed; font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
.process-landing .work-circle-copy h3 { margin: 0; color: #12132d; font-size: clamp(1.55rem, 2.25vw, 2.55rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
.process-landing .work-circle-description { margin: .9rem 0 0; color: #6b6a83; font-size: clamp(.9rem, 1.15vw, 1.05rem); line-height: 1.42; }
.process-landing .work-circle-benefit {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  margin: 1rem 0 0;
  padding: .8rem .9rem;
  border: 0;
  border-radius: .8rem;
  background: linear-gradient(105deg, #e2fae5, #f1fbec);
  color: #1f6a38;
  font-size: clamp(.82rem, 1.1vw, .98rem);
  font-weight: 700;
  line-height: 1.3;
}
.work-circle-benefit svg { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; padding: .38rem; border-radius: 50%; background: #2d9a4e; fill: white; }

.work-circle-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: -1.1rem; }
.work-circle-controls button { width: 3rem; height: 2.7rem; padding: 0; border: 1px solid #dbe0ef; border-radius: .65rem; background: rgb(255 255 255 / .88); color: #242448; box-shadow: 0 6px 13px rgb(61 53 115 / .09); font-size: 1.4rem; cursor: pointer; }
.work-circle-controls button:last-child { border-color: #7645e7; background: linear-gradient(145deg, #8850f4, #5a25d1); color: white; box-shadow: 0 7px 15px rgb(98 50 218 / .26); }
.work-circle-controls button:hover { transform: translateY(-1px); }
.work-circle-controls span { min-width: 3.2rem; color: #68677e; font-size: .82rem; font-weight: 750; letter-spacing: .06em; text-align: center; }

@media (max-width: 1050px) {
  .work-circle { padding: 24px 16px 20px; }
  .work-circle-inner { max-width: 600px; }
  .process-landing .work-circle-header h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
  .work-circle-stage { height: auto; margin: 16px auto 0; padding: 0; }
  .work-circle-ring { display: none; }
  .work-circle-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .work-circle-tab {
    position: static;
    width: 100%;
    min-height: 44px;
    padding: 0;
    transform: none;
    border-radius: 6px;
    box-shadow: none;
  }
  .work-circle-number { width: auto; height: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .work-circle-tab[aria-selected="true"] { border-color: #7541e7; background: #7541e7; box-shadow: none; }
  .work-circle-tab[aria-selected="true"] .work-circle-number { border: 0; background: transparent; box-shadow: none; }
  .work-circle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .work-circle-center { position: static; width: 100%; transform: none; }
  .work-circle-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .work-circle-panel img {
    position: static;
    width: 100%;
    height: auto;
    max-height: min(24svh, 210px);
    aspect-ratio: auto;
    margin: 0;
    object-fit: contain;
    border-radius: 6px;
  }
  .work-circle-copy { min-height: 0; padding: 0; }
  .process-landing .work-circle-step { display: none; }
  .process-landing .work-circle-copy h3 { font-size: clamp(1.3rem, 5.6vw, 1.65rem); line-height: 1.1; letter-spacing: -.035em; }
  .process-landing .work-circle-description { margin-top: 10px; font-size: .9375rem; line-height: 1.4; }
  .process-landing .work-circle-benefit { box-sizing: border-box; margin-top: 10px; padding: 10px 12px; border-radius: 6px; font-size: .875rem; line-height: 1.4; }
  .work-circle-controls { margin-top: 16px; }
  .work-circle-controls button { min-height: 44px; }
}

@media (max-width: 1050px) and (max-height: 740px) {
  .work-circle { padding-block: 16px; }
  .work-circle-stage { margin-top: 12px; }
  .work-circle-panel { gap: 10px; }
  .work-circle-panel img { max-height: 18svh; }
  .work-circle-controls { margin-top: 12px; }
}

@media (max-width: 480px) and (max-height: 620px) {
  .work-circle { padding-block: 12px; }
  .process-landing .work-circle-header h2 { font-size: 1.5rem; }
  .work-circle-stage { margin-top: 8px; }
  .work-circle-tabs { margin-bottom: 8px; }
  .work-circle-panel { gap: 8px; }
  .work-circle-panel img { max-height: 80px; }
  .process-landing .work-circle-copy h3 { font-size: 1.25rem; }
  .process-landing .work-circle-description,
  .process-landing .work-circle-benefit { margin-top: 8px; font-size: .875rem; line-height: 1.35; }
  .process-landing .work-circle-benefit { padding: 8px 10px; }
  .work-circle-controls { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) { .work-circle-arrow, .work-circle-number { transition: none; } }
