@font-face {
  font-family: Lato;
  src: url('./fonts/lato-regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --soft-paper: #f7f7f7;
  --ink: #022016;
  --black: #000;
  --accent: #f6e016;
  --wash: #00000006;
  --muted: #526159;
  --line: #02201626;
  --text: Lato, 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif;
  --display: 'Noto Sans KR', 'Noto Sans CJK KR', Lato, sans-serif;
  --gutter: 20px;
  --gap: 15px;
  --max-width: 2560px;
  --reading-width: 905px;
  --pill: 72.7px;
  --lead: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.45 var(--text); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-size: 14px; font-weight: 600; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.frame { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 10; padding: 10px; background: var(--accent); }

.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(max-content, calc((100% + 15px) / 6)) 1fr auto;
  align-items: center;
  gap: 0;
  min-height: 94px;
}
.identity { margin-inline: -15px; padding: 14px 15px; color: var(--black); }
.navigation { display: flex; align-items: center; gap: var(--gap); }
.navigation a:hover, .handle:hover, .scroll-link:hover, .channel-link:hover, .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu-toggle { display: none; }

.page-grid, .hero, .about, .work, .film, .archive, .contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.page-grid { max-width: var(--max-width); margin-inline: auto; align-items: start; }
.page-grid > * { grid-column: 1 / -1; }
.hero, .about, .work, .film, .archive, .contact { column-gap: var(--gap); }
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  align-content: space-between;
  padding-block: 110px 48px;
  overflow-x: clip;
}
.hero-collage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--gap);
  pointer-events: none;
}
.hero-card {
  position: relative;
  pointer-events: auto;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 18px 42px #0220161a;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-card--a { grid-column: 7 / 11; aspect-ratio: 16/9; margin-top: 8px; }
.hero-card--b { grid-column: 11 / -1; aspect-ratio: 9/16; margin-top: -18px; }
.hero-card--c { grid-column: 2 / 5; aspect-ratio: 16/9; margin-top: -42px; }
.hero-card--d { grid-column: 5 / 7; aspect-ratio: 9/16; margin-top: 12px; }
.hero-card-label {
  position: absolute;
  inset: auto 8px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--pill);
  background: #ffffffeb;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
@media (hover: hover) {
  .hero-card:hover { box-shadow: 0 24px 56px #02201629; z-index: 3; }
  .hero-card:hover img { transform: scale(1.04); }
  .hero-card:hover .hero-card-label { opacity: 1; transform: translateY(0); background: var(--accent); }
}
.hero-display {
  grid-column: 1 / -1;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .12em;
  margin-block: -18px 18px;
  font: 800 clamp(54px, 11.2vw, 168px)/.9 var(--display);
  letter-spacing: -.065em;
  color: var(--ink);
  pointer-events: none;
  z-index: 2;
}
.hero-amp { font-family: var(--text); font-weight: 400; color: var(--muted); }
.hero-copy { grid-column: 1 / 7; align-self: end; }
.tagline {
  max-width: 14em;
  margin-bottom: 6px;
  font-size: var(--lead);
  line-height: 1.22;
  letter-spacing: -.05em;
  text-wrap: balance;
  word-break: keep-all;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.scroll-link { display: inline-block; margin-top: 0; }
.scroll-link span { margin-left: 6px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.hero-pill:hover { filter: brightness(.96); }
.handle { grid-column: 10 / -1; justify-self: end; align-self: end; }

.about {
  min-height: clamp(640px, 70vw, 950px);
  align-content: center;
  align-items: baseline;
  padding-block: 100px;
  color: var(--black);
  background: var(--wash);
}
.about > h2 { grid-column: 1 / 3; }
.about-copy { grid-column: 3 / 11; }
.about-name {
  margin: 0 0 clamp(30px, 6vw, 80px) -.08em;
  font: 800 clamp(58px, 14vw, 162px)/1 var(--display);
  letter-spacing: -.105em;
  color: var(--ink);
  white-space: nowrap;
}
.about-name span { margin-inline: .14em .19em; font-family: var(--text); }
.about-copy > p:not(.about-name) { max-width: 45ch; word-break: keep-all; }
.about-copy > p + p { margin-top: 15px; }
.about-producer { color: var(--muted); }
.about-copy > p.about-producer { margin-top: 7px; }

.work { padding-block: clamp(80px, 12vw, 180px); }
.work-heading { grid-column: 1 / 5; display: flex; flex-wrap: wrap; gap: 6px 15px; align-items: baseline; }
.work-heading p { color: var(--muted); }
.filters { grid-column: 5 / -1; justify-self: end; display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  min-height: 38px;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
}
.filters button:hover { background: var(--wash); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--soft-paper); }
.film-grid { grid-column: 1 / -1; margin-top: 40px; }
.film { align-content: start; padding-block: 20px clamp(70px, 13vw, 220px); border-top: 1px solid var(--line); }
.film:last-child { padding-bottom: 0; }
.film-info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  margin-bottom: 20px;
}
.film-title { grid-column: 1 / 8; word-break: keep-all; }
.film-meta { grid-column: 9 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; color: var(--muted); }
.film-button {
  grid-column: 2 / 12;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.film-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 2px;
  background: var(--black);
}
.film-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.film-summary { grid-column: 2 / 9; max-width: 65ch; margin-top: 15px; color: var(--muted); }
.film[data-category="Off-Stage Trive"] .film-play { background: var(--accent); }
.film-play {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 15px;
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink);
}
.play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
@media (hover: hover) {
  .film-button:hover img { transform: scale(1.025); }
  .film-button:hover .film-play { background: var(--accent); }
}

.shorts { padding-block: 0 clamp(80px, 12vw, 160px); }
.shorts-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 30px var(--gap);
  margin-top: 40px;
}
.short-card[hidden] { display: none; }
.short-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.short-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9/16;
  border-radius: 2px;
  background: var(--black);
}
.short-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.short-info { margin-top: 10px; }
.short-category { color: var(--muted); font-size: 12px; }
.short-title { margin-top: 4px; font-size: 14px; line-height: 1.4; word-break: keep-all; }
@media (hover: hover) {
  .short-button:hover img { transform: scale(1.025); }
  .short-button:hover .film-play { background: var(--accent); }
}

.archive {
  align-items: start;
  padding-block: clamp(45px, 8vw, 115px);
  background: var(--soft-paper);
  color: var(--black);
}
.archive h2 { grid-column: 1 / 3; }
.archive-list { grid-column: 3 / -1; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.archive-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .35fr) auto;
  align-items: baseline;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  word-break: keep-all;
}
.archive-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.archive-list a > span:last-child { white-space: nowrap; }
.archive-category { color: var(--muted); }

.contact {
  min-height: 470px;
  align-content: center;
  justify-items: center;
  row-gap: 6px;
  padding-block: 80px;
}
.contact > * { grid-column: 1 / -1; }
.contact-lead { font: 700 clamp(42px, 8.2vw, 118px)/1.05 var(--display); letter-spacing: -.075em; text-align: center; }
.email { font-size: clamp(18px, 3.5vw, 32px); overflow-wrap: anywhere; }
.email:hover { text-decoration: underline; text-underline-offset: 4px; }
.channel-link { margin-top: 15px; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding-block: 20px; border-top: 1px solid var(--line); }

.player { width: min(calc(100% - 30px), var(--reading-width)); max-width: none; max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 2px; color: var(--ink); background: var(--paper); }
.player::backdrop { background: #000000c9; }
.player-header { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); padding: 7px 14px; }
.close-player { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; font-size: 26px; line-height: 1; border-radius: 100%; border: 1px solid var(--line); background: transparent; }
.close-player:hover { background: var(--accent); }
.player video { display: block; width: 100%; aspect-ratio: 16/9; max-height: 60dvh; background: var(--black); }
.player[data-short="true"] video { aspect-ratio: 9/16; max-width: 360px; max-height: 65dvh; margin-inline: auto; }
.player-details { padding: 20px; }
.player-meta { color: var(--muted); }
.player-details h2 { margin-top: 7px; font-size: clamp(24px, 4vw, 34px); line-height: 1.3; word-break: keep-all; }
.description { margin-block: 14px 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.player-details a { text-decoration: underline; text-underline-offset: 4px; }
.video-error { padding: 14px 20px 0; }

@media (max-width: 932px) {
  :root { --gutter: 17px; }
  .about-copy { grid-column: 3 / -1; }
  .film-button { grid-column: 1 / -1; }
  .film-summary { grid-column: 1 / 10; }
}
@media (max-width: 700px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 120px; }
  .header-role { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: var(--wash); }
  .menu-lines { display: block; width: 14px; height: 7px; border-block: 1px solid; }
  .menu-toggle[aria-expanded="true"] { background: var(--accent); }
  .navigation { display: none; position: absolute; right: var(--gutter); top: calc(100% - 30px); min-width: 160px; padding: 6px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
  .menu-toggle[aria-expanded="true"] + .navigation { display: grid; gap: 0; }
  .navigation a { padding-block: 9px; }

  .hero, .about, .work, .film, .archive, .contact { column-gap: 6px; }
  .hero { min-height: max(540px, 100svh); padding-block: 115px 40px; row-gap: 20px; }
  .hero-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-card--a, .hero-card--b, .hero-card--c, .hero-card--d { grid-column: auto; margin-top: 0; aspect-ratio: 16/10; }
  .hero-card-label { opacity: 1; transform: none; }
  .hero-display { margin-block: 4px 8px; }
  .hero-copy { grid-column: 1 / -1; }
  .tagline { max-width: 12em; }
  .handle { display: none; }
  .about { align-content: center; row-gap: 30px; }
  .about > h2, .about-copy, .work-heading, .filters, .film-title, .film-meta, .film-summary, .archive h2, .archive-list { grid-column: 1 / -1; }
  .about-name { margin-left: -.06em; }
  .filters { justify-self: start; margin-top: 20px; }
  .film-grid { margin-top: 30px; }
  .film-info { row-gap: 6px; margin-bottom: 15px; }
  .film-play { bottom: 6px; right: 6px; }
  .shorts { padding-block: 0 clamp(80px, 12vw, 160px); }
.shorts-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 30px var(--gap);
  margin-top: 40px;
}
.short-card[hidden] { display: none; }
.short-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.short-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9/16;
  border-radius: 2px;
  background: var(--black);
}
.short-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.short-info { margin-top: 10px; }
.short-category { color: var(--muted); font-size: 12px; }
.short-title { margin-top: 4px; font-size: 14px; line-height: 1.4; word-break: keep-all; }
@media (hover: hover) {
  .short-button:hover img { transform: scale(1.025); }
  .short-button:hover .film-play { background: var(--accent); }
}

.archive { row-gap: 15px; }
  .archive-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .archive-category { display: none; }
  .contact { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
