:root {
  --ink: #111313;
  --muted: #6f7776;
  --line: #dbe3e2;
  --surface: #f4f7f6;
  --accent: #42c0b9;
  --white: #ffffff;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  width: clamp(142px, 14vw, 205px);
}

.brand img,
footer img {
  display: block;
  width: 100%;
  height: auto;
}

.header-meta {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}

main {
  padding: 0 clamp(20px, 4vw, 64px) clamp(84px, 10vw, 152px);
}

.work-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 218px;
  padding: clamp(42px, 6vw, 78px) 0 28px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 7.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.075em;
}

.work-count {
  display: grid;
  width: clamp(116px, 11vw, 170px);
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-align: center;
}

.work-count strong {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.work-count span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 72px) clamp(12px, 2.25vw, 38px);
  padding-top: 40px;
  border-top: 1px solid var(--ink);
}

.work-card {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--surface);
}

.poster::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(0 0 0 / 0.06);
  content: "";
  pointer-events: none;
}

.poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.play-mark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.78);
  border-radius: 50%;
  background: rgb(17 19 19 / 0.2);
  box-shadow: 0 4px 18px rgb(0 0 0 / 0.12);
  backdrop-filter: blur(8px);
  transition: transform 250ms ease, background 250ms ease;
}

.play-mark::before {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--white);
  content: "";
  transform: translate(-50%, -50%);
}

.card-meta {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-top: 15px;
  border-top: 1px solid transparent;
}

.card-meta span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-meta strong {
  min-height: 1.5em;
  font-size: clamp(0.94rem, 1.25vw, 1.16rem);
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
}

.work-card:hover .poster img,
.work-card:focus-visible .poster img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.025);
}

.work-card:hover .play-mark,
.work-card:focus-visible .play-mark {
  background: var(--accent);
  transform: scale(1.08);
}

.work-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 6px;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 260px;
  padding: 56px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

footer img {
  width: clamp(150px, 17vw, 240px);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.player-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.player-dialog::backdrop {
  background: rgb(9 11 11 / 0.96);
  backdrop-filter: blur(10px);
}

.player-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: 20px clamp(18px, 3vw, 44px) 28px;
  color: var(--white);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.player-topbar p {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
}

.player-topbar p span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.player-topbar p strong {
  font-size: 0.98rem;
  font-weight: 650;
}

.close-player {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0 10px 20px;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.close-player span {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 0.8;
}

#player {
  display: block;
  width: auto;
  max-width: min(100%, 540px);
  height: calc(100dvh - 120px);
  max-height: calc(100dvh - 120px);
  margin: 18px auto 0;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

@media (max-width: 899px) {
  .site-header {
    height: 72px;
  }

  .header-meta span:first-child {
    display: none;
  }

  .work-heading {
    min-height: 174px;
    padding-top: 34px;
  }

  .work-count {
    width: 104px;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 12px;
    padding-top: 20px;
  }

  .play-mark {
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
  }

  .card-meta {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-top: 11px;
  }

  footer {
    min-height: 210px;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 136px;
  }

  .work-heading {
    align-items: flex-end;
    min-height: 160px;
    padding: 32px 0 24px;
  }

  h1 {
    font-size: clamp(2.55rem, 13.5vw, 3.8rem);
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.65rem;
  }

  .work-count {
    width: 82px;
  }

  .work-count strong {
    font-size: 2rem;
  }

  .work-count span {
    margin-top: 5px;
    font-size: 0.52rem;
  }

  .card-meta strong {
    font-size: 0.84rem;
  }

  .card-meta span {
    font-size: 0.68rem;
  }

  footer {
    min-height: 174px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  footer img {
    width: 132px;
  }

  footer p {
    font-size: 0.62rem;
  }

  .player-shell {
    padding: 12px 12px 20px;
  }

  .player-topbar p {
    gap: 10px;
  }

  .close-player {
    font-size: 0;
  }

  .close-player span {
    font-size: 1.8rem;
  }

  #player {
    width: 100%;
    height: auto;
    max-width: calc((100dvh - 104px) * 9 / 16);
    max-height: calc(100dvh - 104px);
    margin-top: 12px;
  }
}

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

  .poster img,
  .play-mark {
    transition: none;
  }
}
