:root {
  color-scheme: dark;
  --bg: #070509;
  --text: #f2f0ed;
  --muted: #97959b;
  --soft: #d4d0d5;
  --line: rgba(255, 255, 255, .16);
  --violet: #6e3eff;
  --cyan: #56d9ff;
  --magenta: #ff3f9c;
  --pad: clamp(1.15rem, 3vw, 3.5rem);
  --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: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 50;
  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, 5, 9, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.5rem);
  font-size: .82rem;
  letter-spacing: .015em;
}

.site-nav a { color: #b6b2b8; transition: color .25s ease; }
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: #fff; }

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

.project-hero {
  display: grid;
  min-height: calc(86svh - var(--header));
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
  align-items: end;
  gap: clamp(3rem, 9vw, 10rem);
  padding: clamp(6rem, 12vw, 12rem) var(--pad) clamp(3rem, 6vw, 5.5rem);
}

.project-index,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-title {
  max-width: 11ch;
  margin: 1rem 0 0;
  font-size: clamp(4.3rem, 10.5vw, 11rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.072em;
}

.project-title span { display: block; }
.project-title .title-secondary {
  color: #b9b7bd;
  font-size: .42em;
  line-height: 1;
  letter-spacing: -.055em;
}

.hero-meta {
  display: grid;
  align-self: end;
  border-top: 1px solid var(--line);
}

.hero-meta span {
  padding: .72rem 0;
  border-bottom: 1px solid var(--line);
  color: #c9c6cc;
  font-size: .78rem;
  letter-spacing: .045em;
}

.hero-frame {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #000;
}

.hero-frame img,
.media-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.overview {
  display: grid;
  grid-template-columns: minmax(14rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 10vw, 12rem);
  padding: clamp(6rem, 11vw, 11rem) var(--pad);
  border-bottom: 1px solid var(--line);
}

.meta-list {
  margin: 0;
  align-self: start;
}

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

.meta-list dt,
.credits dt {
  color: #77737a;
  font-size: .71rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.meta-list dd,
.credits dd {
  margin: 0;
  color: #c8c4ca;
  font-size: .86rem;
}

.overview-copy > p {
  max-width: 19ch;
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.052em;
}

.overview-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

.overview-detail p,
.phase-copy p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.52;
  letter-spacing: -.015em;
}

.world-field {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 10rem) var(--pad);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 52%, rgba(255, 63, 156, .23), transparent 30%),
    radial-gradient(circle at 82% 46%, rgba(86, 217, 255, .18), transparent 32%),
    #0a0710;
}

.world-field p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(2.5rem, 7.2vw, 8rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
}

.phase {
  padding: clamp(7rem, 12vw, 13rem) var(--pad);
  border-bottom: 1px solid var(--line);
}

.phase::before {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan), transparent 90%);
  content: "";
  opacity: .7;
}

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

.phase-head h2 {
  max-width: 12ch;
  margin: .9rem 0 0;
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.06em;
}

.phase-copy {
  display: grid;
  gap: 1.2rem;
  padding-top: .2rem;
}

.media-frame {
  min-width: 0;
  overflow: hidden;
  background: #020203;
}

.media-frame img { transition: opacity .4s ease; }

.image-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0 0;
  color: #77737a;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.threshold-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.threshold-grid figure:first-child { width: 100%; justify-self: stretch; }
.threshold-grid figure:last-child { width: 92%; justify-self: start; align-self: center; }

.single-wide { margin-top: clamp(5rem, 9vw, 10rem); }
.single-wide--contained { width: min(88rem, 90%); margin-inline: auto; }
.threshold-opening { width: min(92rem, 92%); margin-inline: auto; }
.opening-studies-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
}
.opening-studies-grid img { width: 100%; height: auto; background: #000; }

.world-pair,
.orb-pair,
.identity-pair,
.application-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}

.world-pair { align-items: end; }
.world-pair figure:first-child { width: 82%; justify-self: end; }
.orb-pair { margin-top: clamp(5rem, 9vw, 10rem); }

.system-board {
  width: min(92rem, 92%);
  margin: clamp(5rem, 9vw, 10rem) auto 0;
}

.state-matrix { width: min(84rem, 86%); }

.state-sequence,
.portal-studies,
.material-studies {
  margin: clamp(5rem, 9vw, 10rem) auto 0;
  overflow: visible;
  background: transparent;
}

.state-sequence,
.material-studies { width: min(112rem, 98%); }

.state-language::before,
.material-language::before {
  width: clamp(3.25rem, 5vw, 5.5rem);
  background: rgba(255, 255, 255, .24);
}

.state-language .state-sequence,
.material-language .material-studies { margin-top: 0; }

.portal-studies { width: min(86rem, 86%); }

.portal-studies-grid,
.state-sequence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.portal-studies-grid { gap: clamp(1.4rem, 3vw, 3rem); background: transparent; align-items: center; }

.portal-studies-grid img { aspect-ratio: .9 / 1; object-fit: cover; background: #000; }
.portal-studies-grid .portal-study--board,
.portal-studies-grid .portal-study--dual { grid-column: 1 / -1; }
.portal-studies-grid .portal-study--board { aspect-ratio: 1.84 / 1; }
.portal-studies-grid .portal-study--dual { aspect-ratio: 3.59 / 1; }
.portal-studies-grid .portal-study--portrait {
  grid-column: 1 / -1;
  width: min(42rem, 62%);
  justify-self: center;
  aspect-ratio: auto;
}

.state-crop {
  aspect-ratio: 1.75 / 1;
  overflow: hidden;
  background: #000;
}

.state-sequence-grid .state-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  transform-origin: center 44%;
}

.material-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
}

.material-studies-grid .material-study--wide { grid-column: 1 / -1; }

.development-sequence {
  display: grid;
  gap: clamp(6rem, 11vw, 12rem);
  margin-top: clamp(6rem, 11vw, 12rem);
}

.development-frame {
  width: min(90rem, 90%);
  margin-inline: auto;
  overflow: visible;
  background: transparent;
}

.development-frame img {
  display: block;
  width: 100%;
  background: #000;
}

.development-frame--chromatic { width: min(84rem, 88%); }
.development-frame--fragments { width: min(82rem, 86%); }
.development-frame--matrix { width: min(78rem, 82%); }
.development-frame--resolved { width: min(88rem, 90%); }

.development-frame--fragments .visual-study--graphic {
  height: auto;
  aspect-ratio: 3244 / 2144;
  object-fit: cover;
}

.development-frame--matrix img {
  aspect-ratio: 4800 / 2611;
  object-fit: cover;
}

.resolved-forms-grid {
  display: grid;
  gap: clamp(4rem, 8vw, 8rem);
  justify-items: center;
}

.resolved-form--dual {
  aspect-ratio: 4500 / 1254;
  object-fit: cover;
}

.resolved-forms-grid .resolved-form--portrait {
  width: min(34rem, 44%);
  height: auto;
}

.visual-studies {
  width: min(96rem, 94%);
  margin: clamp(5rem, 9vw, 10rem) auto 0;
  overflow: visible;
  background: transparent;
}

.visual-studies-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(.6rem, 1.2vw, 1.25rem);
  align-items: stretch;
}

.visual-study { width: 100%; height: 100%; object-fit: cover; }
.visual-study-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 1.64 / 1;
  overflow: hidden;
  background: #000;
}
.visual-study-crop .visual-study--chromatic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}
.visual-study--graphic {
  grid-column: 1 / -1;
  aspect-ratio: 1.72 / 1;
  object-position: center;
}

.identity-pair { align-items: center; }
.identity-pair figure:first-child { grid-column: span 2; }
.identity-pair figure:last-child { grid-column: 1 / -1; width: min(96rem, 100%); justify-self: center; }

.application-pair { align-items: end; }
.application-pair figure { width: min(100%, 48rem); justify-self: center; }
.application-single { display: grid; justify-items: center; }
.application-single figure { width: min(72rem, 78%); }
.application-faceted {
  width: min(54rem, 68%);
  margin: 0 auto clamp(5rem, 9vw, 10rem);
}

.poster-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 23rem));
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 4rem);
  margin-top: clamp(5rem, 9vw, 10rem);
}

.poster-pair--single { grid-template-columns: minmax(0, 34rem); }

.closing-statement {
  display: grid;
  min-height: clamp(25rem, 55vw, 50rem);
  place-items: center;
  padding: clamp(6rem, 12vw, 12rem) var(--pad);
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(103, 57, 255, .2), transparent 25%),
    #040306;
}

.closing-statement p {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 9rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.065em;
}

.credits-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr);
  gap: clamp(3rem, 9vw, 10rem);
  padding: clamp(6rem, 10vw, 10rem) var(--pad);
  border-top: 1px solid var(--line);
}

.credits-section h2 {
  margin: .8rem 0 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.055em;
}

.credits { margin: 0; }

.project-return {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  min-height: clamp(16rem, 34vw, 30rem);
  padding: var(--pad);
  border-top: 1px solid var(--line);
}

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

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--pad);
  border-top: 1px solid var(--line);
  color: #77737a;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.js .reveal {
  opacity: .12;
  transform: translateY(1.4rem);
  transition: opacity .75s ease, transform .9s cubic-bezier(.2, .65, .2, 1);
}

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

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header) 0 0;
    display: none;
    align-content: start;
    align-items: stretch;
    padding: 2rem var(--pad);
    background: rgba(7, 5, 9, .98);
    font-size: clamp(1.55rem, 6vw, 3rem);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: .25rem 0; color: var(--text); }
  .project-hero,
  .overview,
  .phase-head,
  .credits-section { grid-template-columns: 1fr; }
  .project-hero { min-height: 78svh; align-content: end; }
  .overview-detail { grid-template-columns: 1fr; }
  .threshold-grid { grid-template-columns: 1fr; }
  .threshold-grid figure:first-child { width: 94%; justify-self: center; }
  .threshold-grid figure:last-child { width: 100%; justify-self: stretch; }
  .credits-section { gap: 4rem; }
}

@media (max-width: 620px) {
  :root { --header: 64px; }
  .brand-mark { width: 48px; height: 48px; }
  .project-title { font-size: clamp(4rem, 20vw, 6rem); }
  .hero-meta { margin-top: 1rem; }
  .world-field p { display: grid; }
  .world-pair,
  .orb-pair,
  .application-pair { grid-template-columns: 1fr; }
  .world-pair figure:first-child { width: 100%; }
  .identity-pair { grid-template-columns: 1fr; }
  .identity-pair figure:first-child,
  .identity-pair figure:last-child { grid-column: auto; width: 100%; }
  .single-wide--contained,
  .threshold-opening,
  .system-board,
  .state-matrix,
  .state-sequence,
  .portal-studies,
  .material-studies,
  .visual-studies { width: 100%; }
  .portal-studies-grid,
  .opening-studies-grid,
  .state-sequence-grid,
  .material-studies-grid,
  .visual-studies-grid { grid-template-columns: 1fr; }
  .portal-studies-grid .portal-study--board,
  .portal-studies-grid .portal-study--dual,
  .material-studies-grid .material-study--wide { grid-column: auto; }
  .portal-studies-grid .portal-study--portrait { grid-column: auto; width: min(82%, 32rem); }
  .visual-study-crop {
    width: 100%;
    aspect-ratio: 1.25 / 1;
  }
  .visual-study-crop .visual-study--chromatic { object-position: center 57%; }
  .visual-study--graphic { grid-column: auto; }
  .development-sequence { gap: 5rem; margin-top: 5rem; }
  .development-frame,
  .development-frame--chromatic,
  .development-frame--fragments,
  .development-frame--matrix,
  .development-frame--resolved { width: 100%; }
  .resolved-forms-grid { gap: 4rem; }
  .resolved-forms-grid .resolved-form--portrait { width: min(82%, 28rem); }
  .application-faceted { width: min(82%, 32rem); }
  .application-single figure { width: 100%; }
  .poster-pair { grid-template-columns: 1fr; }
  .poster-pair figure { width: min(78%, 23rem); justify-self: center; }
  .meta-list div,
  .credits div { grid-template-columns: 5rem minmax(0, 1fr); }
  .project-return { grid-template-columns: 1fr auto; }
  .project-return > span:first-child { grid-column: 1 / -1; }
  .site-footer { flex-direction: column; }
  .site-footer span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
