:root {
  color: #eee9df;
  background: #030303;
  font-family: Helvetica, Arial, "Pretendard", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --scroll-progress: 0;
  --scroll-percent: 0%;
  --ambient-opacity: 0.38;
  --ambient-y: 12%;
  --ambient-tilt: -12deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 222, 145, 0.025), transparent 28vh),
    #030303;
  overflow-x: hidden;
  opacity: 1;
  transition:
    opacity 900ms ease,
    background 800ms ease;
}

body.is-loading {
  opacity: 0;
}

.ambient-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.82)),
    #030303;
}

.ambient-beam {
  position: absolute;
  inset: -16vh -12vw;
  background:
    conic-gradient(from 210deg at 50% var(--ambient-y), transparent 0 28deg, rgba(245, 201, 116, 0.16) 44deg, transparent 68deg 360deg),
    radial-gradient(circle at 50% var(--ambient-y), rgba(255, 230, 170, 0.16), transparent 25rem);
  opacity: var(--ambient-opacity);
  transform: rotate(var(--ambient-tilt));
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 30%, rgba(0, 0, 0, 0.62) 68%, rgba(0, 0, 0, 0.96) 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

main {
  width: 100%;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.cinema-curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 50% 38%, rgba(179, 132, 66, 0.18), transparent 22rem),
    #030303;
  opacity: 0;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: top;
  transition:
    opacity 800ms ease,
    transform 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

body.is-loading .cinema-curtain {
  opacity: 1;
  transform: scaleY(1);
}

body.is-transitioning .cinema-curtain {
  opacity: 1;
  transform: scaleY(1);
  transform-origin: bottom;
}

.cinema-status {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 88px;
  align-items: center;
  gap: 12px;
  color: rgba(226, 206, 161, 0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  pointer-events: none;
}

.cinema-status i {
  display: block;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(226, 206, 161, 0.85) var(--scroll-percent), rgba(226, 206, 161, 0.18) 0);
}

body.cinematic-mode .cinema-status {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 38px 42px 0;
  pointer-events: none;
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.brand {
  justify-self: start;
  color: #f3eee3;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 14px;
  white-space: nowrap;
  pointer-events: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #8e897f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  pointer-events: auto;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.year-nav button:hover {
  color: #d7b56d;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.music-toggle,
.view-toggle {
  justify-self: end;
  border: 1px solid rgba(223, 203, 157, 0.32);
  background: rgba(8, 8, 8, 0.78);
  color: #d8c899;
  min-width: 74px;
  height: 30px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  pointer-events: auto;
}

.music-toggle:hover,
.music-toggle[aria-pressed="true"],
.view-toggle:hover,
.view-toggle[aria-pressed="true"] {
  border-color: rgba(255, 223, 158, 0.92);
  color: #ffe5a8;
  box-shadow: 0 0 24px rgba(255, 196, 93, 0.14);
}

.mobile-title {
  display: none;
}

.hero-gallery {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 150px 90px 82px;
  isolation: isolate;
  overflow: hidden;
}

.hero-gallery::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38vh;
  z-index: -2;
  background: linear-gradient(180deg, transparent, rgba(70, 24, 14, 0.18), transparent);
}

.hero-copy {
  position: absolute;
  top: 138px;
  left: max(42px, 7vw);
  max-width: 310px;
  color: #d6c6a4;
}

.hero-copy p {
  margin: 0 0 8px;
  color: #8d826f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.featured-work {
  position: relative;
  width: min(700px, 64vw);
  margin: 0;
  text-align: center;
  opacity: 0.72;
  transform: scale(0.92);
  transition:
    transform 1.2s ease,
    opacity 1.2s ease,
    filter 1.2s ease;
  filter: brightness(0.72) saturate(0.86);
}

.featured-work::before,
.work-card::before {
  content: "";
  position: absolute;
  inset: -13%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 222, 145, 0.28), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(138, 38, 21, 0.14), transparent 54%);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.featured-work.is-visible,
.work-card.is-visible {
  opacity: 1;
  transform: scale(1.035);
  filter: brightness(1.02) saturate(1.04);
}

.featured-work.is-visible::before,
.work-card.is-visible::before {
  opacity: 1;
}

.featured-work img {
  display: block;
  width: 100%;
  max-height: 66vh;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: 50% 18%;
  background: #101010;
  border: 1px solid rgba(255, 226, 166, 0.15);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    opacity 420ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease;
}

.featured-work img.is-switching {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(8px) brightness(0.45);
}

.featured-work figcaption {
  min-height: 28px;
  margin-top: 18px;
  font-size: 16px;
  color: #d8d0bf;
  overflow-wrap: anywhere;
  transition:
    opacity 420ms ease,
    transform 520ms ease;
}

.featured-work figcaption span,
.work-card figcaption span {
  display: block;
  margin-bottom: 5px;
  color: #8d826f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.featured-work figcaption.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.gallery-button {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #8c8c8c;
  font-size: 46px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-button:hover {
  color: #f0dfaf;
}

.previous {
  left: 42px;
}

.next {
  right: 42px;
}

.section-block {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.reveal-text {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 900ms ease var(--reveal-delay, 0ms),
    transform 900ms ease var(--reveal-delay, 0ms),
    filter 900ms ease var(--reveal-delay, 0ms);
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-label {
  margin-bottom: 34px;
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.exhibition-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.exhibition-list article {
  border-top: 1px solid rgba(239, 220, 172, 0.18);
  padding-top: 18px;
}

.exhibition-list span {
  color: #8d826f;
  font-size: 12px;
  letter-spacing: 1px;
}

.exhibition-list h2,
.bio-copy h2 {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 400;
}

.exhibition-list p,
.bio-copy p,
.contact-block a {
  margin: 0;
  color: #d6d0c2;
  font-size: 15px;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 38px;
}

.year-nav button {
  border: 0;
  background: transparent;
  color: #777;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.year-nav button.active {
  color: #f2d99a;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px 32px;
  transition:
    opacity 420ms ease,
    transform 520ms ease;
}

.work-grid.is-changing {
  opacity: 0;
  transform: translateY(18px);
}

.work-card {
  position: relative;
  margin: 0;
  opacity: 0.4;
  transform: scale(0.88) translateY(32px);
  transition:
    transform 1s ease,
    opacity 1s ease,
    filter 1s ease;
  filter: brightness(0.58) saturate(0.74);
  cursor: pointer;
  outline: 0;
}

.work-card:nth-child(3n + 2) {
  margin-top: 86px;
}

.work-card:nth-child(3n) {
  margin-top: 30px;
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: 50% 18%;
  background: #101010;
  border: 1px solid rgba(255, 226, 166, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78);
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease,
    border-color 760ms ease,
    box-shadow 760ms ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  border-color: rgba(255, 226, 166, 0.38);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.86),
    0 0 54px rgba(229, 176, 86, 0.12);
  filter: brightness(1.08) saturate(1.06);
  transform: scale(1.025);
}

.work-card.variant-detail-top img,
.work-card.variant-detail-center img,
.work-card.variant-detail-face img,
.featured-work img.variant-detail-top,
.featured-work img.variant-detail-center,
.featured-work img.variant-detail-face {
  object-fit: cover;
}

.work-card.variant-detail-top img,
.featured-work img.variant-detail-top {
  object-position: 50% 18%;
}

.work-card.variant-detail-center img,
.featured-work img.variant-detail-center {
  object-position: 50% 45%;
}

.work-card.variant-detail-face img,
.featured-work img.variant-detail-face {
  object-position: 50% 26%;
}

.work-card figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: #c9c0ae;
}

.bio-copy {
  max-width: 680px;
}

.bio-copy p {
  margin-bottom: 34px;
  font-size: 18px;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

dt {
  font-size: 13px;
  font-weight: 700;
}

dd {
  margin: 0;
  font-size: 14px;
}

.contact-block {
  text-align: center;
}

.contact-block a {
  font-size: 22px;
  font-weight: 700;
}

footer {
  padding: 48px 24px 72px;
  text-align: center;
  color: #80786b;
  font-size: 9px;
  letter-spacing: 0.2px;
}

body.cinematic-mode {
  background:
    #000;
}

body.cinematic-mode .ambient-beam {
  opacity: min(0.9, calc(var(--ambient-opacity) + 0.2));
}

body.cinematic-mode .site-header {
  opacity: 0.28;
  transform: translateY(-12px);
}

body.cinematic-mode .site-header:hover {
  opacity: 1;
  transform: translateY(0);
}

body.cinematic-mode .hero-copy,
body.cinematic-mode .section-block:not(.works-block),
body.cinematic-mode footer {
  opacity: 0.62;
}

body.cinematic-mode .hero-copy {
  opacity: 0.28;
}

body.cinematic-mode footer {
  opacity: 0.38;
}

body.cinematic-mode .hero-gallery {
  min-height: 100svh;
  padding-top: 94px;
}

body.cinematic-mode .featured-work {
  width: min(82vw, 1120px);
  transform: scale(1);
}

body.cinematic-mode .featured-work img {
  max-height: 76vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-color: rgba(255, 226, 166, 0.24);
  box-shadow:
    0 44px 140px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(227, 170, 72, 0.14);
}

body.cinematic-mode .work-grid {
  grid-template-columns: 1fr;
  width: min(980px, 92vw);
  margin: 0 auto;
  gap: 120px;
}

body.cinematic-mode .work-card,
body.cinematic-mode .work-card:nth-child(n) {
  margin-top: 0;
}

body.cinematic-mode .work-card img {
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    display: none;
  }

  .mobile-title {
    display: block;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding: 14px 0 0;
    text-align: center;
  }

  .mobile-music {
    margin-top: 10px;
  }

  .mobile-view {
    margin-top: 18px;
  }

  .mobile-brand {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(300px, 100vw);
    margin: 24px auto 0;
    padding: 0 12px;
    color: #9b958a;
    font-size: 8.5px;
    font-weight: 700;
  }

  .hero-gallery {
    min-height: auto;
    width: 100vw;
    max-width: 100vw;
    padding: 64px 0 66px;
    overflow: hidden;
  }

  .hero-copy {
    position: static;
    width: min(300px, 76vw);
    margin: 0 auto 38px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 16px;
  }

  .featured-work {
    width: min(270px, 70vw);
  }

  .featured-work img {
    aspect-ratio: 3 / 4;
  }

  .featured-work figcaption {
    min-height: 42px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.35;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .featured-work.is-visible,
  .work-card.is-visible {
    transform: scale(1);
  }

  .gallery-button {
    display: none;
  }

  .section-block {
    width: min(100% - 36px, 640px);
    padding: 76px 0;
  }

  .exhibition-list,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    gap: 30px;
  }

  .work-card:nth-child(n) {
    margin-top: 0;
  }

  .bio-copy p {
    font-size: 16px;
  }

  dl div {
    grid-template-columns: 70px 1fr;
  }

  body.cinematic-mode .mobile-title {
    opacity: 0.28;
  }

  body.cinematic-mode .featured-work {
    width: min(340px, 88vw);
  }

  body.cinematic-mode .featured-work img,
  body.cinematic-mode .work-card img {
    aspect-ratio: 4 / 5;
  }

  .cinema-status {
    right: 18px;
    bottom: 16px;
    grid-template-columns: auto 54px;
  }
}
