:root {
  --ink: #0d0d0c;
  --white: #f4f4ef;
  --muted: #8b8b84;
  --orange: #ff5a1f;
  --soft: rgba(244, 244, 239, 0.16);
  --sans: "Syne", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --title: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, monospace;
  --edge-x: 40px;
  --edge-double: 80px;
  --edge-bottom: 40px;
  --bottom-text-align: 4px;
  --about-gap: 54px;
  --about-col: calc((100vw - var(--edge-double) - var(--about-gap)) / 2);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--title);
  letter-spacing: 0;
}

body {
  user-select: none;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.035), transparent 34%),
    #0e0e0d;
}

.grain,
.fluid {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.grain {
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  animation: grainShift 0.55s steps(2) infinite;
}

.fluid {
  z-index: 60;
  opacity: 0.82;
  mix-blend-mode: screen;
  background:
    radial-gradient(10px 10px at var(--tx, 50%) var(--ty, 50%), rgba(255, 90, 31, 0.95), transparent 58%),
    radial-gradient(48px 48px at var(--tx, 50%) var(--ty, 50%), rgba(255, 90, 31, 0.22), transparent 68%);
  filter: blur(2px);
  transform: translateZ(0);
  transition: background-position 200ms linear;
}

.chrome {
  position: fixed;
  z-index: 20;
  text-transform: uppercase;
}

.top {
  top: 46px;
  left: var(--edge-x);
  right: var(--edge-x);
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 130px;
  align-items: start;
  pointer-events: none;
}

.brand {
  position: relative;
  display: inline-block;
  margin-top: -16px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  text-decoration: none;
  text-transform: lowercase;
  overflow: visible;
  pointer-events: auto;
}

.brand span {
  display: block;
  clip-path: inset(-8px -18px -18px 0);
}

.brand::before,
.brand::after,
.detail-brand::before,
.detail-brand::after,
.about-mark::before,
.about-mark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.brand::before,
.detail-brand::before,
.about-mark::before {
  color: rgba(255, 90, 31, 0.42);
  clip-path: inset(18% 0 58% 0);
  filter: blur(0.2px);
  transform: translateX(0);
}

.brand::after,
.detail-brand::after,
.about-mark::after {
  color: rgba(244, 244, 239, 0.46);
  clip-path: inset(58% 0 26% 0);
  transform: translateX(0);
}

.brand:hover,
.detail-brand:hover,
.about-mark:hover {
  animation: logoGlitch 520ms steps(2, end) 1;
}

.brand:hover::before,
.brand:hover::after,
.detail-brand:hover::before,
.detail-brand:hover::after,
.about-mark:hover::before,
.about-mark:hover::after {
  opacity: 0;
  animation: logoGlitchLayer 520ms steps(2, end) 1;
}

nav {
  grid-column: 3;
  justify-self: end;
  margin-top: -6px;
  pointer-events: auto;
}

nav button,
.close,
.side-links a,
.about-links a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
  padding: 18px;
  margin: -18px;
}

nav button::before,
nav button::after,
.close::before,
.close::after,
.side-links a::before,
.side-links a::after,
.about-links a::before,
.about-links a::after {
  content: attr(data-text);
  position: absolute;
  inset: 18px;
  color: var(--white);
  pointer-events: none;
  opacity: 0;
}

nav button::before,
.close::before,
.side-links a::before,
.about-links a::before {
  color: rgba(255, 90, 31, 0.5);
  clip-path: inset(14% 0 62% 0);
}

nav button::after,
.close::after,
.side-links a::after,
.about-links a::after {
  color: rgba(244, 244, 239, 0.38);
  clip-path: inset(62% 0 22% 0);
}

nav button:hover,
.close:hover,
.side-links a:hover,
.about-links a:hover {
  animation: microGlitch 420ms steps(2, end) 1;
}

nav button:hover::before,
nav button:hover::after,
.close:hover::before,
.close:hover::after,
.side-links a:hover::before,
.side-links a:hover::after,
.about-links a:hover::before,
.about-links a:hover::after {
  animation: microGlitchLayer 420ms steps(2, end) 1;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.detail-copy dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.shelf-labels {
  position: fixed;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  perspective: 900px;
}

.shelf-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 170px;
  min-width: 124px;
  max-width: 220px;
  color: rgba(244, 244, 239, 0.66);
  font-family: var(--title);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform-origin: center bottom;
  transition: color 160ms ease, opacity 180ms ease, filter 180ms ease;
}

.shelf-label.is-selected {
  width: min(300px, 28vw);
  max-width: min(300px, 28vw);
}

.shelf-title,
.shelf-award {
  position: relative;
  display: block;
  text-wrap: balance;
}

.shelf-title::before,
.shelf-title::after,
.shelf-award::before,
.shelf-award::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.shelf-title::before,
.shelf-award::before {
  color: rgba(255, 90, 31, 0.62);
  clip-path: inset(12% 0 64% 0);
}

.shelf-title::after,
.shelf-award::after {
  color: rgba(244, 244, 239, 0.42);
  clip-path: inset(58% 0 26% 0);
}

.shelf-title {
  transform: translateY(-4px);
  opacity: 0;
  transition: font-size 180ms ease, opacity 180ms ease;
}

.shelf-award {
  position: absolute;
  top: calc(var(--book-h, 300px) + var(--label-gap, 42px) + var(--award-gap, 20px));
  left: 0;
  right: 0;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  transition: opacity 180ms ease, font-size 180ms ease;
}

.shelf-label.is-selected {
  color: var(--white);
}

.shelf-label.is-selected {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255, 90, 31, 0.13));
}

.shelf-label.is-selected .shelf-title {
  opacity: 1;
}

.shelf-label.is-award-visible .shelf-award {
  opacity: 1;
}

.shelf-label.is-selected .shelf-title {
  animation: titleSelectGlitch 560ms steps(2, end) 1;
  font-size: 22px;
}

.shelf-label.is-selected .shelf-award {
  animation: titleSelectGlitch 560ms steps(2, end) 1;
  font-size: 18px;
}

.shelf-label.is-selected .shelf-title::before,
.shelf-label.is-selected .shelf-title::after,
.shelf-label.is-selected .shelf-award::before,
.shelf-label.is-selected .shelf-award::after {
  animation: titleSelectGlitchLayer 560ms steps(2, end) 1;
}

dt {
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
  text-transform: uppercase;
}

dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  text-transform: uppercase;
}

.instruction,
.detail-studio {
  position: absolute;
  left: var(--edge-x);
  bottom: calc(var(--edge-bottom) + var(--bottom-text-align));
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.side-links {
  right: var(--edge-x);
  bottom: var(--edge-bottom);
  display: grid;
  justify-items: end;
  gap: 5px;
  z-index: 34;
}

.side-links a {
  color: var(--white);
  display: block;
  padding: 4px 0;
  margin: 0;
  pointer-events: auto;
  text-align: right;
}

body.about-open > .side-links {
  opacity: 0;
  pointer-events: none;
}

.detail,
.about-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.detail.is-open,
.about-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.detail {
  color: var(--white);
}

.detail-brand {
  position: absolute;
  left: var(--edge-x);
  top: 30px;
  z-index: 4;
  color: var(--white);
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  text-decoration: none;
  text-transform: lowercase;
}

.detail::before {
  content: "";
  position: absolute;
  inset: 9vh 12vw 10vh 12vw;
  pointer-events: none;
}

.detail-media {
  position: absolute;
  left: 50%;
  top: 21vh;
  width: min(62vw, calc(54vh * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090909;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.detail-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.detail-title {
  position: absolute;
  left: 42px;
  top: 21vh;
  width: 30vw;
  z-index: 2;
}

.detail-title p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
}

.detail-title h2 {
  margin: 0;
  max-width: 300px;
  color: var(--white);
  font-family: var(--title);
  font-size: clamp(20px, 2.8vw, 42px);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}

.detail-copy {
  position: absolute;
  left: 42px;
  top: calc(21vh + 122px);
  width: min(300px, 25vw);
  display: block;
  z-index: 2;
}

.detail-copy > p {
  margin: 0;
  color: rgba(244, 244, 239, 0.86);
  font-size: 12px;
  line-height: 1.55;
  text-transform: none;
  white-space: pre-line;
}

.detail-award {
  margin-top: 12px !important;
  color: var(--orange) !important;
  font-size: 10px !important;
  font-weight: 800;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.detail-award:empty {
  display: none;
}

.detail-copy dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 26px 0 0;
}

.detail-copy dd {
  color: var(--white);
}

.close {
  position: absolute;
  right: var(--edge-x);
  top: 46px;
  z-index: 3;
}

.about-panel .close {
  position: fixed;
}

.thumb-rail {
  position: absolute;
  right: 50px;
  top: 21vh;
  bottom: 25vh;
  width: 86px;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 4px 5px 4px 7px;
  scroll-padding-block: 50%;
}

.thumb-rail::-webkit-scrollbar {
  display: none;
}

.thumb-rail button {
  width: 72px;
  height: 106px;
  overflow: hidden;
  border: 1px solid rgba(244, 244, 239, 0.18);
  opacity: 0.52;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.thumb-rail button:hover,
.thumb-rail button.is-active {
  opacity: 1;
  border-color: var(--orange);
  transform: translateX(-2px);
}

.thumb-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) contrast(0.95);
}

@media (max-width: 900px), (max-height: 760px) {
  .detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 128px var(--edge-x) 156px;
    scrollbar-width: none;
  }

  .detail::-webkit-scrollbar {
    display: none;
  }

  .detail::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 33;
    display: block;
    height: 112px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(13, 13, 12, 0.98) 0%, rgba(13, 13, 12, 0.9) 58%, rgba(13, 13, 12, 0) 100%);
  }

  .detail::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 33;
    height: 118px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(13, 13, 12, 0.98) 0%, rgba(13, 13, 12, 0.9) 58%, rgba(13, 13, 12, 0) 100%);
  }

  .detail-brand,
  .detail .close,
  .detail-studio {
    position: fixed;
    z-index: 34;
  }

  .detail-brand {
    left: var(--edge-x);
    top: 30px;
    font-size: 34px;
    line-height: 1.08;
  }

  .detail-media,
  .detail-title,
  .detail-copy,
  .thumb-rail {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
  }

  .detail-title {
    position: relative;
    order: 1;
    margin: 0 0 18px;
  }

  .detail-title h2 {
    max-width: 100%;
    font-size: clamp(23px, 9vw, 38px);
    line-height: 1;
  }

  .detail-media {
    position: relative;
    order: 2;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    margin: 0 0 26px;
    transform: none;
  }

  .detail-copy {
    position: relative;
    order: 3;
    margin: 0 0 28px;
  }

  .detail-copy > p {
    font-size: 12px;
    line-height: 1.55;
  }

  .detail-copy dl {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .thumb-rail {
    position: relative;
    order: 4;
    display: flex;
    min-height: 84px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
    padding: 4px 12px 12px;
    scroll-padding-inline: 50%;
  }

  .thumb-rail button {
    flex: 0 0 auto;
    width: 50px;
    height: 72px;
    scroll-snap-align: center;
  }

  .thumb-rail button:hover,
  .thumb-rail button.is-active {
    transform: translateY(-2px);
  }
}

@media (min-width: 901px) and (max-width: 1360px) {
  .detail {
    display: block;
    overflow: hidden;
    padding: 0;
  }

  .detail-title {
    position: absolute;
    left: var(--edge-x);
    top: max(182px, 21vh);
    width: clamp(170px, 17vw, 230px);
    margin: 0;
  }

  .detail-title h2 {
    max-width: 100%;
    font-size: clamp(25px, 2.7vw, 36px);
    line-height: 0.98;
  }

  .detail-copy {
    position: absolute;
    left: var(--edge-x);
    top: calc(max(182px, 21vh) + 126px);
    width: clamp(170px, 17vw, 230px);
    margin: 0;
  }

  .detail-copy > p {
    font-size: 11px;
    line-height: 1.55;
  }

  .detail-copy dl {
    gap: 10px;
    margin-top: 22px;
  }

  .detail-media {
    position: absolute;
    left: calc(var(--edge-x) + clamp(210px, 21vw, 285px));
    top: max(182px, 21vh);
    width: min(
      calc(100vw - (var(--edge-x) * 2) - clamp(210px, 21vw, 285px) - 120px),
      calc(54vh * 16 / 9)
    );
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    transform: none;
  }

  .thumb-rail {
    position: absolute;
    right: var(--edge-x);
    top: max(182px, 21vh);
    bottom: 16vh;
    width: 86px;
    display: grid;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 5px 4px 7px;
    scroll-padding-block: 50%;
  }

  .thumb-rail button {
    width: 72px;
    height: 96px;
  }
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px var(--about-gap);
  padding: 17vh var(--edge-x) 7vh;
  background: #0f100f;
  overflow: auto;
  transition: visibility 0s linear 260ms;
}

.about-panel.is-open {
  transition: visibility 0s linear 0s;
}

.about-panel {
  scrollbar-width: none;
}

.about-panel::-webkit-scrollbar {
  display: none;
}

.about-mark {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: block;
  width: var(--about-col);
  color: var(--white);
  font-family: var(--sans);
  font-size: clamp(94px, calc((100vw - var(--edge-double) - var(--about-gap)) / 7), 229px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: lowercase;
  opacity: 0.01;
  overflow: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    filter 160ms ease,
    opacity 180ms ease,
    text-shadow 160ms ease,
    transform 160ms ease;
  will-change: opacity;
}

.about-mark:hover {
  filter: none;
}

.about-mark span {
  display: block;
  width: max-content;
  white-space: nowrap;
  clip-path: inset(-52px 100% -190px 0);
  transition: clip-path 680ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: clip-path;
}

.about-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  max-width: 760px;
  padding-top: 54px;
}

.about-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.62;
  text-transform: none;
}

.about-copy .about-en {
  margin-top: 20px;
  color: rgba(244, 244, 239, 0.58);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

.about-copy small {
  display: inline-block;
  margin-top: 12px;
  font-size: 1em;
  line-height: 1.62;
}

.award-grid {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--about-gap);
  margin-top: 36px;
}

.award-grid h3 {
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244, 244, 239, 0.18);
  color: var(--white);
  font-size: 25px;
  line-height: 1;
}

.award-grid dl {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 17px 28px;
  margin: 0;
}

.award-grid dt,
.award-grid dd {
  margin: 0;
  color: rgba(244, 244, 239, 0.78);
  font-size: 16px;
  line-height: 1.15;
  text-transform: none;
}

.award-grid dd {
  color: var(--white);
  font-weight: 800;
  justify-self: end;
  text-align: right;
}

.about-copy,
.award-grid > div {
  opacity: 0.01;
  transition:
    clip-path 680ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 180ms ease;
  will-change: clip-path, opacity;
}

.about-copy {
  clip-path: inset(-32px 100% -110px 0);
}

.award-grid > div {
  clip-path: inset(0 0 100% 0);
}

.about-panel.is-open .about-copy {
  clip-path: inset(-32px 0 -110px 0);
  opacity: 1;
}

.about-panel.is-open .about-mark {
  opacity: 1;
}

.about-panel.is-open .about-mark span {
  clip-path: inset(-52px 0 -190px 0);
}

.about-panel.is-open .award-grid > div {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.about-panel.is-open .about-mark {
  transition-delay: 80ms;
}

.about-panel.is-open .about-mark span {
  transition-delay: 80ms;
}

.about-panel.is-open .about-copy {
  transition-delay: 210ms;
}

.about-panel.is-open .award-grid > div:first-child {
  transition-delay: 390ms;
}

.about-panel.is-open .award-grid > div:last-child {
  transition-delay: 520ms;
}

.about-studio,
.about-links {
  position: fixed;
  z-index: 32;
}

.about-studio {
  left: var(--edge-x);
  bottom: calc(var(--edge-bottom) + var(--bottom-text-align));
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.about-links {
  right: var(--edge-x);
  bottom: var(--edge-bottom);
  display: grid;
  justify-items: end;
  gap: 5px;
}

.about-links a {
  display: block;
  color: var(--white);
  font-size: 11px;
  line-height: 1;
  margin: 0;
  padding: 4px 0;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
}

.about-links a::before,
.about-links a::after {
  inset: 4px 0;
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-2%, 1%, 0);
  }
  100% {
    transform: translate3d(1%, -2%, 0);
  }
}

@keyframes homeReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.01;
    filter: blur(5px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes homeLogoReveal {
  0% {
    clip-path: inset(-8px 100% -18px 0);
    opacity: 0.01;
  }
  100% {
    clip-path: inset(-8px -18px -18px 0);
    opacity: 1;
  }
}

@keyframes logoGlitch {
  0% {
    transform: translate3d(0, 0, 0);
    filter: contrast(1);
    text-shadow: none;
  }
  9% {
    transform: translate3d(1px, -0.5px, 0) skewX(-0.6deg);
    filter: contrast(1.12) drop-shadow(0 0 12px rgba(255, 90, 31, 0.18));
    text-shadow:
      1px 0 rgba(255, 90, 31, 0.24),
      0 0 10px rgba(255, 90, 31, 0.12);
  }
  17% {
    transform: translate3d(-1.4px, 0.4px, 0) skewX(0.4deg);
    filter: contrast(1.08);
  }
  29% {
    transform: translate3d(0.8px, 0, 0);
    filter: contrast(1.16) drop-shadow(0 0 8px rgba(255, 90, 31, 0.14));
  }
  41% {
    transform: translate3d(-0.6px, 0, 0);
    filter: contrast(1.02);
    text-shadow: none;
  }
  56% {
    transform: translate3d(0.3px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
    filter: contrast(1);
    text-shadow: none;
  }
}

@keyframes logoGlitchLayer {
  0%,
  100% {
    clip-path: inset(48% 0 44% 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    clip-path: inset(11% 0 76% 0);
    transform: translate3d(-5px, 0, 0);
    opacity: 0.52;
  }
  19% {
    clip-path: inset(36% 0 50% 0);
    transform: translate3d(4px, 0, 0);
    opacity: 0.46;
  }
  32% {
    clip-path: inset(60% 0 28% 0);
    transform: translate3d(-3px, 0, 0);
    opacity: 0.42;
  }
  47% {
    clip-path: inset(78% 0 9% 0);
    transform: translate3d(2px, 0, 0);
    opacity: 0.28;
  }
  68% {
    clip-path: inset(48% 0 44% 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

@keyframes microGlitch {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    filter: none;
    text-shadow: none;
  }
  18% {
    transform: translate3d(0.8px, 0, 0);
    filter: drop-shadow(0 0 6px rgba(255, 90, 31, 0.18));
    text-shadow: 1px 0 rgba(255, 90, 31, 0.2);
  }
  36% {
    transform: translate3d(-0.8px, 0, 0);
  }
  54% {
    transform: translate3d(0.4px, 0, 0);
    filter: none;
  }
}

@keyframes microGlitchLayer {
  0%,
  100% {
    clip-path: inset(48% 0 44% 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  20% {
    clip-path: inset(10% 0 70% 0);
    transform: translate3d(-2px, 0, 0);
    opacity: 0.45;
  }
  42% {
    clip-path: inset(58% 0 28% 0);
    transform: translate3d(2px, 0, 0);
    opacity: 0.34;
  }
  62% {
    opacity: 0;
  }
}

@keyframes titleSelectGlitch {
  0%,
  100% {
    transform: translateY(-4px) translateX(0);
    filter: none;
    text-shadow: none;
  }
  14% {
    transform: translateY(-4px) translateX(1.2px);
    filter: drop-shadow(0 0 9px rgba(255, 90, 31, 0.16));
    text-shadow: 1px 0 rgba(255, 90, 31, 0.22);
  }
  28% {
    transform: translateY(-4px) translateX(-1px);
  }
  46% {
    transform: translateY(-4px) translateX(0.5px);
    text-shadow: none;
  }
}

@keyframes titleSelectGlitchLayer {
  0%,
  100% {
    clip-path: inset(48% 0 44% 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  16% {
    clip-path: inset(12% 0 72% 0);
    transform: translate3d(-3px, 0, 0);
    opacity: 0.55;
  }
  34% {
    clip-path: inset(50% 0 34% 0);
    transform: translate3d(3px, 0, 0);
    opacity: 0.42;
  }
  52% {
    clip-path: inset(72% 0 14% 0);
    transform: translate3d(-2px, 0, 0);
    opacity: 0.28;
  }
  70% {
    opacity: 0;
  }
}

body.home-reveal #gl,
body.home-reveal .top nav,
body.home-reveal .instruction,
body.home-reveal .side-links,
body.home-reveal .shelf-labels {
  animation: homeReveal 820ms cubic-bezier(0.76, 0, 0.24, 1) both;
}

body.home-reveal .brand span {
  animation: homeLogoReveal 820ms cubic-bezier(0.76, 0, 0.24, 1) both;
  animation-delay: 50ms;
}

body.home-reveal .instruction {
  animation-delay: 110ms;
}

body.home-reveal .shelf-labels {
  animation-delay: 170ms;
}

body.home-reveal .side-links,
body.home-reveal .top nav {
  animation-delay: 230ms;
}

@media (max-width: 760px) {
  :root {
    --edge-x: 28px;
    --edge-double: 56px;
    --edge-bottom: 34px;
    --about-gap: 34px;
  }

  .top {
    left: var(--edge-x);
    right: var(--edge-x);
    top: 46px;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: start;
  }

  .brand {
    font-size: 34px;
    margin-top: -16px;
    min-width: max-content;
  }

  .detail-brand {
    left: var(--edge-x);
    top: 30px;
    font-size: 34px;
    line-height: 1.08;
  }

  .center-title {
    display: none;
  }

  nav {
    margin-top: -6px;
  }

  .close {
    top: 46px;
  }

  nav button,
  .close,
  .side-links a,
  .about-links a {
    font-size: 10px;
  }

  .detail-copy dl {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 128px var(--edge-x) 156px;
    scrollbar-width: none;
  }

  .detail::-webkit-scrollbar {
    display: none;
  }

  .detail::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 33;
    display: block;
    height: 112px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(13, 13, 12, 0.98) 0%, rgba(13, 13, 12, 0.9) 58%, rgba(13, 13, 12, 0) 100%);
  }

  .detail-brand,
  .detail .close,
  .detail-studio {
    position: fixed;
    z-index: 34;
  }

  .instruction,
  .detail-studio {
    left: var(--edge-x);
    bottom: calc(var(--edge-bottom) + var(--bottom-text-align));
  }

  .side-links {
    right: var(--edge-x);
    bottom: var(--edge-bottom);
  }

  .detail-media {
    position: relative;
    order: 2;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 0 26px;
    transform: none;
  }

  .detail-title {
    position: relative;
    order: 1;
    left: auto;
    top: auto;
    width: 100%;
    margin: 0 0 18px;
  }

  .detail-title h2 {
    max-width: 100%;
    font-size: clamp(23px, 9vw, 38px);
    line-height: 1;
  }

  .detail-copy {
    position: relative;
    order: 3;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    margin: 0 0 28px;
  }

  .detail-copy > p {
    font-size: 12px;
    line-height: 1.55;
  }

  .thumb-rail {
    position: relative;
    order: 4;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 12px 10px;
    scroll-padding-inline: 50%;
  }

  .thumb-rail button {
    flex: 0 0 auto;
    width: 50px;
    height: 72px;
  }

  .about-panel {
    display: block;
    overflow: auto;
    padding: 116px var(--edge-x) 136px;
  }

  .about-panel::before,
  .about-panel::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    z-index: 31;
    pointer-events: none;
    background: #0f100f;
  }

  .about-panel::before {
    top: 0;
    height: 88px;
  }

  .about-panel::after {
    bottom: 0;
    height: 96px;
  }

  .about-panel .close,
  .about-studio,
  .about-links {
    z-index: 34;
  }

  .about-mark {
    width: 100%;
    font-size: clamp(74px, calc((100vw - var(--edge-double)) / 3.5), 205px);
    transform: translateY(0);
  }

  .about-copy p {
    margin: 42px 0;
    font-size: 13px;
  }

  .about-copy .about-en {
    margin: 22px 0 42px;
  }

  .award-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 42px;
  }

  .award-grid h3 {
    font-size: 20px;
  }

  .award-grid dt,
  .award-grid dd {
    font-size: 13px;
  }

  .about-studio {
    left: var(--edge-x);
    bottom: calc(var(--edge-bottom) + var(--bottom-text-align));
  }

  .about-links {
    right: var(--edge-x);
    bottom: var(--edge-bottom);
  }
}
