.gy-process-story {
  position: relative;
  overflow: hidden;
  padding: 24px clamp(20px, 2.1vw, 36px) clamp(92px, 9vw, 136px);
  color: #fff;
  background: #071522;
}

.gy-process-story__inner {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.gy-process-story__inner * {
  box-sizing: border-box;
  min-width: 0;
}

.gy-process-story__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gy-process-story__visual {
  --gy-process-x: 0%;
  --gy-process-y: 0%;
  --gy-process-scale: 1.08;
  position: relative;
  width: 100%;
  height: clamp(680px, 50vw, 860px);
  min-height: 0;
  max-height: 860px;
  overflow: hidden;
  scroll-margin-top: 152px;
  border: 1px solid rgba(201, 229, 233, .16);
  border-radius: 4px;
  background: #06111c;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .28);
  isolation: isolate;
}

.gy-process-story__photo {
  position: absolute;
  z-index: 1;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.54) saturate(.68) contrast(1.08);
  transform: translate3d(var(--gy-process-x), var(--gy-process-y), 0) scale(var(--gy-process-scale));
  transition: transform 1.05s cubic-bezier(.16, 1, .3, 1), filter .65s ease;
  will-change: transform, filter;
}

.gy-process-story__visual.is-changing .gy-process-story__photo {
  animation: gyProcessCamera 1.05s cubic-bezier(.16, 1, .3, 1);
}

.gy-process-story__visual[data-process-stage="1"] { --gy-process-x: -1.5%; --gy-process-y: 1%; --gy-process-scale: 1.11; }
.gy-process-story__visual[data-process-stage="2"] { --gy-process-x: -3%; --gy-process-y: 0%; --gy-process-scale: 1.14; }
.gy-process-story__visual[data-process-stage="3"] { --gy-process-x: -4%; --gy-process-y: -1%; --gy-process-scale: 1.17; }
.gy-process-story__visual[data-process-stage="4"] { --gy-process-x: -5%; --gy-process-y: -2%; --gy-process-scale: 1.2; }
.gy-process-story__visual[data-process-stage="5"] { --gy-process-x: -3%; --gy-process-y: -3%; --gy-process-scale: 1.16; }
.gy-process-story__visual[data-process-stage="6"] { --gy-process-x: -1%; --gy-process-y: -2%; --gy-process-scale: 1.12; }
.gy-process-story__visual[data-process-stage="7"] { --gy-process-x: 0%; --gy-process-y: 0%; --gy-process-scale: 1.08; }

.gy-process-story__shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 13, 22, .96) 0%, rgba(3, 13, 22, .74) 38%, rgba(3, 13, 22, .16) 72%),
    linear-gradient(0deg, rgba(3, 13, 22, .88), transparent 48%);
}

.gy-process-story__grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(rgba(205, 230, 236, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 230, 236, .22) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.gy-process-story__scanner {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: -12%;
  width: 18%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 232, 111, .13), transparent);
  transform: skewX(-8deg);
}

.gy-process-story__visual.is-changing .gy-process-story__scanner {
  animation: gyProcessScan 1.05s ease-out;
}

.gy-process-story__heading {
  position: absolute;
  z-index: 5;
  top: clamp(24px, 3.2vw, 48px);
  left: clamp(24px, 4.2vw, 68px);
  display: grid;
  gap: 5px;
}

.gy-process-story__heading span {
  color: #c8e86f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
}

.gy-process-story__heading small {
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.gy-process-story__panel {
  position: absolute;
  z-index: 6;
  top: clamp(116px, 14vw, 196px);
  left: clamp(24px, 4.2vw, 68px);
  width: min(560px, calc(100% - 48px));
  padding: 0 0 0 24px;
  border-left: 2px solid #c8e86f;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .68);
}

.gy-process-story__panel.is-swapping {
  animation: gyProcessPanel .72s cubic-bezier(.16, 1, .3, 1);
}

.gy-process-story__meta {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 470px);
}

.gy-process-story__meta span {
  color: #c8e86f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.gy-process-story__panel h3 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.gy-process-story__panel > p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.78;
  word-break: keep-all;
}

.gy-process-story__panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 0;
  margin: 22px 0 13px;
  list-style: none;
}

.gy-process-story__panel li {
  position: relative;
  padding-left: 13px;
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
  font-weight: 750;
}

.gy-process-story__panel li::before {
  position: absolute;
  top: .48em;
  left: 0;
  width: 6px;
  height: 2px;
  background: #c8e86f;
  content: '';
}

.gy-process-story__panel > small {
  display: block;
  color: rgba(255, 255, 255, .42);
  font-size: 10px;
  line-height: 1.55;
}

.gy-process-story__rail {
  position: absolute;
  z-index: 7;
  right: clamp(22px, 3vw, 48px);
  bottom: clamp(24px, 3vw, 46px);
  left: clamp(22px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.gy-process-story__rail button {
  position: relative;
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 16px 12px 6px;
  color: rgba(255, 255, 255, .45);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .32s ease, transform .32s ease;
}

.gy-process-story__rail button::before {
  position: absolute;
  top: -3px;
  left: 12px;
  width: 16px;
  height: 5px;
  background: rgba(255, 255, 255, .28);
  content: '';
  transition: width .32s ease, background .32s ease;
}

.gy-process-story__rail button span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.gy-process-story__rail button b {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gy-process-story__rail button i {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c8e86f;
}

.gy-process-story__rail button.is-active {
  color: #fff;
  transform: translateY(-3px);
}

.gy-process-story__rail button.is-active::before {
  width: 28px;
  background: #c8e86f;
}

.gy-process-story__rail button.is-active i {
  animation: gyProcessProgress 4.6s linear forwards;
}

@keyframes gyProcessCamera {
  0% { filter: blur(11px) brightness(.42) saturate(.58) contrast(1.12); transform: translate3d(calc(var(--gy-process-x) - 5%), var(--gy-process-y), 0) scale(calc(var(--gy-process-scale) + .14)); }
  24% { filter: blur(0) brightness(.54) saturate(.68) contrast(1.08); }
  100% { filter: blur(0) brightness(.54) saturate(.68) contrast(1.08); transform: translate3d(var(--gy-process-x), var(--gy-process-y), 0) scale(var(--gy-process-scale)); }
}

@keyframes gyProcessScan {
  0% { left: -12%; opacity: 0; }
  20%, 62% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

@keyframes gyProcessPanel {
  0% { opacity: .2; transform: translate3d(28px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes gyProcessProgress { to { width: 100%; } }

@media (max-width: 920px) {
  .gy-process-story { padding-inline: 20px; }
  .gy-process-story__visual { height: auto; min-height: 720px; max-height: none; scroll-margin-top: 118px; }
  .gy-process-story__panel { top: 108px; width: min(540px, calc(100% - 48px)); }
  .gy-process-story__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gy-process-story__rail button { padding-top: 10px; gap: 4px; }
}

@media (max-width: 640px) {
  .gy-process-story { padding: 16px 16px 82px; }
  .gy-process-story__visual { min-height: 760px; scroll-margin-top: 126px; }
  .gy-process-story__photo { inset: 0; width: 100%; height: 100%; object-position: 72% center; }
  .gy-process-story__shade { background: linear-gradient(180deg, rgba(3, 13, 22, .9) 0%, rgba(3, 13, 22, .66) 52%, rgba(3, 13, 22, .92) 100%); }
  .gy-process-story__heading { top: 26px; left: 22px; }
  .gy-process-story__panel { top: 102px; left: 22px; width: calc(100% - 44px); padding-left: 16px; }
  .gy-process-story__panel h3 { margin-top: 11px; font-size: 32px; }
  .gy-process-story__panel > p { font-size: 12.5px; line-height: 1.7; }
  .gy-process-story__panel ul { gap: 7px 13px; margin-top: 17px; }
  .gy-process-story__panel li { font-size: 10px; }
  .gy-process-story__panel > small { font-size: 9px; }
  .gy-process-story__rail { right: 15px; bottom: 18px; left: 15px; row-gap: 9px; }
  .gy-process-story__rail button { padding: 9px 5px 2px; }
  .gy-process-story__rail button::before { left: 5px; width: 10px; }
  .gy-process-story__rail button.is-active::before { width: 20px; }
  .gy-process-story__rail button b { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .gy-process-story__photo,
  .gy-process-story__visual.is-changing .gy-process-story__photo,
  .gy-process-story__scanner,
  .gy-process-story__panel,
  .gy-process-story__rail button,
  .gy-process-story__rail button i { animation: none !important; transition: none !important; }
  .gy-process-story__rail button.is-active i { width: 100%; }
}
