:root {
  color-scheme: dark;
  --ink: #050508;
  --ink-soft: #0c0e15;
  --paper: #f4f7ff;
  --muted: #a7afbf;
  --violet: #6d3bff;
  --blue: #2563eb;
  --cyan: #22d3c5;
  --acid: #d8ff38;
  --line: rgb(255 255 255 / 17%);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 190 190' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.035;
  pointer-events: none;
}

a {
  color: inherit;
}

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

button {
  color: inherit;
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 99px;
  background: var(--acid);
  color: var(--ink);
  font: 800 0.72rem/1 var(--mono);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-head {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem clamp(1rem, 2.7vw, 3rem);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  mix-blend-mode: screen;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.72rem;
  font: 800 clamp(0.72rem, 1vw, 0.92rem)/1 var(--mono);
  letter-spacing: 0.13em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2.15rem;
  filter: drop-shadow(0 0 16px rgb(34 211 197 / 48%));
}

.site-head nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.5rem);
}

.site-head nav a,
.head-index {
  font: 750 0.64rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-head nav a {
  position: relative;
}

.site-head nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-head nav a:hover::after,
.site-head nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.head-index {
  justify-self: end;
  color: var(--acid);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(7rem, 12vh, 10rem) clamp(1rem, 4.5vw, 5rem)
    clamp(2.4rem, 6vh, 5rem);
}

.hero-film,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-film {
  z-index: -4;
  object-fit: cover;
  scale: 1.015;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(180deg, rgb(2 3 8 / 35%) 0%, transparent 34%),
    linear-gradient(0deg, rgb(2 3 8 / 92%) 0%, transparent 58%),
    linear-gradient(90deg, rgb(2 3 8 / 54%) 0%, transparent 68%);
}

.hero-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: clamp(4rem, 8vw, 8rem) clamp(4rem, 8vw, 8rem);
  mask-image: linear-gradient(transparent 8%, #000 68%, transparent);
}

.hero-copy {
  width: min(100%, 94rem);
}

.signal-label,
.section-number,
.manifesto-kicker {
  font: 800 0.65rem/1.2 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.signal-label span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 1.5rem var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.42;
    scale: 0.72;
  }
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4.4rem, 12.5vw, 12.5rem);
  font-weight: 850;
  letter-spacing: -0.088em;
  line-height: 0.72;
  text-wrap: balance;
}

.hero h1 i {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: max(1px, 0.018em) var(--paper);
}

.hero-bottom {
  display: grid;
  width: min(100%, 58rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.hero-bottom p {
  max-width: 39rem;
  margin: 0;
  color: rgb(244 247 255 / 82%);
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.hero-bottom a,
.closing a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  font: 800 0.67rem/1 var(--mono);
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hero-bottom a:hover,
.hero-bottom a:focus-visible,
.closing a:hover,
.closing a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-rail {
  position: absolute;
  right: clamp(0.8rem, 2vw, 2rem);
  bottom: clamp(2rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  color: rgb(244 247 255 / 72%);
  font: 800 0.55rem/1 var(--mono);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.hero-rail b {
  margin-top: 1rem;
  color: var(--acid);
}

.manifesto {
  position: relative;
  min-height: 100svh;
  padding: clamp(7rem, 12vw, 13rem) clamp(1.2rem, 7vw, 8rem);
  background:
    radial-gradient(circle at 81% 20%, rgb(37 99 235 / 22%), transparent 28rem),
    radial-gradient(circle at 8% 88%, rgb(109 59 255 / 19%), transparent 32rem),
    var(--ink);
  overflow: hidden;
}

.manifesto-mark {
  position: absolute;
  top: 5%;
  right: -8%;
  width: min(50vw, 48rem);
  opacity: 0.16;
  filter: blur(0.5px) drop-shadow(0 0 8rem rgb(34 211 197 / 55%));
  rotate: 10deg;
}

.manifesto-kicker {
  margin: 0 0 clamp(2rem, 5vw, 5rem);
  color: var(--cyan);
}

.manifesto h2 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8.4vw, 9rem);
  font-weight: 820;
  letter-spacing: -0.078em;
  line-height: 0.83;
}

.manifesto h2 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: max(1px, 0.014em) var(--paper);
}

.manifesto-note {
  max-width: 37rem;
  margin: clamp(3rem, 7vw, 7rem) 0 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.archive {
  padding: clamp(6rem, 10vw, 10rem) clamp(1rem, 3vw, 3.5rem);
  background: #f1f2ed;
  color: #101116;
}

.archive-head {
  display: grid;
  grid-template-columns: 1.4fr minmax(16rem, 0.6fr);
  align-items: end;
  gap: 3rem;
}

.section-number {
  margin: 0 0 1rem;
  color: #4f5561;
}

.archive-head h2 {
  margin: 0;
  font-size: clamp(3.6rem, 9.7vw, 10rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.75;
}

.archive-head > p {
  max-width: 30rem;
  margin: 0;
  color: #515866;
  font-size: 0.92rem;
  line-height: 1.55;
}

.filter-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  gap: 0.5rem;
  margin: clamp(3rem, 7vw, 7rem) -1rem 2rem;
  padding: 0.8rem 1rem;
  background: rgb(241 242 237 / 88%);
  border-block: 1px solid rgb(16 17 22 / 13%);
  backdrop-filter: blur(18px);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-bar button {
  flex: 0 0 auto;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(16 17 22 / 20%);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: 800 0.62rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.filter-bar button span {
  margin-left: 0.35rem;
  opacity: 0.55;
}

.filter-bar button:hover,
.filter-bar button:focus-visible,
.filter-bar button.is-active {
  background: #101116;
  color: #f4f6ff;
}

.motion-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: minmax(10rem, 15vw);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.25rem);
}

.motion-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  min-height: 22rem;
  border: 0;
  border-radius: clamp(0.8rem, 1.3vw, 1.4rem);
  background: #090a0f;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transform: translateY(2rem);
  opacity: 0;
}

.motion-card.is-seen {
  animation: card-in 900ms var(--ease) forwards;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-card[data-size="wide"] {
  grid-column: span 8;
}

.motion-card[data-size="tall"] {
  grid-column: span 4;
  grid-row: span 3;
  min-height: 34rem;
}

.motion-card[data-size="hero"] {
  grid-column: 1 / -1;
  grid-row: span 3;
  min-height: min(68vw, 52rem);
}

.motion-card[hidden] {
  display: none;
}

.motion-card video,
.motion-card > img {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 600ms ease,
    scale 900ms var(--ease);
}

.motion-card[data-format="portrait"] video,
.motion-card[data-format="portrait"] > img {
  object-position: 50% 45%;
}

.motion-card::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 7%) 28%, rgb(0 0 0 / 86%) 100%),
    linear-gradient(90deg, rgb(0 0 0 / 32%), transparent 60%);
  content: "";
}

.motion-card::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.motion-card:hover video,
.motion-card:focus-visible video,
.motion-card:hover > img,
.motion-card:focus-visible > img {
  filter: saturate(1.14) brightness(1.04);
  scale: 1.04;
}

.card-index,
.card-category {
  position: absolute;
  top: 1rem;
  font: 800 0.55rem/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-index {
  left: 1rem;
}

.card-category {
  right: 1rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 999px;
  background: rgb(5 5 8 / 24%);
  backdrop-filter: blur(8px);
}

.card-copy {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
}

.card-copy h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 3.5rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.motion-card[data-size="hero"] .card-copy h3 {
  font-size: clamp(2.8rem, 7vw, 8rem);
}

.card-copy p {
  max-width: 40rem;
  margin: 0.55rem 0 0;
  color: rgb(255 255 255 / 72%);
  font: 650 0.65rem/1.45 var(--mono);
  letter-spacing: 0.03em;
}

.card-play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: none;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #050508;
  font-size: 1rem;
}

.archive-status {
  margin: 1.5rem 0 0;
  color: #59606c;
  font: 750 0.62rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-align: right;
  text-transform: uppercase;
}

.closing {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.2rem, 7vw, 8rem);
  isolation: isolate;
  overflow: hidden;
}

.closing video,
.closing-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing video {
  object-fit: cover;
}

.closing-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(5 5 8 / 92%), rgb(5 5 8 / 20%) 72%),
    linear-gradient(0deg, rgb(5 5 8 / 55%), transparent 60%);
}

.closing-copy p {
  margin: 0 0 1rem;
  color: var(--cyan);
  font: 800 0.68rem/1 var(--mono);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.closing h2 {
  max-width: 8ch;
  margin: 0 0 clamp(2rem, 4vw, 4rem);
  font-size: clamp(4rem, 11vw, 11rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.76;
}

.closing a {
  width: max-content;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
}

footer p,
footer > a:last-child {
  margin: 0;
  color: var(--muted);
  font: 750 0.58rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

footer > a:last-child {
  justify-self: end;
}

.film-dialog {
  width: min(94vw, 92rem);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 1.2rem;
  background: #090a0f;
  color: var(--paper);
  box-shadow: 0 3rem 10rem rgb(0 0 0 / 78%);
  overflow: auto;
}

.film-dialog::backdrop {
  background: rgb(1 2 5 / 86%);
  backdrop-filter: blur(20px);
}

.dialog-close {
  position: fixed;
  z-index: 4;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  background: rgb(5 5 8 / 72%);
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.dialog-stage {
  display: grid;
  min-height: min(70vh, 50rem);
  place-items: center;
  background: #030407;
}

.dialog-stage video {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.dialog-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: clamp(1.2rem, 3vw, 2.8rem);
}

.dialog-copy p {
  max-width: 48rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.dialog-copy [data-dialog-category] {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  font: 800 0.62rem/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dialog-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dialog-actions > a {
  font: 800 0.62rem/1 var(--mono);
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.dialog-actions > a[hidden] {
  display: none;
}

.dialog-actions div {
  display: flex;
  gap: 0.5rem;
}

.dialog-actions button {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dialog-actions button:hover,
.dialog-actions button:focus-visible,
.dialog-close:hover,
.dialog-close:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-head {
    grid-template-columns: 1fr auto;
  }

  .site-head nav {
    display: none;
  }

  .head-index {
    grid-column: 2;
  }

  .hero-bottom,
  .archive-head {
    grid-template-columns: 1fr;
  }

  .hero-bottom a {
    width: max-content;
  }

  .archive-head {
    align-items: start;
  }

  .motion-grid {
    grid-auto-rows: minmax(9rem, 22vw);
  }

  .motion-card,
  .motion-card[data-size="tall"] {
    grid-column: span 6;
  }

  .motion-card[data-size="wide"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-head {
    padding-block: 0.85rem;
  }

  .brand span {
    font-size: 0.62rem;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 22vw, 7.4rem);
  }

  .hero-rail {
    display: none;
  }

  .hero-bottom {
    gap: 1.2rem;
  }

  .manifesto {
    min-height: 86svh;
  }

  .manifesto-mark {
    top: 4%;
    right: -28%;
    width: 95vw;
  }

  .manifesto h2 {
    font-size: clamp(3rem, 15vw, 5.5rem);
  }

  .motion-grid {
    display: block;
  }

  .motion-card,
  .motion-card[data-size="wide"],
  .motion-card[data-size="tall"],
  .motion-card[data-size="hero"] {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
    margin-bottom: 0.8rem;
  }

  .motion-card[data-format="landscape"],
  .motion-card[data-size="hero"] {
    aspect-ratio: 16 / 11;
  }

  .card-copy {
    right: 4rem;
  }

  .card-play {
    display: grid;
  }

  .closing h2 {
    font-size: 18vw;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }

  .dialog-copy {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    justify-content: space-between;
  }

  .dialog-stage {
    min-height: 54vh;
  }
}

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

  .signal-label span,
  .motion-card.is-seen {
    animation: none;
  }

  .motion-card {
    opacity: 1;
    transform: none;
  }

  .hero-film,
  .closing video {
    display: none;
  }
}
