:root {
  color-scheme: dark;
  --bg: #070707;
  --text: #f3f1eb;
  --muted: #93938f;
  --soft: #d4d1ca;
  --line: rgba(255, 255, 255, .16);
  --red: #f12a1d;
  --warm: #f1ece2;
  --pad: clamp(1.15rem, 3vw, 2.75rem);
  --header: 72px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
figure { margin: 0; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: #fff;
  color: #000;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: var(--header);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, .88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; }
.brand-mark { display: block; width: 56px; height: 56px; flex: 0 0 auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  color: var(--muted);
  font-size: .86rem;
}

.site-nav a { transition: color .25s ease; }
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--text); }

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.project-index,
.section-label,
.letter-card figcaption,
.media-frame figcaption,
.motion-frame figcaption,
.meta-list dt,
.credits dt {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.45;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.project-hero {
  display: grid;
  min-height: calc(91svh - var(--header));
  align-content: space-between;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--pad) clamp(2.5rem, 5vw, 4.5rem);
}

.project-title {
  margin: clamp(5rem, 11vw, 10rem) 0 0;
  font-size: clamp(3.5rem, 12.3vw, 12.5rem);
  font-weight: 500;
  line-height: .79;
  letter-spacing: -.077em;
}

.project-title span { display: block; }

.project-title .title-secondary {
  margin-top: .35em;
  margin-left: 31%;
  color: var(--red);
  font-size: .35em;
  letter-spacing: -.058em;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(5rem, 9vw, 8rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.hero-meta span:nth-child(2) { text-align: center; }
.hero-meta span:last-child { text-align: right; }

.hero-image {
  padding: clamp(4rem, 8vw, 8rem) var(--pad);
  border-block: 1px solid var(--line);
  background: #020202;
}

.hero-image img { background: #020202; }

.overview {
  display: grid;
  grid-template-columns: minmax(13rem, .68fr) minmax(0, 1.32fr);
  gap: clamp(4rem, 11vw, 13rem);
  padding: clamp(7rem, 12vw, 13rem) var(--pad);
  border-bottom: 1px solid rgba(0, 0, 0, .18);
  background: var(--warm);
  color: #0b0b0b;
}

.overview .project-index,
.overview .section-label,
.overview .meta-list dt { color: rgba(0, 0, 0, .52); }

.meta-list {
  display: grid;
  align-content: start;
  gap: 1.7rem;
  margin: 0;
}

.meta-list div { padding-top: .85rem; border-top: 1px solid rgba(0, 0, 0, .22); }

.meta-list dd {
  margin: .42rem 0 0;
  color: rgba(0, 0, 0, .72);
  font-size: .88rem;
  line-height: 1.5;
}

.overview-copy > p {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 5rem);
  line-height: .99;
  letter-spacing: -.055em;
}

.overview-detail {
  display: grid;
  max-width: 62rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3.5rem);
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, .22);
}

.overview-detail p,
.section-copy p,
.motion-head > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.25vw, 1.14rem);
  line-height: 1.55;
  letter-spacing: -.015em;
}

.overview-detail p { color: rgba(0, 0, 0, .62); }

.phase {
  padding: clamp(8rem, 14vw, 15rem) var(--pad);
  border-bottom: 1px solid var(--line);
}

.phase-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, .82fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.phase-head h2,
.motion-head h2,
.final-copy h2,
.credits-section h2 {
  max-width: 12ch;
  margin: .8rem 0 0;
  font-size: clamp(3rem, 6.7vw, 7rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.062em;
}

.section-copy {
  display: grid;
  gap: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.phase--alphabet { background: #090909; }

.letter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 5vw, 6rem) clamp(1rem, 2vw, 2rem);
  max-width: 112rem;
  margin-inline: auto;
}

.letter-card { min-width: 0; }
.letter-card img { background: #171717; }

.letter-card:nth-child(2),
.letter-card:nth-child(5),
.letter-card:nth-child(8) { transform: translateY(clamp(1.5rem, 3.5vw, 4rem)); }

@media (min-width: 901px) {
  .letter-card:last-child { grid-column: 2; }
}

.letter-card figcaption,
.media-frame figcaption,
.motion-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .72rem;
}

.phase--system {
  background: #11110f;
}

.system-sequence,
.reduction-sequence {
  display: grid;
  gap: clamp(6rem, 11vw, 12rem);
}

.media-frame { min-width: 0; }
.media-frame--wide { width: 84%; }
.media-frame--strip { width: 94%; margin-left: auto; }
.media-frame--mark { width: 86%; margin-left: auto; }
.media-frame--transition { width: 74%; }

.motion-study {
  display: grid;
  grid-template-columns: minmax(17rem, .58fr) minmax(0, 1.42fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding: clamp(7rem, 12vw, 13rem) var(--pad);
  border-bottom: 1px solid rgba(0, 0, 0, .22);
  background: var(--red);
  color: #090909;
}

.motion-head { display: grid; align-content: center; }
.motion-head .section-label,
.motion-head > p:last-child { color: rgba(0, 0, 0, .62); }
.motion-head > p:last-child {
  max-width: 37rem;
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, .28);
}

.motion-frame figcaption { color: rgba(0, 0, 0, .64); }
.motion-frame img { background: #000; }

.phase--reduction { background: #060606; }

.final-state {
  display: grid;
  grid-template-columns: minmax(17rem, .48fr) minmax(0, 1.52fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  padding: clamp(8rem, 14vw, 15rem) var(--pad);
  border-bottom: 1px solid var(--line);
  background: #0a0a09;
}

.final-copy { align-self: start; }
.final-copy h2 { max-width: 9ch; }
.final-image { min-width: 0; }

.credits-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr);
  gap: clamp(4rem, 12vw, 14rem);
  padding: clamp(7rem, 12vw, 13rem) var(--pad);
  border-top: 1px solid var(--line);
}

.credits { display: grid; align-content: start; gap: 1.5rem; margin: 0; }

.credits div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.credits dd {
  margin: 0;
  color: var(--soft);
  font-size: .92rem;
  line-height: 1.5;
}

.project-return {
  display: flex;
  min-height: 38svh;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(5rem, 9vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
}

.project-return span {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-return strong {
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.065em;
}

.project-return:hover strong { color: var(--red); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 0;
    z-index: 25;
    display: none;
    align-content: start;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem var(--pad);
    background: #090909;
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .site-nav.is-open { display: grid; }
  .site-nav a { padding: .55em 0; border-bottom: 1px solid var(--line); }

  .overview,
  .phase-head,
  .motion-study,
  .final-state,
  .credits-section {
    grid-template-columns: 1fr;
  }

  .overview-detail { grid-template-columns: 1fr; }
  .letter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion-frame { grid-row: 1; }
  .final-copy h2 { max-width: 12ch; }
  .final-image { grid-row: 1; }
}

@media (max-width: 620px) {
  .project-hero { min-height: calc(82svh - var(--header)); }
  .project-hero,
  .project-hero > * { min-width: 0; }
  .project-title { font-size: clamp(3.25rem, 15vw, 5.5rem); }
  .project-title .title-secondary { margin-left: 0; font-size: .45em; }

  .hero-meta { grid-template-columns: 1fr; gap: .45rem; }
  .hero-meta span:nth-child(2),
  .hero-meta span:last-child { text-align: left; }

  .letter-grid { grid-template-columns: 1fr; }
  .letter-card:nth-child(2),
  .letter-card:nth-child(5),
  .letter-card:nth-child(8) { transform: none; }

  .media-frame--wide,
  .media-frame--strip,
  .media-frame--mark,
  .media-frame--transition { width: 100%; margin-left: 0; }

  .credits div { grid-template-columns: 1fr; gap: .4rem; }
  .project-return { min-height: 28svh; }
  .site-footer { flex-direction: column; gap: .5rem; }
}
