@font-face {
  font-family: "Process Work Sans";
  src: url("../../assets/fonts/shore-scope/asta-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Process Work Sans";
  src: url("../../assets/fonts/shore-scope/asta-sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --work-frame-width: min(22.1vw, 39.25svh);
  --work-frame-ratio: 2400 / 2990;
  --work-transition-duration: 1050ms;
}

html,
body.process-work-body {
  min-height: 100%;
  background: #080808;
}

body.process-work-body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.process-work-study {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 42rem;
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
  font-family: "Process Work Sans", "Pretendard", sans-serif;
}

.work-background,
.work-reveal,
.work-shade {
  position: absolute;
  inset: 0;
  margin: 0;
}

.work-background {
  z-index: 0;
  background: #131313;
}

.work-background img,
.work-reveal img,
.work-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-background img {
  transform: scale(1.018);
}

.work-reveal {
  z-index: 1;
  clip-path: inset(25.55% 38.95% 25.55% 38.95%);
  opacity: 0;
  pointer-events: none;
}

.process-work-study.is-transitioning .work-reveal {
  animation: work-image-reveal var(--work-transition-duration) cubic-bezier(.76, 0, .24, 1) both;
}

.work-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 28%) 31%, rgb(0 0 0 / 5%) 58%, rgb(0 0 0 / 14%) 100%),
    linear-gradient(180deg, rgb(0 0 0 / 12%) 0%, transparent 48%, rgb(0 0 0 / 24%) 100%);
  pointer-events: none;
  transition: background 420ms ease;
}

.work-copy {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 16.25vw;
  width: min(22vw, 52rem);
  color: #fff;
  transform: translateY(-18%);
}

.work-copy__eyebrow {
  margin: 0 0 clamp(1.1rem, 1.3vw, 2.5rem);
  font-size: clamp(.72rem, .55vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .17em;
  opacity: .7;
}

.work-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 3.45vw, 8.3rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.work-copy__description {
  max-width: none;
  margin: clamp(1.15rem, 1.15vw, 2.2rem) 0 0;
  font-size: clamp(1rem, .92vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.45;
  opacity: .82;
  text-wrap: balance;
  white-space: nowrap;
}

.process-work-study.is-copy-leaving .work-copy__eyebrow,
.process-work-study.is-copy-leaving .work-copy h1,
.process-work-study.is-copy-leaving .work-copy__description {
  opacity: 0;
  transform: translateY(-1.3rem);
}

.work-copy__eyebrow,
.work-copy h1,
.work-copy__description {
  transition:
    opacity 260ms ease,
    transform 460ms cubic-bezier(.16, 1, .3, 1);
}

.work-frame {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: var(--work-frame-width);
  aspect-ratio: var(--work-frame-ratio);
  margin: 0;
  overflow: hidden;
  background: #171717;
  transform: translate(-50%, -50%);
}

.work-frame img {
  position: absolute;
  inset: 0;
}

.work-frame__current {
  z-index: 0;
}

.work-frame__next {
  z-index: 1;
  transform: translateY(101%);
}

.process-work-study[data-direction="previous"] .work-frame__next {
  transform: translateY(-101%);
}

.process-work-study.is-transitioning .work-frame__current {
  animation: work-frame-current-next 480ms cubic-bezier(.76, 0, .24, 1) both;
}

.process-work-study.is-transitioning[data-direction="previous"] .work-frame__current {
  animation-name: work-frame-current-previous;
}

.process-work-study.is-transitioning .work-frame__next {
  animation: work-frame-enter-next 480ms cubic-bezier(.76, 0, .24, 1) both;
}

.process-work-study.is-transitioning[data-direction="previous"] .work-frame__next {
  animation-name: work-frame-enter-previous;
}

.process-work-study.is-transitioning .work-frame {
  animation: work-frame-shell var(--work-transition-duration) ease both;
}

.process-map-world {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 2780px;
  height: 1120px;
  color: #fff;
  transform-origin: 0 0;
  transition:
    transform 1450ms cubic-bezier(.16, 1, .3, 1),
    opacity 420ms ease;
  will-change: transform;
}

.process-map {
  position: absolute;
  inset: 0;
  width: 2780px;
  height: 1120px;
  overflow: visible;
}

.process-map-lanes line {
  stroke: rgb(255 255 255 / 14%);
  stroke-width: 1.2;
}

.process-map-lane-labels {
  fill: rgb(255 255 255 / 48%);
  font-family: "Process Work Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.process-map-route {
  fill: none;
  stroke: rgb(255 255 255 / 28%);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.process-map-route--main path {
  marker-end: url("#rebuild-atlas-arrow");
  transition: stroke 360ms ease, stroke-width 360ms ease, opacity 360ms ease;
}

.process-map-route--main path.is-passed {
  stroke: rgb(255 255 255 / 62%);
}

.process-map-route--main path.is-current {
  stroke: #fff;
  stroke-width: 3.2;
}

.process-map-route--optional {
  stroke: rgb(255 255 255 / 26%);
  stroke-dasharray: 8 10;
  stroke-width: 1.6;
}

.process-map-route--optional path {
  marker-end: url("#rebuild-atlas-arrow-optional");
}

.process-map-route--optional .is-route-primary {
  stroke: rgb(255 255 255 / 70%);
  stroke-dasharray: none;
  stroke-width: 2.4;
  marker-end: url("#rebuild-atlas-arrow");
}

.process-map-node {
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  display: grid;
  width: 180px;
  min-height: 92px;
  align-content: center;
  box-sizing: border-box;
  cursor: pointer;
  padding: 16px 18px 15px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 10px;
  background: rgb(9 10 10 / 76%);
  box-shadow: 0 16px 38px -32px rgb(0 0 0 / 90%);
  color: #fff;
  font: inherit;
  text-align: left;
  transform: translate(-50%, -50%);
  transition:
    opacity 460ms ease,
    border-color 460ms ease,
    background-color 460ms ease,
    box-shadow 460ms ease,
    transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.process-map-node > span {
  position: absolute;
  top: 9px;
  right: 11px;
  color: rgb(255 255 255 / 45%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.process-map-node strong,
.process-map-node small {
  display: block;
}

.process-map-node strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.process-map-node small {
  margin-top: 8px;
  color: rgb(255 255 255 / 52%);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.process-map-node:hover,
.process-map-node:focus-visible,
.process-map-node[aria-current="step"] {
  border-color: rgb(255 255 255 / 88%);
  outline: none;
  transform: translate(-50%, -50%) scale(1.05);
}

.process-map-node[aria-current="step"] {
  background: rgb(244 244 239 / 96%);
  box-shadow: 0 24px 64px -34px rgb(0 0 0 / 90%);
  color: #111;
  transform: translate(-50%, -50%) scale(1.09);
}

.process-map-node[aria-current="step"] > span,
.process-map-node[aria-current="step"] small {
  color: rgb(0 0 0 / 50%);
}

.process-map-node--optional {
  min-height: 82px;
  border-color: rgb(255 255 255 / 18%);
  border-style: dashed;
  cursor: default;
  opacity: .32;
}

.process-map-node:disabled,
.process-map-world [data-routes].is-route-muted {
  cursor: default;
  opacity: .1 !important;
  pointer-events: none;
}

.process-work-study.is-overview-open .work-shade {
  background: rgb(5 5 5 / 84%);
}

.process-work-study.is-overview-open .process-map-world {
  z-index: 7;
}

.process-rail {
  position: absolute;
  z-index: 8;
  right: 4vw;
  bottom: 2.7svh;
  left: 4vw;
  height: clamp(8.5rem, 9.6svh, 12.5rem);
  color: #fff;
  font-family: "Process Work Sans", sans-serif;
}

.process-steps {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: clamp(4.8rem, 5.7svh, 7.2rem);
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.process-steps::before {
  position: absolute;
  right: 0;
  bottom: .72rem;
  left: 0;
  height: 1px;
  background: rgb(255 255 255 / 54%);
  box-shadow: 0 1px 8px rgb(0 0 0 / 45%);
  content: "";
}

.process-steps > button {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: 1fr auto;
  justify-items: center;
  cursor: pointer;
  padding: 0 .45rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: center;
  text-shadow: 0 1px 9px rgb(0 0 0 / 75%);
  transition: opacity 240ms ease;
}

.process-steps > button strong {
  align-self: end;
  max-width: 100%;
  margin-bottom: .55rem;
  overflow: hidden;
  font-size: clamp(.64rem, .54vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-steps > button span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 50%;
  background: rgb(8 9 9 / 92%);
  font-size: clamp(.5rem, .36vw, .82rem);
  line-height: 1;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    transform 260ms cubic-bezier(.16, 1, .3, 1);
}

.process-steps > button:hover span,
.process-steps > button:focus-visible span,
.process-steps > button[aria-current="step"] span {
  border-color: #fff;
  background: #fff;
  color: #111;
  transform: scale(1.15);
}

.process-steps > button:focus-visible {
  outline: none;
}

.process-steps > button[data-route-available="false"] {
  opacity: .2;
  pointer-events: none;
}

.process-rail__lower {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-overview-trigger {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
  padding: .45rem 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.process-overview-trigger strong {
  font-size: clamp(.7rem, .56vw, 1.25rem);
  font-weight: 500;
}

.process-overview-trigger__grid {
  display: grid;
  grid-template-columns: repeat(2, .28rem);
  gap: .22rem;
}

.process-overview-trigger__grid i {
  width: .28rem;
  height: .28rem;
  border: 1px solid currentColor;
}

.process-overview-trigger:hover,
.process-overview-trigger:focus-visible,
.process-overview-trigger[aria-expanded="true"] {
  outline: none;
  opacity: .62;
}

.process-route-switcher {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.2vw, 4.8rem);
}

.process-route-switcher button {
  position: relative;
  cursor: pointer;
  padding: .45rem 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 46%);
  font: inherit;
  font-size: clamp(.68rem, .55vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.02em;
}

.process-route-switcher button::after {
  position: absolute;
  right: 0;
  bottom: .1rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 200ms ease, transform 260ms ease;
}

.process-route-switcher button:hover,
.process-route-switcher button:focus-visible,
.process-route-switcher button[aria-checked="true"] {
  color: #fff;
  outline: none;
}

.process-route-switcher button[aria-checked="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.process-work-study.is-overview-open .work-copy,
.process-work-study.is-overview-open .work-frame {
  opacity: 0;
  pointer-events: none;
}

.work-copy,
.work-frame {
  transition: opacity 300ms ease;
}

.work-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes work-image-reveal {
  0% {
    clip-path: inset(25.55% 38.95% 25.55% 38.95%);
    opacity: 1;
  }
  44% {
    clip-path: inset(25.55% 38.95% 25.55% 38.95%);
    opacity: 1;
  }
  100% {
    clip-path: inset(0% 0% 0% 0%);
    opacity: 1;
  }
}

@keyframes work-frame-shell {
  0%, 44% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes work-frame-current-next {
  from { transform: translateY(0); }
  to { transform: translateY(-101%); }
}

@keyframes work-frame-current-previous {
  from { transform: translateY(0); }
  to { transform: translateY(101%); }
}

@keyframes work-frame-enter-next {
  from { transform: translateY(101%); }
  to { transform: translateY(0); }
}

@keyframes work-frame-enter-previous {
  from { transform: translateY(-101%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --work-transition-duration: 1ms; }

  .work-copy__eyebrow,
  .work-copy h1,
  .work-copy__description {
    transition-duration: 1ms;
  }

  .process-work-study.is-transitioning .work-frame__current,
  .process-work-study.is-transitioning .work-frame__next {
    animation-duration: 1ms;
  }
}
