:root {
  color-scheme: dark;
  --background: #090909;
  --text: #f1f1ee;
  --muted: #adadad;
  --line: #373737;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.7 "Helvetica Neue", Arial, "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
a { color: inherit; text-underline-offset: .27em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.page { width: min(calc(100% - 112px), 1380px); margin-inline: auto; }
.header, .header nav, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header { min-height: 76px; border-bottom: 1px solid var(--line); }
.header a { text-decoration: none; }
.header a:hover { text-decoration: underline; }
.header nav { gap: clamp(1rem, 3vw, 2.65rem); font-size: .95rem; }
.brand { font-size: 1rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }

.hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  min-height: clamp(475px, 49vw, 720px);
  padding: clamp(22px, 4vw, 62px) 0;
}
.hero-copy { position: relative; z-index: 1; }
h1 {
  margin: 0 0 .24em -.045em;
  font: 700 clamp(4rem, 8.5vw, 9.25rem)/.88 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.087em;
}
h1 em { font-weight: inherit; font-style: normal; }
.hero-copy p { margin: 1.45rem 0 1.55rem; color: var(--muted); font-size: clamp(.95rem, 1.32vw, 1.13rem); }
.work-link { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid #858585; font-size: .92rem; text-decoration: none; }
.work-link:hover { border-color: var(--text); }
.stage {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  isolation: isolate;
  perspective: 1000px;
  aspect-ratio: 720 / 680;
}
.stage::before {
  position: absolute;
  z-index: -1;
  inset: -3% -7%;
  content: "";
  background: radial-gradient(ellipse at 50% 48%, #222 0, #141414 45%, transparent 73%);
}
.stage-background, .stage-object {
  display: block;
  width: min(100%, 650px);
  height: auto;
  justify-self: center;
  grid-area: 1 / 1;
}
.stage-background { pointer-events: none; }
.stage-object { display: grid; }
.stage-object > * { width: 100%; height: auto; grid-area: 1 / 1; }
.playback {
  position: absolute;
  right: 0;
  bottom: 0;
  min-height: 44px;
  padding: .3rem 0 .3rem .7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  cursor: pointer;
}
.playback:hover { color: var(--text); text-decoration: underline; }

.works, .about { border-top: 1px solid var(--line); padding: clamp(26px, 4vw, 58px) 0; }
.works { position: relative; isolation: isolate; }
.works::before {
  position: absolute;
  z-index: -1;
  inset: 1px 0 0 48%;
  content: "";
  background-image: linear-gradient(#292929 1px, transparent 1px), linear-gradient(90deg, #292929 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 90% 0%, #000 0, transparent 75%);
  opacity: .46;
  pointer-events: none;
}
h2 { margin: 0 0 1.1rem; font-size: clamp(1.5rem, 2.35vw, 2.12rem); letter-spacing: -.055em; line-height: 1.2; }
.work { border-bottom: 1px solid var(--line); }
.work:first-child { border-top: 1px solid var(--line); }
summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; min-height: 74px; padding: .95rem 0; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary h3 { display: grid; grid-template-columns: minmax(9rem, .45fr) 1.55fr; align-items: baseline; gap: .5rem; }
summary::after { content: ''; width: .52rem; height: .52rem; margin-right: .35rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: var(--muted); transform: rotate(45deg); }
details[open] summary::after { transform: rotate(225deg); }
summary:hover h3 { color: #fff; }
h3 { margin: 0; font-size: clamp(1.06rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.037em; }
.category { color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: 0; }
.note { max-width: 64ch; margin: 0 0 1.35rem max(9.5rem, 22.5%); }
.note p { margin: .25rem 0; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; }
.about h2 { margin: 0; }
.about p { max-width: 54ch; margin: 0 0 .65rem; }
footer { border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .page { width: calc(100% - 52px); }
}
@media (max-width: 670px) {
  .page { width: calc(100% - 36px); }
  .header { min-height: 62px; }
  .header nav { gap: .9rem; font-size: .89rem; }
  .brand { font-size: .91rem; }
  .hero { grid-template-columns: 1fr; gap: .5rem; min-height: 0; padding: 2.4rem 0 1rem; }
  h1 { font-size: clamp(3.65rem, 13.75vw, 6.2rem); }
  .hero-copy p { margin: 1rem 0 .7rem; }
  .stage { width: min(100%, 480px); justify-self: center; }
  .stage::before { inset: 0; }
  .about, summary h3 { grid-template-columns: 1fr; }
  summary h3 { gap: .1rem; }
  .note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
