.process-section {
  --glow-emerald: rgba(16, 185, 129, .55);
  --glow-teal: rgba(22, 174, 157, .34);
  --glow-mint: rgba(183, 245, 233, .82);
  --glow-shadow: rgba(16, 185, 129, .3);
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 120px 0 145px;
  overflow: visible;
  isolation: isolate;
  color: var(--ink);
}

.process-glow,
.process-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.process-glow {
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.glow-main,
.glow-trail {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
}

.glow-main {
  width: min(460px, 72vw);
  height: min(460px, 72vw);
  background: radial-gradient(circle, var(--glow-emerald), var(--glow-teal) 42%, transparent 70%);
  transform: translate3d(12%, 8%, 0);
}

.glow-trail {
  width: min(190px, 38vw);
  height: min(190px, 38vw);
  background: radial-gradient(circle, var(--glow-mint), transparent 68%);
  transform: translate3d(28%, 18%, 0);
}

.process-grain {
  z-index: 2;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.process-frame {
  width: min(1100px, calc(100% - 64px));
  margin: 0 auto;
}

.process-intro,
.process-track {
  position: relative;
  z-index: 1;
}

.process-intro {
  max-width: 680px;
}

.process-title {
  margin: 0;
  font: 500 clamp(45px, 5.5vw, 76px) / .94 Manrope, sans-serif;
  letter-spacing: -.075em;
}

.process-title .mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: .24em;
  padding-bottom: .14em;
  margin-bottom: -.14em;
  line-height: .94;
}

.process-title .mask:last-child {
  margin-right: 0;
}

.process-title .mask > span {
  display: inline-block;
}

.process-title em.mask {
  font-family: Newsreader, serif;
  font-weight: 400;
  font-style: italic;
  padding-right: .06em;
}

.process-title .phrase > span {
  color: var(--mint);
}

.process-sub {
  max-width: 440px;
  margin: 24px 0 0;
  color: #aeb4b2;
  font-size: 16px;
  line-height: 1.5;
}

.process-track {
  margin-top: 28px;
  padding-top: 36px;
}

.process-connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.connector-base,
.connector-fill {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connector-base {
  stroke: rgba(183, 245, 233, .2);
  stroke-width: 1.5;
}

.connector-fill {
  stroke: url(#how-line);
  stroke-width: 2;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}

.process-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  min-width: 0;
  perspective: 800px;
}

.step:nth-child(1) { --i: 0; }
.step:nth-child(2) { --i: 1; }
.step:nth-child(3) { --i: 2; }

.step-rise {
  position: relative;
  height: 100%;
}

.step-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--glow-shadow), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.step-tilt {
  --mx: 50%;
  --my: 18%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  z-index: 1;
  min-height: 250px;
  padding: 22px 24px 26px;
  border: 1px solid rgba(218, 239, 234, .18);
  border-radius: 18px;
  background:
    radial-gradient(220px circle at var(--mx) var(--my), rgba(183, 245, 233, .1), transparent 46%),
    linear-gradient(145deg, rgba(27, 30, 30, .96), rgba(10, 12, 12, .98));
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
}

.step-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(170px circle at var(--mx) var(--my), var(--glow-mint), transparent 58%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.step-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--glow-mint);
  box-shadow: 0 0 24px var(--glow-shadow);
  opacity: 0;
  pointer-events: none;
}

.step.is-reached .step-ring,
.step.is-center .step-ring,
.step.is-reached .num-glow,
.step-num.is-glow .num-glow {
  opacity: 1;
}

.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.step-num {
  position: relative;
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  align-content: center;
  color: #32d8c5;
  font: 11px/1 "DM Mono", monospace;
}

.num-value,
.num-glow {
  grid-area: 1 / 1;
}

.num-glow {
  color: var(--mint);
  text-shadow: 0 0 12px var(--glow-emerald);
  opacity: 0;
}

.step h3 {
  margin: 22px 0 8px;
  color: #f1f5f4;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.055em;
}

.step p {
  margin: 0;
  color: #aeb4b2;
  font-size: 13px;
  line-height: 1.48;
}

.viz {
  display: block;
  width: 88px;
  height: 56px;
  color: var(--mint);
}

.viz-check {
  width: 64px;
  height: 64px;
}

.viz-map circle,
.viz-net .pulse {
  transform-box: fill-box;
  transform-origin: center;
}

.viz-map circle {
  fill: currentColor;
}

.viz-net path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
}

.viz-net circle {
  fill: currentColor;
}

.viz-net .pulse {
  opacity: 0;
}

.viz-check .ring,
.viz-check .tick {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .process-title .phrase > span {
    background-image: linear-gradient(100deg, #059669 0%, var(--teal) 28%, var(--mint) 52%, var(--teal) 76%, #059669 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (min-width: 768px) {
  .process-steps .step:nth-child(2) {
    margin-top: -18px;
  }
}

#book {
  scroll-margin-top: 90px;
}

#book .contact-intro h2 {
  margin: 0;
  font: 500 clamp(40px, 5vw, 60px) / .95 Manrope, sans-serif;
  letter-spacing: -.07em;
}

#book .contact-intro h2 em {
  font-family: Newsreader, serif;
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 767px) {
  .process-section {
    max-width: none;
    padding: 72px 0 88px;
  }

  .process-frame {
    width: calc(100% - 32px);
  }

  .process-title {
    font-size: clamp(34px, 9vw, 52px);
  }

  .process-sub,
  .step p {
    font-size: clamp(14px, 3.8vw, 16px);
  }

  .step h3 {
    font-size: clamp(20px, 5.2vw, 24px);
  }

  .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-left: 22px;
  }

  .step-tilt {
    min-height: 44px;
  }

  .step.is-center .step-tilt {
    background:
      radial-gradient(240px circle at 50% 0%, var(--glow-teal), transparent 58%),
      linear-gradient(145deg, rgba(27, 30, 30, .96), rgba(10, 12, 12, .98));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .process-title .mask > span {
    transform: translateY(110%);
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
  }

  .process-title > .mask:nth-child(1) > span { transition-delay: 0ms; }
  .process-title > .mask:nth-child(2) > span { transition-delay: 60ms; }
  .process-title > .mask:nth-child(3) > span { transition-delay: 120ms; }
  .process-title > .mask:nth-child(4) > span { transition-delay: 180ms; }
  .process-title > .mask:nth-child(5) > span { transition-delay: 240ms; }
  .process-title > .mask:nth-child(6) > span { transition-delay: 300ms; }
  .process-title > .mask:nth-child(7) > span { transition-delay: 360ms; }

  .process-section.is-heading .process-title .mask > span {
    transform: translateY(0);
  }

  .process-sub {
    opacity: 0;
  }

  .process-section.is-heading .process-sub {
    opacity: 1;
    transition: opacity .6s ease 660ms;
  }

  .process-title .phrase > span {
    animation: flow-sweep 8s linear infinite;
  }

  .step-rise {
    opacity: 0;
    transform: translateY(24px);
    transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .7s ease;
    transition-delay: calc(var(--i) * 100ms);
  }

  .step.is-in .step-rise {
    opacity: 1;
    transform: translateY(0);
  }

  .step-tilt,
  .step-shadow,
  .step-ring,
  .num-glow {
    transition: transform .18s ease, opacity .35s ease;
  }

  .viz-map circle:nth-child(1) { --sx: -18px; --sy: 12px; --n: 0; }
  .viz-map circle:nth-child(2) { --sx: 10px; --sy: -14px; --n: 1; }
  .viz-map circle:nth-child(3) { --sx: 16px; --sy: 8px; --n: 2; }
  .viz-map circle:nth-child(4) { --sx: -12px; --sy: 16px; --n: 3; }
  .viz-map circle:nth-child(5) { --sx: 14px; --sy: 10px; --n: 4; }
  .viz-map circle:nth-child(6) { --sx: -8px; --sy: -16px; --n: 5; }
  .viz-map circle:nth-child(7) { --sx: 12px; --sy: 14px; --n: 6; }
  .viz-map circle:nth-child(8) { --sx: -16px; --sy: -8px; --n: 7; }

  .viz-map circle {
    transform: translate(var(--sx), var(--sy));
    transition: transform .75s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--n) * 45ms);
  }

  .step.is-in .viz-map circle {
    transform: translate(0, 0);
  }

  .step.is-in .viz-net .pulse-a {
    animation: net-pulse-a 2.6s ease-in-out infinite;
  }

  .step.is-in .viz-net .pulse-b {
    animation: net-pulse-b 2.6s ease-in-out infinite;
  }

  .viz-check .ring {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
  }

  .viz-check .tick {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
  }

  .step.is-in .viz-check .ring {
    animation: draw-stroke 1.05s ease .25s forwards;
  }

  .step.is-in .viz-check .tick {
    animation: draw-stroke .55s ease .85s forwards;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .step:hover .step-tilt {
    transform: translateY(-4px) rotateX(var(--rx)) rotateY(var(--ry));
  }

  .step:hover .step-shadow {
    opacity: 1;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .glow-main {
    animation: process-drift 20s ease-in-out infinite;
  }

  .glow-trail {
    animation: process-drift 20s ease-in-out infinite reverse;
  }

  .step:active .step-tilt {
    transform: scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-title .mask > span,
  .process-sub,
  .step-rise,
  .connector-fill,
  .glow-main,
  .glow-trail {
    animation: none;
    transform: none;
    transition: opacity .45s ease;
  }

  .process-title .mask > span,
  .process-sub,
  .step-rise,
  .connector-fill {
    opacity: 0;
  }

  .process-section.is-heading .process-title .mask > span,
  .process-section.is-heading .process-sub,
  .process-section.is-heading .connector-fill,
  .step.is-in .step-rise {
    opacity: 1;
  }

  .viz-map circle,
  .viz-net .pulse,
  .viz-check .ring,
  .viz-check .tick,
  .step-tilt {
    animation: none;
    transform: none;
  }

  .viz-check .ring,
  .viz-check .tick {
    stroke-dashoffset: 0;
  }

  .step-ring,
  .num-glow {
    transition: opacity .45s ease;
  }
}

@media (scripting: none) {
  .process-title .mask > span,
  .process-sub,
  .step-rise,
  .connector-fill {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes flow-sweep {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}

@keyframes net-pulse-a {
  0% { transform: translate(16px, 40px); opacity: 0; }
  12% { opacity: 1; }
  46% { transform: translate(44px, 14px); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translate(74px, 32px); opacity: 0; }
}

@keyframes net-pulse-b {
  0% { transform: translate(44px, 14px); opacity: 0; }
  16% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(40px, 46px); opacity: 0; }
}

@keyframes process-drift {
  0%, 100% { transform: translate3d(-20px, 30px, 0); }
  50% { transform: translate3d(150px, 460px, 0); }
}
