:root {
  --outer: #ffffff;
  --paper: #ffffff;
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.62);
  --line: rgba(5, 5, 5, 0.24);
  --header-h: 92px;
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 64%, rgba(255, 255, 255, 0) 100%);
  --frame: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--outer);
  font-family: "Space Grotesk", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
}

.po-shell {
  min-height: 100vh;
}

#layout-mount {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

#layout-mount .po-header {
  height: var(--header-h);
  padding: 22px 28px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--panel);
  pointer-events: auto;
}

#layout-mount .po-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

#layout-mount .po-brand__logo {
  display: block;
  width: auto;
  height: clamp(12px, 0.9vw, 14px);
}

#layout-mount .po-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding-top: 8px;
}

#layout-mount .po-nav__item {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

#layout-mount .po-nav__item::after {
  content: "";
  opacity: 0;
  transition: opacity 150ms ease;
}

#layout-mount .po-nav__item:hover::after,
#layout-mount .po-nav__item:focus-visible::after {
  content: ":";
  opacity: 1;
}

#layout-mount .po-nav__item:focus-visible,
.po-actions a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.po-index {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(5, 5, 5, 0.028) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--outer);
  padding: calc(var(--header-h) + clamp(16px, 4vw, 44px)) clamp(18px, 4vw, 40px) clamp(18px, 4vw, 40px);
}

.po-poster {
  position: relative;
  width: min(88vw, 760px);
  min-height: min(78vh, 860px);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  align-items: center;
  justify-items: center;
  gap: clamp(18px, 3vh, 32px);
  padding: clamp(26px, 5vw, 54px) clamp(22px, 5vw, 58px);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.34);
  overflow: hidden;
}

.po-poster-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
}

.po-poster-brand img {
  display: block;
  width: auto;
  height: clamp(13px, 2vw, 18px);
}

.po-content {
  width: min(100%, 460px);
  align-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2vh, 20px);
}

.po-collection {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 2px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  justify-self: center;
  gap: 0 7px;
  color: var(--ink);
}

.po-collection__title {
  margin: 0;
  font-size: clamp(10px, 1.2vw, 12px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.po-collection__items {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  list-style: none;
  font-size: clamp(8px, 1vw, 10px);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.po-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: center;
  isolation: isolate;
  /*background: var(--frame);*/
  background: transparent;
}

.po-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.po-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.po-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.6) contrast(1.06);
}

.po-slide--one img {
  object-position: center;
}

.po-slide--two img {
  object-position: center;
}

.po-slide--three img {
  object-position: center;
}

.po-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 250, 247, 0.05);
  pointer-events: none;
}

.po-caption {
  margin: 0;
  color: var(--ink);
  font-size: clamp(9px, 1.6vw, 11px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.po-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 12px;
}

.po-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--ink);
  transition: background-color 180ms ease;
}

.po-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  padding-top: 2px;
}

.po-actions a {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.po-actions a:hover,
.po-actions a:focus-visible {
  color: var(--ink);
}

.po-actions a:focus-visible {
  outline-offset: 4px;
}

.po-dot.is-active {
  background: var(--ink);
}

@media (max-width: 640px) {
  .po-index {
    padding: calc(var(--header-h) + 12px) 18px 18px;
  }

  .po-poster {
    width: min(100%, 420px);
    min-height: 0;
    gap: 16px;
    padding: 24px 22px;
  }

  .po-stage {
    width: min(100%, 300px);
  }

  .po-content {
    width: min(100%, 300px);
  }

  .po-collection {
    margin-bottom: 14px;
    gap: 0 6px;
  }

  .po-collection__title {
    font-size: 10px;
  }

  .po-collection__items {
    gap: 3px;
    font-size: 8px;
  }
}
