/*
  Screening room: near-black so footage reads like a cinema screen.
  One warm accent (tungsten), used only for hover, current page, and selection.
*/

:root {
  --bg: #0b0b0b;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --dim: #3a3a3a;
  --line: #1f1f1f;
  --slate: #141414;
  --accent: #ff6a2b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #000;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 11, 11, 0.92);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.menu {
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
}

.bar nav {
  display: none;
  width: 100%;
  flex-direction: column;
  padding: 4px 0 8px;
}

.bar.open nav {
  display: flex;
}

.bar nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--accent);
}

/* shared */

main {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

h1,
h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 20px;
}

h3 {
  font-size: 19px;
}

.name {
  font-size: clamp(64px, 15vw, 232px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 28px -0.04em;
}

.kicker {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--muted);
}

.big {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  max-width: 26em;
  margin: 0 0 16px;
}

.small {
  max-width: 36em;
  color: var(--muted);
  margin: 0;
}

.meta,
.role {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.block {
  padding: 0 0 72px;
}

.soon {
  color: var(--muted);
  margin: 0;
  font-size: 20px;
}

/* frames: widescreen, empty ones show the title like a slate */

.frame {
  position: relative;
  aspect-ratio: 2.39 / 1;
  background: var(--slate);
  overflow: hidden;
  margin: 0 0 14px;
}

.frame img,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame video {
  opacity: 0;
  transition: opacity 0.25s;
}

.frame video.playing {
  opacity: 1;
}

.slate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  text-align: center;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2c2c2c;
  transition: color 0.2s;
}

.card:hover .slate {
  color: #4a4a4a;
}

/* home */

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

.stage-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}

.stage-layer.active {
  opacity: 0.4;
}

.hello {
  padding: 48px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.face {
  width: min(240px, 60%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.face:hover {
  filter: none;
}

.index {
  padding: 0 0 96px;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}

.row:hover {
  color: inherit;
}

.row-name {
  font-size: clamp(56px, 12vw, 176px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  transition:
    color 0.25s,
    transform 0.35s;
}

.row-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.row-line {
  color: var(--muted);
}

.row-count {
  color: var(--muted);
  transition: color 0.25s;
}

.rows.has-active .row .row-name {
  color: var(--dim);
}

.rows.has-active .row.active .row-name {
  color: var(--fg);
  transform: translateX(0.12em);
}

.row.active .row-count {
  color: var(--accent);
}

.tile,
.card {
  display: block;
  text-align: left;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.card:hover {
  color: inherit;
}

.card:hover h3 {
  color: var(--accent);
}

button.card {
  cursor: pointer;
}

.grid {
  display: grid;
  gap: 40px 20px;
}

/* category + project */

.head {
  padding: 48px 0 56px;
}

.others h2 {
  margin-bottom: 8px;
}

.others-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.others-links a {
  min-height: 44px;
  padding: 10px 0;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  border-bottom: 1px solid var(--line);
}

.project {
  padding: 32px 0 72px;
}

.crumb {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
}

.crumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.title {
  font-size: clamp(44px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
}

.hero {
  margin: 0 -20px 48px;
}

.hero img,
.hero video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  background: #000;
}

.hero .frame {
  margin: 0;
}

/* end-credits facts */

.credits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.credits div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.credits dt {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.credits dd {
  margin: 0;
  font-weight: 700;
}

.out {
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.write {
  max-width: 38em;
  margin: 40px auto 0;
}

.write p {
  color: #cfcfcf;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.breakdown {
  display: grid;
  gap: 16px;
  margin: 48px 0;
}

.breakdown img,
.breakdown video {
  width: 100%;
  display: block;
  background: #000;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.pager a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
}

/* footer */

.foot {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 56px 20px 64px;
  border-top: 1px solid var(--line);
}

.foot h2 {
  font-size: clamp(40px, 8vw, 112px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 20px;
}

.foot p {
  max-width: 36em;
  color: var(--muted);
  margin: 0 0 20px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.foot-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 19px;
}

/* viewer */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 8px 24px;
}

.viewer-body img,
.viewer-body video {
  display: block;
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 96px);
}

.viewer button {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
  font-size: 18px;
}

.viewer button:hover {
  color: var(--accent);
}

.viewer-close {
  position: absolute;
  top: 8px;
  right: 12px;
}

.viewer-prev,
.viewer-next {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .menu {
    display: none;
  }

  .bar nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 0 22px;
    padding: 0;
  }

  .hello.has-face {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .row-side {
    text-align: right;
    padding-bottom: 0.6em;
  }

  .grid,
  .breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bar,
  main,
  .foot {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero {
    margin-left: -40px;
    margin-right: -40px;
  }

  .hello {
    padding: 72px 0 96px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .frame video,
  .stage {
    display: none;
  }

  .row-name {
    transition: none;
  }
}
