:root {
  color-scheme: dark;
  --shore-black: #050708;
  --shore-white: #f3f5f4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--shore-black);
  color: var(--shore-white);
}

body {
  min-height: 100%;
  font-family: Pretendard, SUIT, "Noto Sans KR", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shore-statement {
  --eyebrow-opacity: 0;
  --eyebrow-y: 16px;
  --line-one-opacity: 0;
  --line-one-y: 42px;
  --line-two-opacity: 0;
  --line-two-y: 54px;
  --support-opacity: 0;
  --support-y: 28px;
  --cue-opacity: 1;
  --progress-value: 0;
  position: relative;
  height: 245svh;
  min-height: 150rem;
  background: var(--shore-black);
}

.shore-statement__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--shore-black);
  isolation: isolate;
}

.shore-statement__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shore-statement__image {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  user-select: none;
}

.shore-statement__switcher {
  position: absolute;
  z-index: 4;
  top: clamp(6.4rem, 12.5vh, 8rem);
  right: clamp(1rem, 3.3vw, 4rem);
  display: grid;
  width: 14.5rem;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  grid-template-rows: auto auto;
  align-items: stretch;
  border: 1px solid rgb(235 242 241 / 16%);
  background: rgb(5 8 9 / 66%);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%);
  color: #eef2f1;
  -webkit-backdrop-filter: blur(16px) saturate(112%);
  backdrop-filter: blur(16px) saturate(112%);
}

.shore-statement__switcher button {
  display: grid;
  min-width: 0;
  min-height: 3.1rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgb(238 243 242 / 72%);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.shore-statement__switcher button:first-child {
  border-right: 1px solid rgb(235 242 241 / 12%);
}

.shore-statement__switcher button:nth-of-type(2) {
  border-left: 1px solid rgb(235 242 241 / 12%);
}

.shore-statement__switcher button:hover,
.shore-statement__switcher button:focus-visible {
  background: rgb(235 242 241 / 9%);
  color: #fff;
  outline: none;
}

.shore-statement__switcher p {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.18rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  text-align: center;
}

.shore-statement__switcher p span {
  color: rgb(235 241 240 / 42%);
  font-size: 0.48rem;
  font-variant-numeric: tabular-nums;
  font-weight: 660;
  letter-spacing: 0.18em;
}

.shore-statement__switcher p strong {
  overflow: hidden;
  color: rgb(245 248 247 / 88%);
  font-size: 0.57rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shore-statement__switcher small {
  grid-column: 1 / -1;
  padding: 0.38rem 0.6rem;
  border-top: 1px solid rgb(235 242 241 / 10%);
  color: rgb(235 241 240 / 34%);
  font-size: 0.44rem;
  font-weight: 630;
  letter-spacing: 0.2em;
  text-align: center;
}

.shore-statement__copy {
  position: absolute;
  z-index: 2;
  right: clamp(2rem, 6.5vw, 7rem);
  bottom: clamp(6.5rem, 10.5vh, 8.5rem);
  left: clamp(2rem, 6.5vw, 7rem);
  max-width: 78rem;
}

.shore-statement__eyebrow {
  margin: 0 0 clamp(1rem, 2.1vh, 1.5rem);
  color: rgb(233 238 237 / 58%);
  font-size: clamp(0.55rem, 0.52vw, 0.7rem);
  font-weight: 650;
  letter-spacing: 0.3em;
  opacity: var(--eyebrow-opacity);
  transform: translate3d(0, var(--eyebrow-y), 0);
  will-change: opacity, transform;
}

.shore-statement h1 {
  margin: 0;
  color: #f4f6f5;
  font-size: clamp(3.2rem, 5.25vw, 5.45rem);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-wrap: balance;
}

.shore-statement h1 > span {
  display: block;
  width: fit-content;
  text-shadow: 0 0.9rem 3.2rem rgb(0 0 0 / 34%);
  will-change: opacity, transform;
}

.shore-statement h1 > span:first-child {
  opacity: var(--line-one-opacity);
  transform: translate3d(0, var(--line-one-y), 0);
}

.shore-statement h1 > span:last-child {
  opacity: var(--line-two-opacity);
  transform: translate3d(0, var(--line-two-y), 0);
}

.shore-statement h1 em {
  font-style: normal;
}

.shore-statement__support {
  margin: clamp(1.7rem, 3.4vh, 2.5rem) 0 0;
  color: rgb(235 239 238 / 72%);
  font-size: clamp(0.92rem, 1.15vw, 1.2rem);
  font-weight: 410;
  letter-spacing: -0.02em;
  line-height: 1.65;
  opacity: var(--support-opacity);
  transform: translate3d(0, var(--support-y), 0);
  will-change: opacity, transform;
}

.shore-statement__cue {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(1.4rem, 4vh, 3.2rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: rgb(241 244 243 / 68%);
  font-size: 0.57rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  opacity: var(--cue-opacity);
}

.shore-statement__cue i {
  position: relative;
  display: block;
  width: 2.8rem;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 22%);
}

.shore-statement__cue i::after {
  position: absolute;
  inset: 0;
  background: #fff;
  content: "";
  transform: translateX(-100%);
  animation: shore-statement-cue 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.shore-statement__meter {
  position: absolute;
  z-index: 3;
  bottom: clamp(1.4rem, 4vh, 3.2rem);
  left: clamp(1.25rem, 4vw, 4rem);
  display: grid;
  width: min(15rem, 26vw);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  color: rgb(240 243 242 / 45%);
  font-size: 0.5rem;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.shore-statement__meter i {
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 14%);
}

.shore-statement__meter b {
  display: block;
  width: 100%;
  height: 100%;
  background: rgb(240 244 243 / 74%);
  transform: scaleX(var(--progress-value));
  transform-origin: left center;
}

@keyframes shore-statement-cue {
  0% { transform: translateX(-100%); }
  48%, 58% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (max-width: 48rem) {
  .shore-statement {
    height: 230svh;
    min-height: 110rem;
  }

  .shore-statement__image {
    object-position: 50% 50%;
  }

  .shore-statement__copy {
    right: 1.25rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    left: 1.25rem;
  }

  .shore-statement__switcher {
    top: 5.25rem;
    right: 0.85rem;
    width: 12.75rem;
    grid-template-columns: 2.2rem 1fr 2.2rem;
  }

  .shore-statement__switcher button {
    min-height: 2.7rem;
  }

  .shore-statement__eyebrow {
    margin-bottom: 0.9rem;
    font-size: 0.52rem;
    letter-spacing: 0.24em;
  }

  .shore-statement h1 {
    font-size: clamp(2.5rem, 11.2vw, 3.2rem);
    letter-spacing: -0.06em;
    line-height: 1.05;
  }

  .shore-statement h1 em {
    display: block;
  }

  .shore-statement__support {
    max-width: 20rem;
    margin-top: 1.55rem;
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .shore-statement__cue {
    right: 1.25rem;
    bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }

  .shore-statement__meter {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shore-statement {
    height: 150svh;
    min-height: 72rem;
  }

  .shore-statement__cue i::after {
    animation: none;
    transform: none;
  }
}
