:root {
  color-scheme: dark;
  --bg: #070707;
  --text: #f0f0ec;
  --muted: #92928f;
  --soft: #d6d6d0;
  --line: rgba(255, 255, 255, .16);
  --paper: #d5d5d0;
  --paper-muted: rgba(7, 7, 7, .62);
  --ink: #080808;
  --signal: #d94732;
  --spectral: #233cba;
  --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-hero {
  display: grid;
  min-height: calc(88svh - var(--header));
  align-content: space-between;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--pad) clamp(2.5rem, 5vw, 4.5rem);
}

.project-index,
.section-label,
.image-caption,
.meta-list dt,
.credits dt {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-title {
  margin: clamp(5rem, 10vw, 9rem) 0 0;
  font-size: clamp(4.2rem, 11.1vw, 11rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.073em;
}

.project-title span { display: block; }

.project-title .title-secondary {
  margin-left: 25%;
  color: var(--soft);
  font-size: .68em;
  letter-spacing: -.06em;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(5rem, 10vw, 9rem);
  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-frame {
  padding: clamp(1rem, 2vw, 2rem) clamp(.5rem, 1vw, 1rem) clamp(3rem, 7vw, 7rem);
  background: #000;
}

.hero-frame img {
  width: 100%;
  margin-inline: auto;
}

.overview {
  display: grid;
  grid-template-columns: minmax(13rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(4rem, 11vw, 13rem);
  padding: clamp(7rem, 12vw, 13rem) var(--pad);
  border-bottom: 1px solid var(--line);
}

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

.meta-list div { padding-top: .85rem; border-top: 1px solid var(--line); }

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

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

.overview-detail {
  display: grid;
  max-width: 58rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3.5rem);
  margin-top: 3.5rem;
}

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

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

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

.phase-head h2,
.result-section h2,
.credits-section h2 {
  max-width: 12ch;
  margin: .8rem 0 0;
  font-size: clamp(3rem, 6.8vw, 7.2rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
}

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

.image-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .72rem;
}

.origin-section {
  background: #070707;
}

.origin-board {
  width: min(86%, 94rem);
  margin: 0 auto clamp(10rem, 17vw, 19rem);
}

.origin-threshold {
  width: min(64%, 66rem);
  margin: 0 4% clamp(10rem, 18vw, 20rem) auto;
}

.origin-pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(4rem, 9vw, 10rem) clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.origin-pair figure:first-child { grid-column: 1 / span 4; }
.origin-pair figure:last-child { grid-column: 6 / -1; margin-top: clamp(9rem, 16vw, 17rem); }

.origin-spheres {
  width: min(78%, 82rem);
  margin: clamp(11rem, 19vw, 21rem) auto 0;
}

.coherence-section {
  background: #080503;
  color: var(--text);
}

.coherence-section .section-label,
.coherence-section .image-caption,
.coherence-section .section-copy p { color: var(--muted); }

.coherence-section .section-copy { border-color: var(--line); }

.coherence-lead {
  width: min(100%, 116rem);
  margin: 0 0 clamp(10rem, 18vw, 20rem) auto;
}

.coherence-pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(4rem, 9vw, 10rem) clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.coherence-pair figure:first-child { grid-column: 1 / -1; }
.coherence-pair figure:last-child { grid-column: 4 / -1; margin-top: clamp(7rem, 13vw, 14rem); }

.coherence-core {
  width: min(94%, 108rem);
  margin: clamp(11rem, 19vw, 21rem) auto 0;
}

.signal-section {
  background: #050506;
}

.signal-board {
  width: min(88%, 96rem);
  margin: 0 auto clamp(11rem, 19vw, 21rem);
}

.signal-lead {
  width: min(86%, 92rem);
  margin: 0 0 clamp(10rem, 17vw, 19rem) auto;
}

.signal-pair,
.signal-final {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(4rem, 9vw, 10rem) clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.signal-pair figure:first-child { grid-column: 1 / span 7; }
.signal-pair figure:last-child { grid-column: 7 / -1; margin-top: clamp(7rem, 13vw, 14rem); }

.signal-final { margin-top: clamp(11rem, 19vw, 21rem); }
.signal-final figure:first-child { grid-column: 2 / span 8; }
.signal-final figure:last-child { grid-column: 5 / -1; margin-top: clamp(8rem, 15vw, 16rem); }

.reflection-section {
  background: #d9dad7;
  color: var(--ink);
}

.reflection-section .section-label,
.reflection-section .image-caption,
.reflection-section .section-copy p { color: var(--paper-muted); }

.reflection-section .section-copy { border-color: rgba(0, 0, 0, .25); }

.reflection-void {
  width: min(82%, 88rem);
  margin: 0 auto clamp(11rem, 19vw, 21rem);
}

.reflection-pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(4rem, 9vw, 10rem) clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.reflection-pair figure:first-child { grid-column: 1 / span 7; }
.reflection-pair figure:last-child { grid-column: 7 / -1; margin-top: clamp(7rem, 13vw, 14rem); }

.compression-section { background: #020202; }

.compression-system {
  width: min(88%, 96rem);
  margin: 0 0 clamp(11rem, 19vw, 21rem) auto;
}

.compression-study {
  width: min(84%, 90rem);
  margin: 0 auto clamp(12rem, 21vw, 23rem);
}

.compression-credit {
  width: min(78%, 84rem);
  margin: 0 0 clamp(12rem, 21vw, 23rem) auto;
}

.title-final {
  width: min(72%, 76rem);
  margin: 0 auto;
}

.result-section,
.credits-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
  gap: clamp(3rem, 9vw, 10rem);
  padding: clamp(8rem, 14vw, 15rem) var(--pad);
}

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

.result-section .section-label,
.result-copy p { color: rgba(8, 8, 8, .66); }
.result-copy { border-color: rgba(0, 0, 0, .28); }

.credits-section { border-bottom: 1px solid var(--line); }

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

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

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

.project-return {
  display: flex;
  min-height: 44svh;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(3rem, 7vw, 7rem) var(--pad);
  border-bottom: 1px solid var(--line);
}

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

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

.project-return:hover strong,
.project-return:focus-visible strong { color: var(--signal); }

.site-footer {
  display: flex;
  min-height: 190px;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem var(--pad);
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.site-footer span:last-child { max-width: 38rem; text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { min-height: 64px; }
  .brand-mark { width: 48px; height: 48px; }
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    min-height: calc(100svh - 64px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 2rem var(--pad);
    background: rgba(7, 7, 7, .98);
  }

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

  .site-nav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }

  .project-hero { min-height: calc(78svh - 64px); }

  .project-title {
    margin-top: 4rem;
    font-size: clamp(3.7rem, 20vw, 6rem);
    line-height: .84;
  }

  .project-title .title-secondary { margin-left: 0; font-size: .62em; }

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

  .overview,
  .phase-head,
  .result-section,
  .credits-section {
    grid-template-columns: 1fr;
  }

  .overview { gap: 4rem; }
  .overview-detail { grid-template-columns: 1fr; }

  .phase-head h2,
  .result-section h2,
  .credits-section h2 { font-size: clamp(3rem, 15vw, 5rem); }

  .origin-pair,
  .coherence-pair,
  .signal-pair,
  .signal-final,
  .reflection-pair {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-inline: 0;
  }

  .origin-pair figure:first-child,
  .origin-pair figure:last-child,
  .coherence-pair figure:first-child,
  .coherence-pair figure:last-child,
  .signal-pair figure:first-child,
  .signal-pair figure:last-child,
  .signal-final figure:first-child,
  .signal-final figure:last-child,
  .reflection-pair figure:first-child,
  .reflection-pair figure:last-child {
    grid-column: auto;
    margin-top: 0;
  }

  .origin-board,
  .origin-threshold,
  .origin-spheres,
  .coherence-lead,
  .coherence-core,
  .signal-board,
  .signal-lead,
  .reflection-void,
  .compression-system,
  .compression-study,
  .compression-credit,
  .title-final {
    width: 100%;
    margin-inline: 0;
  }

  .origin-pair,
  .origin-spheres,
  .signal-final { margin-top: 7rem; }

  .site-footer { min-height: 150px; flex-direction: column; align-items: flex-start; }
  .site-footer span:last-child { text-align: left; }
}

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