@font-face {
  font-family: "Saans";
  src:
    url("../fonts/Saans-Regular.woff2") format("woff2"),
    url("../fonts/Saans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src:
    url("../fonts/Saans-Medium.woff2") format("woff2"),
    url("../fonts/Saans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src:
    url("../fonts/Saans-SemiBold.woff2") format("woff2"),
    url("../fonts/Saans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src:
    url("../fonts/Saans-Bold.woff2") format("woff2"),
    url("../fonts/Saans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Saans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  color-scheme: light dark;

  --color-bg: #ffffff;
  --color-fg: #000000;
  --color-muted: rgb(0 0 0 / 0.2);
  --color-role: rgb(0 0 0 / 0.2);
  --color-toggle: #ebebeb;
  --color-knob: #000000;

  --color-tile-light: #d9d9d9;
  --color-tile-dark: #272727;

  --page-gutter: 40px;
  --optical-inset: 0px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --masthead-height: 99px;
  --footer-height: 125px;
  --radius-pill: 9px;

  --radius-tile: 20px;
  --radius-tile-wide: 22px;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quad: cubic-bezier(0.5, 1, 0.89, 1);
  --ease-in-out-quad: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: linear(
    0 0%, 0.03 2.7%, 0.102 5.4%, 0.479 16.2%, 0.633 21.6%, 0.749 27%,
    0.794 29.7%, 0.863 35.1%, 0.91 40.5%, 0.942 45.9%, 0.976 56.8%,
    0.994 73%, 0.999 100%
  );
  --spring-duration: 680ms;

  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --deck-move: 580ms;

  --ease: var(--ease-in-out-quad);
}

[data-theme="dark"] {
  --color-bg: #161616;
  --color-fg: #ffffff;
  --color-muted: rgb(255 255 255 / 0.2);
  --color-role: rgb(255 255 255 / 0.3);
  --color-toggle: #3c3c3c;
  --color-knob: #dfdfdf;
}

@keyframes theme-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes theme-fade-in {
  from {
    opacity: 0;
  }
}

::view-transition-old(root) {
  z-index: 1;
  mix-blend-mode: normal;
  animation: theme-fade-out 320ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

::view-transition-new(root) {
  z-index: 2;
  mix-blend-mode: normal;
  animation: theme-fade-in 320ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

.theme-transition,
.theme-transition body,
.theme-transition .theme-toggle,
.theme-transition .theme-toggle__knob {
  transition: background-color 320ms var(--ease);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-bg);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

img,
svg {
  display: block;
}

body:has(.index-marquee) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(.index-marquee) main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body:has(.index-marquee) main > .page {
  flex: 1;
}

.page {
  width: calc(100% - (var(--page-gutter) * 2));
  margin-inline: auto;

  container-type: inline-size;
}

.loader {
  --loader-size: 16.667vw;

  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  overflow: hidden;
  background: var(--color-bg);
}

html.is-loading .loader {
  display: block;
}

html.is-loading body {
  overflow: hidden;
}

.loader__words {
  margin: 0;
  padding: 0;
  padding-left: calc(var(--loader-size) * (20 / 240));
  list-style: none;

  translate: 0 calc(var(--loader-index, 0) * var(--loader-size) * -1);
  transition: translate var(--spring-duration) var(--ease-spring);
}

.loader__word {
  font-size: var(--loader-size);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.2;
  transition: opacity var(--spring-duration) var(--ease-spring);
}

.loader__word.is-active {
  opacity: 1;
}

.loader.is-leaving {
  opacity: 0;
  transition: opacity 400ms var(--ease-out-quart);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 18px;
  background: var(--color-fg);
  color: var(--color-bg);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--page-gutter);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--masthead-height);
  padding: 0 var(--page-gutter);
}

.masthead__year,
.masthead__nav a,
.masthead__clock,
.menu-toggle,
.menu__close,
.menu__nav a,
.colophon {
  font-size: 25px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 25px;
  text-decoration: none;
}

.masthead__year {
  justify-self: start;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 42px;
  justify-self: center;
}

.masthead__nav a,
.menu__nav a {
  opacity: 0.2;
}

.masthead__nav a[aria-current],
.masthead__nav a:hover,
.menu__nav a[aria-current],
.menu__nav a:hover {
  opacity: 1;
}

.masthead__meta {
  display: flex;
  align-items: center;
  gap: 38px;
  justify-self: end;
}

.masthead__clock {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-weight: var(--weight-medium);
}

.masthead__clock-icon {
  flex: none;
  width: 18px;
  height: 25px;
  fill: currentColor;
}

.theme-toggle {
  position: relative;
  flex: none;
  width: 52px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--color-toggle);
  cursor: pointer;
}

.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--color-knob);
  transition: translate 260ms var(--ease);
}

[data-theme="dark"] .theme-toggle__knob {
  translate: 24px 0;
}

.theme-toggle--lg {
  width: 78px;
  height: 42px;
  border-radius: 9px;
}

.theme-toggle--lg .theme-toggle__knob {
  top: 4.5px;
  left: 4.5px;
  width: 33px;
  height: 33px;
}

[data-theme="dark"] .theme-toggle--lg .theme-toggle__knob {
  translate: 36px 0;
}

.menu-toggle,
.menu__close {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu {
  display: none;
}

.display {
  margin: 0;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.display--index {
  margin-top: 1px;
  margin-left: -13px;
  width: calc(100% + 26px);
  font-size: max(34px, 9.1vw);
  line-height: 0.901;
}

.display--index .display__name,
.display--index .display__role {
  display: block;
}

.display--index .display__name {
  white-space: nowrap;
}

.display--index .display__role {
  color: var(--color-role);
}

.display--play {
  margin-top: 34px;
  margin-inline: auto;
  font-size: max(25px, 3.472vw);
  line-height: 1.2;
  text-align: center;
}

.index-marquee {
  --row-height: max(240px, 29.51vw);
  --tile-gap: 25px;
  --tile-lift: 20px;

  margin-top: calc(82px - var(--tile-lift));
  padding-top: var(--tile-lift);

  animation: index-fade-in 900ms var(--ease-out-quart) 120ms both;

  padding-inline: 27px;

  overflow-x: auto;
  scrollbar-width: none;
}

.index-marquee::-webkit-scrollbar {
  display: none;
}

html.is-loading .index-marquee {
  animation-play-state: paused;
}

@keyframes index-fade-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.index-marquee__track,
.index-row {
  display: flex;
  gap: var(--tile-gap);
}

.index-marquee__track {
  width: max-content;
}

.index-marquee.is-looping {
  padding-inline: 0;
  overflow: hidden;
  cursor: grab;

  touch-action: pan-y;
}

.index-marquee.is-dragging {
  cursor: grabbing;
}

.index-marquee.is-looping .index-marquee__track {
  user-select: none;
}

.index-tile {
  position: relative;
  margin: 0;
  flex: none;
  height: var(--row-height);
  border-radius: var(--radius-tile);
  background: var(--color-tile-dark);

  overflow: hidden;

  transition:
    transform var(--spring-duration) var(--ease-spring),
    opacity 400ms var(--ease-in-out-quad);
}

.index-tile img,
.index-tile video,
.play-tile img,
.play-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.index-tile video,
.play-tile video {
  display: block;
  border: 0;

  inset: auto;
  width: 108%;
  height: 108%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

.index-tile video::-webkit-media-controls,
.play-tile video::-webkit-media-controls,
.index-tile video::-webkit-media-controls-start-playback-button,
.play-tile video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.index-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 0) 33.5%,
    rgb(0 0 0 / 0.8) 93.9%
  );
  opacity: 0;
  transition: opacity 400ms var(--ease-in-out-quad);
  pointer-events: none;
}

.index-tile__caption {
  position: absolute;
  bottom: 21px;
  left: 27px;
  right: 27px;

  z-index: 1;

  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 20px;
  opacity: 0.9;

  translate: 0 calc(100% + 20px);
  transition: translate var(--spring-duration) var(--ease-spring);
}

@media (hover: hover) {
  .index-tile:hover {
    transform: translateY(calc(var(--tile-lift) * -1));
  }

  .index-tile:hover::after {
    opacity: 1;
  }

  .index-tile:hover .index-tile__caption {
    translate: 0 0;
  }

  .index-marquee__track:has(.index-tile:hover) .index-tile:not(:hover) {
    opacity: 0.5;
  }
}

@media (hover: none) {
  .index-tile::after {
    opacity: 1;
  }

  .index-tile__caption {
    translate: 0 0;
  }
}

.index-tile__caption span {
  display: block;
}

.index-tile--narrow {
  width: calc(var(--row-height) * (380 / 425));
}

.index-tile--wide {
  width: calc(var(--row-height) * (696 / 425));
  border-radius: var(--radius-tile-wide);
}

html.is-deck body:has(.index-marquee) {
  min-height: auto;
}

html.is-deck body:has(.index-marquee) main {
  flex: none;
  display: block;
}

html.is-deck .index-marquee {
  --deck-card-w: min(calc(100vw - 22px), 41.4vh);
  --deck-card-h: calc(var(--deck-card-w) * (425 / 380));

  flex: none;
  display: grid;
  place-items: center;

  margin-top: 0;
  padding: 56px 0 80px;
  overflow: visible;

  touch-action: pan-y;
}

html.is-deck body:has(.index-marquee) main > .page {
  flex: none;
}

html.is-deck .index-marquee__track,
html.is-deck .index-row {
  display: block;
  width: 100%;
}

html.is-deck .index-row {
  position: relative;
  height: calc(var(--deck-card-h) * 1.1659);
}

html.is-deck .index-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--deck-card-w);
  height: var(--deck-card-h);

  transform:
    translate(-50%, -50%)
    translateY(var(--slot-y, 0))
    scale(var(--slot-scale, 1));
  z-index: var(--slot-z, 0);
}

html.is-deck .index-tile[data-slot="0"] {
  --slot-y: -0.34%;
  --slot-scale: 1;
  --slot-z: 3;
}

html.is-deck .index-tile[data-slot="1"] {
  --slot-y: -16.63%;
  --slot-scale: 0.8333;
  --slot-z: 2;
}

html.is-deck .index-tile[data-slot="2"] {
  --slot-y: 24.96%;
  --slot-scale: 0.6667;
  --slot-z: 1;
  filter: brightness(0.9);
}

html.is-deck .index-tile[data-slot="out"] {
  --slot-y: 24.96%;
  --slot-scale: 0.6667;
  --slot-z: 0;
  filter: brightness(0.9);
  pointer-events: none;
}

html.is-deck .index-tile[data-slot="back"] {
  --slot-y: -16.63%;
  --slot-scale: 0.8333;
  --slot-z: 0;
  pointer-events: none;
  transition: none;
}

html.is-deck .colophon {
  margin-top: 0;
  padding-top: 8px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

html.is-deck .index-tile::after,
html.is-deck .index-tile__caption {
  display: none;
}

html.is-deck .index-tile {
  transition-property: transform, filter;
  transition-duration: var(--deck-move);
  transition-timing-function: var(--ease-in-out-quart);
}

html.is-deck .index-marquee.is-dragging .index-tile[data-slot="0"] {
  translate: var(--drag-x, 0) 0;
  transition: none;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16.31px;
  margin-top: 59px;
}

.play-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--color-tile-light);
}

.play-tile--narrow {
  aspect-ratio: 327.7697 / 410.1198;
}

.play-tile--wide {
  grid-column: span 2;
  aspect-ratio: 671.846 / 410.1198;
}

.play-grid {
  --reveal-step: 90ms;
}

html.is-revealing .play-tile {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms var(--ease-out-quart),
    transform 800ms var(--ease-out-quart);
}

html.is-revealing .play-tile:nth-child(3n + 2) {
  transition-delay: var(--reveal-step);
}

html.is-revealing .play-tile:nth-child(3n) {
  transition-delay: calc(var(--reveal-step) * 2);
}

html.is-revealing .play-tile.is-revealed {
  opacity: 1;
  transform: none;
}

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--footer-height);
  padding: 0 var(--page-gutter);
  color: var(--color-muted);
}

.colophon--loose {
  margin-top: 0;
}

.colophon__link {
  text-decoration: none;
}

.colophon p {
  margin: 0;
  text-align: right;
}

html.is-menu {
  overflow: hidden;
}

.about {
  padding-top: 93px;
  padding-bottom: 40px;
}

.about__intro h1,
.about__intro p,
.about h2,
.about h3,
.about p,
.about li {
  margin: 0;
  font-size: max(28px, 3.472vw);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.about__intro p + p {
  margin-top: 65px;
}

.about__section {
  margin-top: 90px;
}

.about__job {
  margin-top: 45px;
}

.about__job p,
.about__columns li {
  color: var(--color-muted);
}

.about h2,
.about h3 {
  font-size: max(28px, 3.472vw);
}

.about__columns {
  display: grid;
  grid-template-columns: minmax(0, 509px) minmax(0, 509px);
  gap: 0 70px;
  margin-top: 21px;
  padding: 0;
}

.about__columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

html.is-revealing .about h1,
html.is-revealing .about h2,
html.is-revealing .about__intro p,
html.is-revealing .about__job,
html.is-revealing .about__columns ul {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms var(--ease-out-quart),
    transform 800ms var(--ease-out-quart);
}

html.is-revealing .about h1.is-revealed,
html.is-revealing .about h2.is-revealed,
html.is-revealing .about__intro p.is-revealed,
html.is-revealing .about__job.is-revealed,
html.is-revealing .about__columns ul.is-revealed {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 860px) {
  .play-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .play-tile:nth-child(1) { order: 1; }
  .play-tile:nth-child(2) { order: 2; }
  .play-tile:nth-child(3) { order: 3; }
  .play-tile:nth-child(5) { order: 4; }
  .play-tile:nth-child(6) { order: 5; }
  .play-tile:nth-child(4) { order: 6; }

  .play-tile:nth-child(7) { order: 7; }
  .play-tile:nth-child(8) { order: 8; }
  .play-tile:nth-child(9) { order: 9; }
  .play-tile:nth-child(11) { order: 10; }
  .play-tile:nth-child(12) { order: 11; }
  .play-tile:nth-child(10) { order: 12; }

  html.is-revealing .play-tile:nth-child(3n + 2),
  html.is-revealing .play-tile:nth-child(3n) {
    transition-delay: 0s;
  }

  html.is-revealing .play-tile:nth-child(2),
  html.is-revealing .play-tile:nth-child(6),
  html.is-revealing .play-tile:nth-child(8),
  html.is-revealing .play-tile:nth-child(12) {
    transition-delay: var(--reveal-step);
  }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 25px;
    --masthead-height: 60px;
    --footer-height: auto;
  }

  .masthead {
    grid-template-columns: 1fr auto;
    height: var(--masthead-height);
    padding-top: 20px;
    align-items: start;
  }

  .masthead__year,
  .masthead__nav,
  .masthead__meta {
    display: none;
  }

  .menu-toggle {
    display: block;
    grid-column: 2;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: -0.02em;
  }

  .menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 50;
    padding: 40px 25px 25px;
    background: rgb(0 0 0 / 0.88);
    color: #ffffff;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
  }

  .menu__close {
    display: block;
    align-self: flex-end;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: -0.02em;
    color: #ffffff;
  }

  .menu__nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
  }

  .menu__nav a {
    font-size: 45px;
    font-weight: var(--weight-bold);
    letter-spacing: -0.02em;
    line-height: 45px;
    text-decoration: none;
    color: #ffffff;
  }

  .menu .theme-toggle {
    margin-top: 30px;
    background: #3c3c3c;
  }

  .menu .theme-toggle__knob {
    background: #dfdfdf;
  }

  .menu__colophon {
    margin-top: auto;
    font-size: 20px;
    font-weight: var(--weight-bold);
    letter-spacing: -0.02em;
    line-height: 20px;
    text-align: right;
    color: rgb(255 255 255 / 0.2);
  }

  .menu__colophon a {
    display: block;
    margin-bottom: 10px;
    color: inherit;
    text-decoration: none;
  }

  .menu__colophon p {
    margin: 0;
  }

  body:has(.index-marquee) {
    padding-bottom: 40px;
  }

  .display--index {
    margin-top: 35px;
    margin-left: -14px;
    width: calc(100% + 28px);
    font-size: 34px;
    line-height: 35px;
    letter-spacing: -0.02em;
  }

  .display--play {
    margin-top: 15px;
    font-size: 25px;
    line-height: 30px;
    letter-spacing: -0.02em;
  }

  .index-marquee {
    --row-height: clamp(200px, 40vh, 380px);
  }

  .colophon {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    height: auto;
    padding-top: 20px;
    padding-bottom: 25px;
    font-size: 20px;
    line-height: 20px;
  }

  .about {
    padding-top: 15px;
  }

  .about__intro,
  .about h2,
  .about h3,
  .about p,
  .about li {
    font-size: 25px;
    line-height: 32px;
  }

  .about__section {
    margin-top: 48px;
  }

  .about__columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0s;
  }

  .theme-transition,
  .theme-transition body,
  .theme-transition .theme-toggle,
  .theme-transition .theme-toggle__knob {
    transition: none;
  }

  .index-marquee {
    animation: none;
  }

  .index-tile,
  .index-tile::after,
  .index-tile__caption,
  html.is-deck .index-tile {
    transition-duration: 1ms;
  }

  html.is-revealing .play-tile,
  html.is-revealing .about h1,
  html.is-revealing .about h2,
  html.is-revealing .about__intro p,
  html.is-revealing .about__job,
  html.is-revealing .about__columns ul {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
