/* Main-page document stage: three independent, readable document carousels. */
.s4-proof {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 128px var(--s3-pad) 136px;
  color: #eef8ff;
  background:
    radial-gradient(ellipse 56% 48% at 89% 22%, rgba(24, 107, 174, .52), transparent 76%),
    radial-gradient(ellipse 60% 55% at 12% 89%, rgba(8, 77, 126, .34), transparent 82%),
    linear-gradient(120deg, #020b16 7%, #061a2f 52%, #041326 100%);
}

.s4-proof::before {
  content: "";
  position: absolute;
  top: -28%;
  left: 70%;
  width: 16%;
  height: 128%;
  transform: rotate(21deg);
  background: linear-gradient(90deg, transparent, rgba(116, 209, 255, .11) 48%, transparent);
  filter: blur(11px);
  pointer-events: none;
}

.s4-proof::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: radial-gradient(circle, rgba(156, 226, 255, .6) 0 1px, transparent 1.5px);
  background-size: 93px 79px;
  mask-image: linear-gradient(90deg, transparent 16%, #000 72%);
  pointer-events: none;
}

.s4-proof__ambient {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .82;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: s4ProofAmbient 13s ease-in-out infinite alternate;
}

.s4-proof__head,
.s4-proof__layout { position: relative; z-index: 1; }

.s4-proof__head .s3-label { color: #8be3ff; }
.s4-proof__head h2 { text-shadow: 0 8px 35px rgba(8, 112, 180, .22); }
.s4-proof__head h2 strong { color: #78dbf5; }
.s4-proof__head > p { color: #b8cbd7; }

.s4-proof__layout {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(148, 211, 242, .29);
  border-bottom: 1px solid rgba(148, 211, 242, .29);
}

.s4-proof__item {
  position: relative;
  min-width: 0;
  padding: 32px clamp(22px, 2.8vw, 44px) 38px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-left: 1px solid rgba(148, 211, 242, .2);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(22, 73, 112, .14), rgba(3, 20, 40, .02) 75%);
  box-shadow: none;
}

.s4-proof__item:first-child { border-left: 0; }

.s4-proof__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, #67dbff, transparent);
  box-shadow: 0 0 21px rgba(84, 204, 255, .7);
}

.s4-proof__item > span { color: #8eddf9; font-size: 11px; }
.s4-proof__item > h3 {
  min-height: 72px;
  margin: 22px 0 9px;
  color: #fff;
  font-size: clamp(24px, 2.05vw, 31px);
  line-height: 1.28;
  word-break: keep-all;
}
.s4-proof__item > p {
  min-height: 80px;
  max-width: none;
  margin: 0;
  color: #b6cbd7;
  font-size: 14px;
  line-height: 1.72;
  word-break: keep-all;
}

.s4-proof .s4-proof__gallery {
  position: relative;
  height: 430px;
  min-height: 0;
  margin-top: 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
  perspective: 1000px;
  border: 1px solid rgba(115, 206, 248, .22);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 62% 65% at 50% 48%, rgba(87, 169, 226, .27), transparent 90%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(117, 207, 246, .025) 43px 44px),
    linear-gradient(150deg, rgba(11, 49, 83, .64), rgba(2, 15, 33, .73));
}

.s4-proof .s4-proof__gallery::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 15%;
  right: 15%;
  bottom: 67px;
  height: 38px;
  border-radius: 50%;
  background: rgba(59, 168, 233, .34);
  filter: blur(23px);
  pointer-events: none;
}

.s4-proof .s4-proof__gallery::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 10%;
  right: 10%;
  bottom: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(153, 231, 255, .64), transparent);
  box-shadow: 0 0 18px #60cfff;
  pointer-events: none;
}

.s4-proof .s4-proof__gallery.is-ready { display: block; }
.s4-proof .s4-proof__gallery figure {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.s4-proof .s4-proof__gallery.is-ready figure {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 100%;
  height: auto;
  opacity: .47;
  filter: blur(1.2px) brightness(.68);
  transform: translate(calc(-50% - 78px), -50%) scale(.73) rotateY(16deg);
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.16, 1, .3, 1), opacity .48s ease, filter .48s ease;
  pointer-events: none;
}
.s4-proof .s4-proof__gallery.is-ready figure.is-previous { z-index: 1; }
.s4-proof .s4-proof__gallery.is-ready figure.is-next {
  z-index: 2;
  transform: translate(calc(-50% + 78px), -50%) scale(.73) rotateY(-16deg);
}
.s4-proof .s4-proof__gallery.is-ready figure.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1) rotateY(0);
  pointer-events: auto;
}

.s4-proof .s4-proof__gallery figure button {
  width: auto;
  max-width: calc(100% - 48px);
  padding: 0;
  display: block;
  border: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 26px 38px rgba(0, 6, 18, .52), 0 0 0 1px rgba(221, 247, 255, .68), 0 0 24px rgba(94, 194, 255, .22);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}

.s4-proof .s4-proof__gallery figure.is-active button:hover,
.s4-proof .s4-proof__gallery figure.is-active button:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 30px 42px rgba(0, 6, 18, .48), 0 0 0 2px #9eeaff, 0 0 34px rgba(77, 201, 255, .34);
}
.s4-proof .s4-proof__gallery figure button:focus-visible { outline: 2px solid #9eeaff; outline-offset: 5px; }
.s4-proof .s4-proof__gallery figure button:hover img { transform: none; filter: none; }

.s4-proof .s4-proof__gallery img,
.s4-proof__item:nth-child(2) .s4-proof__gallery img,
.s4-proof__item:nth-child(3) .s4-proof__gallery img {
  width: auto;
  max-width: 100%;
  height: 330px;
  margin: 0;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  filter: none;
}

.s4-proof .s4-proof__gallery figcaption {
  width: 100%;
  margin: 0;
  color: #f2faff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.s4-proof .s4-proof__gallery.is-ready figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.s4-proof .s4-proof__gallery:not(.is-ready) img { width: 100%; height: 165px; object-fit: contain; }

.s4-proof__controls {
  position: absolute;
  z-index: 5;
  inset: 0;
  min-height: 0;
  padding: 0;
  display: block;
  pointer-events: none;
}
.s4-proof__controls[hidden] { display: none; }
.s4-proof__controls > button {
  position: absolute;
  top: 44%;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(169, 226, 248, .5);
  border-radius: 50%;
  color: #e9f9ff;
  background: rgba(8, 41, 69, .76);
  font: 400 20px/1 sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  pointer-events: auto;
  transition: background .2s, border-color .2s, transform .2s;
}
.s4-proof__controls > [data-proof-prev] { left: 11px; }
.s4-proof__controls > [data-proof-next] { right: 11px; }
.s4-proof__controls > button:hover,
.s4-proof__controls > button:focus-visible {
  border-color: #b6f2ff;
  background: #0879b7;
  transform: translateY(calc(-50% - 2px));
}
.s4-proof__controls button:focus-visible { outline: 2px solid #b6f2ff; outline-offset: 3px; }
.s4-proof__count {
  position: absolute;
  top: 12px;
  right: 13px;
  color: #8eaebb;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.s4-proof__count strong { color: #9ceaff; font-weight: 700; }
.s4-proof__tabs {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 13px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}
.s4-proof__tabs button {
  min-width: 0;
  height: 33px;
  padding: 0 11px;
  border: 1px solid rgba(176, 226, 251, .5);
  border-radius: 999px;
  color: #cfdfeb;
  background: rgba(5, 34, 60, .77);
  box-shadow: 0 3px 13px rgba(0, 5, 16, .32);
  font: 650 10px/1 Pretendard, "Noto Sans KR", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.s4-proof__tabs button:hover,
.s4-proof__tabs button.is-active {
  color: #fff;
  border-color: #a6ebff;
  background: rgba(18, 111, 169, .74);
  box-shadow: 0 0 16px rgba(85, 202, 255, .3);
}

.s4-proof .s4-proof__more {
  margin-top: auto;
  padding-top: 22px;
  color: #e8f8ff;
  border-color: rgba(156, 217, 245, .36);
}
.s4-proof .s4-proof__more i { color: #8ae4ff; }
.s4-proof .s4-proof__more:hover { color: #fff; border-color: #8ae4ff; }

@keyframes s4ProofAmbient { to { opacity: .58; } }

@media (max-width: 1200px) and (min-width: 981px) {
  .s4-proof__layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s4-proof__item { padding-inline: 24px; }
  .s4-proof .s4-proof__gallery { height: 385px; }
  .s4-proof .s4-proof__gallery img { height: 305px; }
}

@media (max-width: 980px) {
  .s4-proof__layout { grid-template-columns: 1fr; }
  .s4-proof__item,
  .s4-proof__item:first-child { border-left: 0; border-top: 1px solid rgba(148, 211, 242, .22); }
  .s4-proof__item:first-child { border-top: 0; }
  .s4-proof__item > h3,
  .s4-proof__item > p { min-height: 0; }
  .s4-proof .s4-proof__gallery { height: 445px; }
  .s4-proof .s4-proof__gallery img { height: 360px; }
}

@media (max-width: 760px) {
  .s4-proof { padding: 94px var(--s3-pad) 105px; }
  .s4-proof__ambient { width: 180%; left: -50%; opacity: .56; }
  .s4-proof__layout { margin-top: 55px; }
  .s4-proof__item { margin: 0; padding: 27px 0 34px; background: transparent; }
  .s4-proof__item > h3 { margin: 17px 0 9px; font-size: clamp(25px, 7.2vw, 30px); }
  .s4-proof__item > p { font-size: 14px; }
  .s4-proof .s4-proof__gallery { height: 390px; margin-top: 22px; }
  .s4-proof .s4-proof__gallery img { height: 306px; }
  .s4-proof__controls > button { width: 38px; height: 38px; }
  .s4-proof__controls > [data-proof-prev] { left: 8px; }
  .s4-proof__controls > [data-proof-next] { right: 8px; }
  .s4-proof__tabs button { height: 32px; padding-inline: 9px; font-size: 9.5px; }
}

@media (max-width: 360px) {
  .s4-proof .s4-proof__gallery { height: 352px; }
  .s4-proof .s4-proof__gallery img { height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  .s4-proof__ambient { animation: none !important; }
  .s4-proof .s4-proof__gallery.is-ready figure { transition: none !important; }
  .s4-proof .s4-proof__gallery button,
  .s4-proof__controls button { transition: none; }
}
