:root {
  --black: #050505;
  --black-soft: #0c0c0b;
  --ink: #111210;
  --paper: #f1ede3;
  --paper-deep: #ded7c9;
  --silver: #c7c7c0;
  --silver-dark: #777872;
  --blue-pencil: #1749a4;
  --tape: #e1c34a;
  --line-dark: rgba(241, 237, 227, 0.22);
  --line-ink: rgba(17, 18, 16, 0.24);
  --page-x: clamp(1.25rem, 4vw, 4rem);
  --max: 1440px;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --condensed: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Liberation Mono", "Courier New", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
  font-family: var(--sans);
  font-synthesis: none;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--paper);
}

body::before {
  position: fixed;
  z-index: 90;
  inset: 0;
  background-image: url("/assets/images/film-texture.webp");
  background-position: center;
  background-size: 720px 720px;
  content: "";
  mix-blend-mode: screen;
  opacity: 0.11;
  pointer-events: none;
}

body,
button {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-underline-offset: 0.22em;
}

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

figure {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--tape);
  color: var(--ink);
  font: 800 0.75rem/1 var(--condensed);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-180%);
}

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

:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 5px;
}

.film-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.film-layer canvas {
  width: 100%;
  height: 100%;
  opacity: 0.36;
}

.site-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 5.5rem;
  padding: 0 var(--page-x);
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
}

.home-page .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0));
}

.site-header--paper {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line-ink);
}

.wordmark {
  width: max-content;
  font: 900 clamp(1rem, 1.5vw, 1.35rem)/1 var(--condensed);
  letter-spacing: 0.3em;
  text-decoration: none;
}

.wordmark::before {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin: 0 0.7rem 0.08rem 0;
  background: currentColor;
  content: "";
}

.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.75rem);
  margin: 0;
  padding: 0;
  align-items: center;
  list-style: none;
}

.nav-list a,
.nav-toggle,
.motion-toggle {
  min-height: 44px;
  align-items: center;
  border: 0;
  background: transparent;
  font: 700 0.68rem/1 var(--condensed);
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a {
  position: relative;
  display: inline-flex;
}

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

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

.motion-toggle {
  display: inline-flex;
  min-width: 9.5rem;
  gap: 0.75rem;
  padding: 0;
  justify-self: end;
  justify-content: flex-end;
  color: var(--silver);
  cursor: pointer;
}

.motion-toggle [data-motion-state] {
  padding: 0.35rem 0.5rem;
  color: var(--black);
  background: var(--paper);
}

.site-header--paper .motion-toggle {
  color: var(--ink);
}

.site-header--paper .motion-toggle [data-motion-state] {
  color: var(--paper);
  background: var(--ink);
}

.cinema-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: max(48rem, 100svh);
  padding: calc(5.5rem + clamp(2.5rem, 6vh, 5rem)) var(--page-x) clamp(2rem, 5vh, 4rem);
  isolation: isolate;
  overflow: hidden;
}

.cinema-hero::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.9) 0%,
      rgba(5, 5, 5, 0.78) 24%,
      rgba(5, 5, 5, 0.46) 48%,
      rgba(5, 5, 5, 0.08) 70%
    ),
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.64) 0%,
      transparent 24%,
      transparent 62%,
      rgba(5, 5, 5, 0.92) 100%
    ),
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.42) 100%);
  content: "";
  pointer-events: none;
}

.hero-kicker,
.eyebrow,
.dossier-label,
.article-mark,
.status-chip,
.frame-id {
  font: 800 0.68rem/1.3 var(--condensed);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  gap: 1rem;
  margin: 0;
  align-items: center;
  color: var(--silver);
}

.hero-kicker::before {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-heading {
  position: relative;
  z-index: 4;
  width: min(48rem, 54vw);
  align-self: center;
}

.cinema-title {
  width: 100%;
  margin: clamp(1.5rem, 4vh, 3rem) 0 0;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.62);
}

.cinema-title span {
  display: block;
  opacity: 0;
  transform: translateY(0.28em);
  animation: expose 850ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.cinema-title__brand {
  font: 900 clamp(8rem, 17vw, 18rem) / 0.72 var(--condensed);
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.cinema-title__statement {
  width: max-content;
  max-width: 100%;
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
  padding: 0.72rem 0.2rem 0.66rem;
  border-top: 1px solid rgba(241, 237, 227, 0.82);
  border-bottom: 1px solid rgba(241, 237, 227, 0.82);
  font: 900 clamp(0.86rem, 1.6vw, 1.42rem) / 1 var(--condensed);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  animation-delay: 150ms;
}

.hero-still {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.hero-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.18);
}

.hero-still figcaption {
  position: absolute;
  right: var(--page-x);
  bottom: clamp(2rem, 5vh, 4rem);
  z-index: 3;
  max-width: 16rem;
  color: var(--silver);
  font: 700 0.58rem/1.65 var(--mono);
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.hero-intro {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(18rem, 32rem) auto;
  width: min(61rem, 72vw);
  gap: 2rem;
  align-items: end;
}

.hero-intro > p {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--paper);
  font: 600 clamp(0.95rem, 1.2vw, 1.15rem)/1.55 var(--mono);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.action-link {
  display: inline-flex;
  min-height: 48px;
  gap: 2rem;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  font: 800 0.7rem/1 var(--condensed);
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.action-link--light {
  border: 1px solid var(--paper);
}

.action-link--light:hover,
.action-link--light:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.action-link--ink {
  border: 1px solid var(--ink);
}

.action-link--ink:hover,
.action-link--ink:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  gap: 0.65rem;
  align-items: center;
  font: 800 0.68rem/1 var(--condensed);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.frame-id {
  position: absolute;
  bottom: 3.5rem;
  left: 0.75rem;
  z-index: 4;
  margin: 0;
  color: var(--silver-dark);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.section-dark,
.section-paper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(6rem, 11vw, 11rem) var(--page-x);
}

.section-dark {
  background: var(--black);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
}

.section-paper {
  color: var(--ink);
  background: var(--paper);
}

.section-index {
  display: flex;
  gap: 0.55rem;
  padding-top: 0.5rem;
  align-items: flex-start;
  color: var(--silver);
  font: 800 0.62rem/1.3 var(--condensed);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-index span:first-child {
  color: var(--tape);
}

.section-index--ink {
  color: #565650;
}

.section-index--ink span:first-child {
  color: var(--blue-pencil);
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--silver);
}

.eyebrow--ink {
  color: var(--blue-pencil);
}

.manifesto h2,
.trajectory h2,
.laboratory-heading h2,
.practice-intro h2,
.end-credits h2,
.lab-hero h1,
.entry-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.manifesto h2,
.trajectory h2,
.practice-intro h2 {
  max-width: 68rem;
  font-size: clamp(3rem, 6.5vw, 7rem);
}

.editorial-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 7vw, 7rem);
  color: #c5c2ba;
}

.editorial-columns p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
}

.manifesto-line {
  margin: clamp(4rem, 8vw, 8rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font: italic 400 clamp(1.6rem, 3vw, 3rem)/1.1 var(--serif);
}

.trajectory {
  clip-path: polygon(0 3.5rem, 100% 0, 100% 100%, 0 100%);
  margin-top: -3.5rem;
  padding-top: calc(clamp(6rem, 11vw, 11rem) + 2rem);
}

.trajectory-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.trajectory-copy {
  align-self: end;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.trajectory-copy p {
  margin: 0 0 1.5rem;
}

.trajectory-reels {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-ink);
  list-style: none;
}

.trajectory-reels li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-ink);
  font: 800 clamp(1.1rem, 2.2vw, 2rem)/1.1 var(--condensed);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.trajectory-reels span {
  color: var(--blue-pencil);
  font: 700 0.68rem/1.2 var(--mono);
}

.laboratory-preview {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 9vw, 9rem) var(--page-x);
  color: var(--ink);
  background:
    linear-gradient(var(--line-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px),
    var(--paper);
  background-size: 12.5% 12.5%;
}

.laboratory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.5fr);
  gap: 3rem;
  padding-bottom: 3rem;
  align-items: end;
  border-bottom: 1px solid var(--ink);
}

.laboratory-heading h2 {
  max-width: 55rem;
  font: 900 clamp(3.5rem, 7vw, 7.5rem)/0.82 var(--condensed);
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.laboratory-heading > p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.contact-sheet {
  margin-top: 2.5rem;
}

.lab-dossier {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.dossier-copy {
  padding-right: clamp(0rem, 2vw, 2rem);
  border-right: 1px solid var(--ink);
}

.dossier-label {
  margin: 0 0 1rem;
}

.dossier-copy h3 {
  margin: 0;
  font: 900 clamp(3rem, 5.5vw, 6rem)/0.85 var(--condensed);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.dossier-copy > p {
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.status-list {
  margin: 0 0 2rem;
  border-top: 1px solid var(--line-ink);
}

.status-list div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-ink);
}

.status-list dt,
.status-list dd {
  margin: 0;
  font: 700 0.69rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-list dd {
  color: var(--blue-pencil);
  text-align: right;
}

.film-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  padding: 3.7rem 1.5rem 1.5rem;
  background: var(--black-soft);
}

.film-strip::before,
.film-strip::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 0.8rem;
  background: repeating-linear-gradient(90deg, var(--paper) 0 1.1rem, transparent 1.1rem 2.35rem);
  content: "";
}

.film-strip::before {
  top: 0.7rem;
}

.film-strip::after {
  bottom: 0.7rem;
}

.contact-frame {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid #888;
}

.contact-frame--large {
  grid-row: span 2;
  min-height: 29rem;
}

.contact-frame img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  transition: filter 220ms ease, transform 400ms ease;
}

.contact-frame:hover img {
  filter: grayscale(1) contrast(1.45);
  transform: scale(1.018);
}

.contact-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 0.65rem 0.75rem;
  justify-content: space-between;
  color: var(--paper);
  background: rgba(5, 5, 5, 0.86);
  font: 700 0.58rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editing-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line-ink);
  border: 1px solid var(--line-ink);
}

.editing-notes > div {
  min-height: 13rem;
  padding: 1.5rem;
  background: var(--paper);
}

.editing-notes span {
  color: var(--blue-pencil);
  font: 800 0.65rem/1 var(--mono);
}

.editing-notes strong {
  display: block;
  margin: 2.5rem 0 0.5rem;
  font: 900 clamp(1.5rem, 2.5vw, 2.4rem)/1 var(--condensed);
  text-transform: uppercase;
}

.editing-notes p {
  margin: 0;
  font-family: var(--serif);
}

.practice {
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr) minmax(20rem, 2.2fr);
}

.practice-intro > p:last-child {
  max-width: 50rem;
  margin: 2.5rem 0 0;
  color: var(--silver);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.practice-cards {
  border-top: 1px solid var(--line-dark);
}

.practice-cards article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.practice-cards span {
  color: var(--tape);
  font: 700 0.63rem/1.3 var(--mono);
}

.practice-cards h3 {
  margin: 0;
  font: 800 clamp(1.25rem, 2vw, 1.8rem)/1 var(--condensed);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.practice-cards p {
  grid-column: 2;
  margin: 0.8rem 0 0;
  color: var(--silver);
}

.end-credits {
  position: relative;
  z-index: 2;
  min-height: 78vh;
  padding: clamp(6rem, 12vw, 12rem) var(--page-x);
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}

.end-credits h2 {
  max-width: 72rem;
  margin: auto;
  font-size: clamp(3.4rem, 8vw, 8rem);
}

.end-credits > p:not(.eyebrow) {
  max-width: 40rem;
  margin: 2.5rem auto 4rem;
  font-family: var(--serif);
  font-size: 1.18rem;
}

.credits-mail {
  display: flex;
  max-width: 58rem;
  min-height: 4.5rem;
  margin: auto;
  padding: 1rem 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font: 800 clamp(1.2rem, 2.7vw, 2.4rem)/1 var(--condensed);
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.credits-mail:hover,
.credits-mail:focus-visible {
  color: var(--blue-pencil);
}

.site-footer {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 6rem;
  padding: 1.5rem var(--page-x);
  align-items: center;
  border-top: 1px solid var(--line-dark);
  font: 700 0.62rem/1.3 var(--condensed);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer--paper {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line-ink);
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

/* Laboratorio */

.lab-page,
.entry-page {
  color: var(--ink);
  background: var(--paper);
}

.lab-page::before,
.entry-page::before {
  opacity: 0.07;
  mix-blend-mode: multiply;
}

.lab-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  gap: 4rem;
  min-height: 38rem;
  padding: clamp(4rem, 8vw, 8rem) var(--page-x);
  background:
    linear-gradient(var(--line-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px),
    var(--paper);
  background-size: 12.5% 25%;
}

.lab-hero h1 {
  font: 900 clamp(4.8rem, 10vw, 10rem)/0.76 var(--condensed);
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.lab-hero-copy {
  max-width: 31rem;
  align-self: end;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.lab-hero-copy p:first-child {
  margin-top: 0;
}

.editorial-note {
  padding: 1.25rem;
  border: 1px solid var(--ink);
  background: rgba(241, 237, 227, 0.86);
  font: 700 0.72rem/1.65 var(--mono);
  text-transform: uppercase;
}

.lab-index {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 6rem) var(--page-x) clamp(6rem, 10vw, 10rem);
  background: var(--paper);
}

.project-slate {
  display: grid;
  grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
}

.project-slate h2 {
  margin: 1rem 0 1.5rem;
  font: 900 clamp(3.5rem, 7vw, 7rem)/0.82 var(--condensed);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.project-slate-copy > p {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: 1.14rem;
}

.slate-status {
  display: flex;
  gap: 0.75rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  align-items: center;
  border: 1px solid var(--ink);
}

.status-chip--blue {
  color: var(--paper);
  background: var(--blue-pencil);
  border-color: var(--blue-pencil);
}

.slate-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: repeat(2, minmax(12rem, 1fr));
  gap: 1rem;
  padding: 3.5rem 1.25rem;
  background: var(--black);
}

.slate-gallery figure:first-child {
  grid-row: 1 / 3;
}

.slate-gallery figure {
  position: relative;
  overflow: hidden;
}

.slate-gallery img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3);
}

.slate-gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.45rem 0.65rem;
  color: var(--paper);
  background: var(--black);
  font: 700 0.55rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-key {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 9vw, 9rem) var(--page-x);
  color: var(--paper);
  background: var(--black);
}

.reading-key h2 {
  max-width: 65rem;
  margin: 0 0 4rem;
  font: 400 clamp(3.5rem, 7vw, 7rem)/0.9 var(--serif);
  letter-spacing: -0.055em;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.key-grid article {
  min-height: 14rem;
  padding: 1.5rem;
  background: var(--black);
}

.key-grid span {
  color: var(--tape);
  font: 700 0.62rem/1 var(--mono);
}

.key-grid h3 {
  margin: 3rem 0 0.75rem;
  font: 800 1.45rem/1 var(--condensed);
  text-transform: uppercase;
}

.key-grid p {
  margin: 0;
  color: var(--silver);
}

/* Expediente */

.entry-hero {
  position: relative;
  z-index: 2;
  min-height: 46rem;
  padding: clamp(4rem, 7vw, 7rem) var(--page-x);
  overflow: hidden;
  color: var(--paper);
  background: var(--black);
}

.entry-hero::after {
  position: absolute;
  right: -5%;
  bottom: -15%;
  z-index: 0;
  width: 60%;
  height: 95%;
  background: url("/assets/images/lab-terminal.webp") center / cover;
  clip-path: polygon(16% 0, 100% 5%, 86% 100%, 0 88%);
  content: "";
  filter: grayscale(1) contrast(1.4);
  opacity: 0.5;
}

.entry-hero > * {
  position: relative;
  z-index: 2;
}

.entry-hero h1 {
  max-width: 76rem;
  margin-top: 3rem;
  font-size: clamp(4rem, 8.5vw, 9rem);
}

.entry-deck {
  max-width: 35rem;
  margin: 3rem 0 0 28%;
  padding-left: 1.5rem;
  border-left: 1px solid var(--paper);
  font: 600 1rem/1.6 var(--mono);
}

.entry-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(9rem, 1fr));
  max-width: 55rem;
  gap: 1px;
  margin: 3rem 0 0;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.entry-facts div {
  padding: 1rem;
  background: rgba(5, 5, 5, 0.82);
}

.entry-facts dt {
  color: var(--silver);
  font: 700 0.58rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-facts dd {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.entry-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(5rem, 9vw, 9rem) var(--page-x);
  background: var(--paper);
}

.entry-toc {
  position: sticky;
  top: 1.5rem;
  height: max-content;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.entry-toc p {
  margin: 0 0 1rem;
  font: 800 0.64rem/1 var(--condensed);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-toc li {
  border-bottom: 1px solid var(--line-ink);
}

.entry-toc a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  min-height: 44px;
  padding: 0.65rem 0;
  align-items: center;
  font: 700 0.67rem/1.3 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.entry-toc a:hover,
.entry-toc a:focus-visible {
  color: var(--blue-pencil);
}

.entry-content {
  min-width: 0;
}

.entry-section {
  max-width: 62rem;
  padding: 1rem 0 clamp(5rem, 9vw, 9rem);
  scroll-margin-top: 1rem;
}

.article-mark {
  display: inline-flex;
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  align-items: center;
  color: var(--paper);
  background: var(--blue-pencil);
}

.entry-section h2 {
  max-width: 58rem;
  margin: 1.5rem 0 2.5rem;
  font: 400 clamp(3rem, 6vw, 6.4rem)/0.91 var(--serif);
  letter-spacing: -0.055em;
}

.entry-section h3 {
  margin: 3rem 0 1rem;
  font: 800 clamp(1.4rem, 2.5vw, 2.2rem)/1 var(--condensed);
  text-transform: uppercase;
}

.entry-section > p,
.entry-section li {
  max-width: 47rem;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
}

.entry-section > p {
  margin: 0 0 1.35rem;
}

.entry-section ul,
.entry-section ol {
  margin: 1.5rem 0 0;
  padding-left: 1.3rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(8rem, 1fr));
  gap: 1px;
  margin: 3rem 0;
  overflow-x: auto;
  background: var(--line-ink);
  border: 1px solid var(--line-ink);
}

.flow div {
  position: relative;
  min-height: 10rem;
  padding: 1rem;
  background: var(--paper);
}

.flow div:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.5rem;
  z-index: 2;
  content: "→";
}

.flow span {
  color: var(--blue-pencil);
  font: 700 0.58rem/1.3 var(--mono);
  text-transform: uppercase;
}

.flow strong {
  display: block;
  margin-top: 2rem;
  font: 800 1rem/1.05 var(--condensed);
  text-transform: uppercase;
}

.entry-image {
  margin: 3rem 0;
  padding: 1rem;
  color: var(--paper);
  background: var(--black);
}

.entry-image img {
  max-height: 40rem;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.entry-image figcaption {
  padding: 0.75rem 0 0;
  font: 700 0.6rem/1.5 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.edit-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.edit-table article {
  min-height: 16rem;
  padding: 1.5rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.edit-table span {
  color: var(--blue-pencil);
  font: 800 0.64rem/1 var(--mono);
}

.edit-table h3 {
  margin-top: 3rem;
}

.timeline {
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  max-width: none;
  padding: 1.35rem 0;
  align-items: center;
  border-bottom: 1px solid var(--line-ink);
}

.timeline strong {
  font: 800 0.88rem/1.2 var(--condensed);
  text-transform: uppercase;
}

.timeline span,
.timeline em {
  font: 700 0.61rem/1.2 var(--mono);
  text-transform: uppercase;
}

.timeline em {
  color: var(--blue-pencil);
  font-style: normal;
  text-align: right;
}

.entry-end {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 10vw, 10rem) var(--page-x);
  color: var(--paper);
  background: var(--black);
  text-align: center;
}

.entry-end h2 {
  max-width: 65rem;
  margin: 0 auto 2rem;
  font: 400 clamp(3.5rem, 7vw, 7.5rem)/0.9 var(--serif);
  letter-spacing: -0.055em;
}

.entry-end p {
  max-width: 38rem;
  margin: 0 auto 3rem;
  color: var(--silver);
}

/* Error */

.error-page {
  min-height: 100svh;
}

.error-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100svh - 5.5rem);
  padding: clamp(4rem, 9vw, 9rem) var(--page-x);
  justify-content: center;
  flex-direction: column;
}

.error-code {
  margin: 0 0 2rem;
  color: var(--tape);
  font: 800 0.7rem/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.error-content h1 {
  max-width: 70rem;
  margin: 0;
  font: italic 400 clamp(4.4rem, 10vw, 10rem)/0.76 var(--serif);
  letter-spacing: -0.07em;
}

.error-content > p:not(.error-code) {
  max-width: 34rem;
  margin: 3rem 0;
  color: var(--silver);
  font-family: var(--serif);
  font-size: 1.15rem;
}

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

@media (max-width: 1060px) {
  .practice {
    grid-template-columns: minmax(7rem, 0.4fr) 1fr;
  }

  .practice-cards {
    grid-column: 2;
  }

  .entry-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 3rem;
  }
}

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

  .site-nav {
    order: 3;
    justify-self: end;
  }

  .nav-toggle {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0 0.75rem;
    border: 1px solid currentColor;
  }

  .nav-list {
    position: absolute;
    top: calc(100% - 0.4rem);
    right: var(--page-x);
    display: none;
    width: min(20rem, calc(100vw - 2 * var(--page-x)));
    padding: 1rem;
    color: var(--paper);
    background: var(--black);
    border: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: flex;
    padding: 0.5rem;
  }

  .motion-toggle {
    order: 2;
    min-width: auto;
    margin-right: 0.75rem;
  }

  .motion-toggle > span:first-child {
    display: none;
  }

  .cinema-hero {
    min-height: max(48rem, 100svh);
    padding-top: calc(5.5rem + 2.5rem);
  }

  .cinema-hero::before {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.93), rgba(5, 5, 5, 0.68) 58%, rgba(5, 5, 5, 0.16) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.72), transparent 28%, transparent 54%, rgba(5, 5, 5, 0.95) 100%),
      radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, 0.48) 100%);
  }

  .hero-heading {
    width: min(38rem, 70vw);
  }

  .cinema-title__brand {
    font-size: clamp(7.2rem, 22vw, 11rem);
  }

  .hero-still {
    inset: 0;
  }

  .hero-still img {
    object-position: 67% center;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    max-width: 34rem;
  }

  .section-dark,
  .section-paper,
  .practice {
    grid-template-columns: 1fr;
  }

  .section-index {
    margin-bottom: 1rem;
  }

  .editorial-columns {
    grid-template-columns: 1fr;
  }

  .trajectory-layout,
  .laboratory-heading,
  .lab-dossier,
  .lab-hero,
  .project-slate {
    grid-template-columns: 1fr;
  }

  .trajectory-copy {
    max-width: 38rem;
  }

  .practice-cards {
    grid-column: auto;
  }

  .lab-hero {
    gap: 2rem;
  }

  .project-slate {
    gap: 3rem;
  }

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

  .entry-layout {
    grid-template-columns: 1fr;
  }

  .entry-toc {
    position: static;
  }

  .entry-toc ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-deck {
    margin-left: 10%;
  }

  .edit-table {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 4.8rem;
  }

  .cinema-hero {
    min-height: max(48rem, 100svh);
    padding-top: calc(4.8rem + 1.5rem);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .cinema-hero::before {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.54) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.34) 34%, rgba(5, 5, 5, 0.66) 60%, rgba(5, 5, 5, 0.97) 100%);
  }

  .hero-heading {
    width: 100%;
    align-self: start;
  }

  .cinema-title {
    margin-top: 1.25rem;
  }

  .cinema-title__brand {
    font-size: clamp(6.25rem, 28vw, 8rem);
  }

  .cinema-title__statement {
    width: 100%;
    font-size: clamp(0.72rem, 3.25vw, 0.9rem);
    letter-spacing: 0.075em;
  }

  .hero-still {
    inset: 0;
  }

  .hero-still img {
    object-position: 69% center;
  }

  .hero-intro {
    width: 100%;
    gap: 1.25rem;
  }

  .hero-intro > p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .action-link,
  .hero-actions .text-link {
    width: 100%;
  }

  .hero-still figcaption {
    display: none;
  }

  .frame-id {
    display: none;
  }

  .section-dark,
  .section-paper {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .manifesto h2,
  .trajectory h2,
  .practice-intro h2 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .trajectory {
    clip-path: polygon(0 1.5rem, 100% 0, 100% 100%, 0 100%);
    margin-top: -1.5rem;
  }

  .laboratory-heading h2,
  .lab-hero h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .film-strip {
    grid-template-columns: 1fr;
  }

  .contact-frame--large {
    grid-row: auto;
    min-height: 18rem;
  }

  .contact-frame {
    min-height: 14rem;
  }

  .editing-notes,
  .key-grid {
    grid-template-columns: 1fr;
  }

  .editing-notes > div,
  .key-grid article {
    min-height: 10rem;
  }

  .slate-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 14rem);
  }

  .slate-gallery figure:first-child {
    grid-row: auto;
  }

  .entry-hero {
    min-height: 52rem;
  }

  .entry-hero h1 {
    font-size: clamp(3.7rem, 17vw, 6rem);
  }

  .entry-hero::after {
    right: -40%;
    width: 120%;
  }

  .entry-deck {
    margin-left: 0;
  }

  .entry-facts {
    grid-template-columns: 1fr;
  }

  .entry-toc ol {
    grid-template-columns: 1fr;
  }

  .entry-section h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .timeline li {
    grid-template-columns: 4.5rem 1fr;
  }

  .timeline em {
    grid-column: 2;
    text-align: left;
  }

  .credits-mail {
    font-size: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .film-layer {
    display: none;
  }

  .cinema-title span {
    opacity: 1;
    transform: none;
  }
}

html[data-motion="off"] {
  scroll-behavior: auto;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

html[data-motion="off"] .film-layer {
  display: none;
}

html[data-motion="off"] .cinema-title span {
  opacity: 1;
  transform: none;
}
