:root {
  color-scheme: dark;
  --bg: #080b0d;
  --text: #f0f1ee;
  --muted: #90999e;
  --soft: #cbd2d4;
  --line: rgba(255, 255, 255, .16);
  --paper: #d9dddc;
  --paper-muted: rgba(8, 11, 13, .6);
  --ink: #080b0d;
  --signal: #8ea6b3;
  --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(8, 11, 13, .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(84svh - 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.3rem, 11.5vw, 11.4rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.074em;
}

.project-title span { display: block; }

.project-title .title-secondary {
  margin-left: 24%;
  color: var(--soft);
}

.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(2rem, 5vw, 5rem) var(--pad);
  background: #030607;
}

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

.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,
.poster-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); }

.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,
.poster-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,
.poster-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;
}

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

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

.structure-section .section-copy { border-color: rgba(0, 0, 0, .26); }

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

.study-pair figure:first-child { grid-column: 1 / span 7; }

.study-pair figure:last-child {
  grid-column: 6 / -1;
}

.structure-concept {
  width: min(60%, 60rem);
  margin: clamp(7rem, 12vw, 13rem) 0 0 auto;
}

.network-section { background: #090d10; }

.network-lead {
  width: min(78%, 88rem);
  margin: 0 auto clamp(5rem, 10vw, 10rem);
}

.network-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
}

.network-pair figure:last-child { margin-bottom: clamp(4rem, 8vw, 8rem); }

.network-orbit {
  width: min(88%, 94rem);
  margin: clamp(6rem, 12vw, 13rem) auto 0;
}

.tone-section {
  background: #cfd3d1;
  color: var(--ink);
}

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

.tone-section .section-copy { border-color: rgba(0, 0, 0, .26); }

.tone-study-grid,
.tone-behaviour-pair,
.breakdown-grid {
  display: grid;
  align-items: start;
}

.tone-study-grid {
  width: min(100%, 94rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(4.5rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid rgba(8, 11, 13, .2);
  border-bottom: 1px solid rgba(8, 11, 13, .2);
}

.tone-study-grid figure {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
}

.tone-study-grid img {
  height: clamp(30rem, 48vw, 46rem);
  object-fit: contain;
  object-position: center bottom;
}

.tone-behaviour-pair {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 0;
}

.breakdown-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .7fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
  margin: clamp(11rem, 18vw, 20rem) 0 clamp(4rem, 8vw, 8rem);
}

.breakdown-intro h3 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6.6rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.057em;
}

.breakdown-intro p {
  margin: 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
}

.breakdown-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(4rem, 9vw, 10rem) clamp(1rem, 2vw, 2rem);
}

.breakdown-grid figure:nth-child(1) { grid-column: 1 / span 7; }
.breakdown-grid figure:nth-child(2) { grid-column: 8 / -1; margin-top: clamp(4rem, 9vw, 9rem); }
.breakdown-grid figure:nth-child(3) { grid-column: 2 / span 6; }
.breakdown-grid figure:nth-child(4) { grid-column: 8 / -1; margin-top: clamp(3rem, 7vw, 7rem); }

.application-section { background: #06090b; }

.final-lead {
  width: min(72%, 82rem);
  margin: 0 auto clamp(6rem, 11vw, 12rem);
}

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

.final-grid figure:nth-child(1) { grid-column: 1 / span 7; }
.final-grid figure:nth-child(2) { grid-column: 8 / -1; margin-top: clamp(4rem, 9vw, 9rem); }
.final-grid figure:nth-child(3) { grid-column: 2 / span 5; }
.final-grid figure:nth-child(4) { grid-column: 7 / -1; margin-top: clamp(5rem, 10vw, 10rem); }
.final-grid figure:nth-child(5) { grid-column: 3 / span 8; }

.poster-section {
  padding: clamp(8rem, 14vw, 15rem) var(--pad);
  background: #e5e6e3;
  color: var(--ink);
}

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

.poster-head .section-label,
.poster-copy p { color: rgba(8, 11, 13, .62); }
.poster-copy { border-color: rgba(0, 0, 0, .25); }

.poster-pair {
  position: relative;
  left: 50%;
  display: grid;
  width: min(100vw, 100rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4.5vw, 5rem);
  align-items: start;
  transform: translateX(-50%);
}

.poster-pair figure:last-child { margin-top: clamp(6rem, 12vw, 13rem); }
.poster-pair .image-caption { color: rgba(8, 11, 13, .58); }

.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: #9faeb4;
  color: var(--ink);
}

.result-section .section-label,
.result-copy p { color: rgba(8, 11, 13, .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;
}

.credits a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }

.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;
}

.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 ease;
}

.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(8, 11, 13, .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(4rem, 22vw, 6.2rem);
    line-height: .83;
  }

  .project-title .title-secondary { margin-left: 0; }

  .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; }

  .hero-frame { padding: 1.5rem var(--pad); }

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

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

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

  .study-pair,
  .network-pair,
  .tone-study-grid,
  .tone-behaviour-pair,
  .breakdown-grid,
  .final-grid,
  .poster-pair {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .study-pair figure:first-child,
  .study-pair figure:last-child,
  .breakdown-grid figure:nth-child(n),
  .final-grid figure:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .study-pair figure:last-child,
  .network-pair figure:last-child,
  .poster-pair figure:last-child { margin-top: 0; }

  .network-lead,
  .network-orbit,
  .structure-concept,
  .final-lead,
  .poster-pair {
    position: static;
    width: 100%;
    margin-inline: 0;
    transform: none;
  }

  .tone-study-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    padding: 2rem 0;
  }

  .tone-study-grid figure {
    display: block;
  }
  .tone-study-grid img { height: auto; }

  .tone-behaviour-pair { margin-top: 7rem; }

  .breakdown-intro { margin-top: 9rem; }

  .credits div { grid-template-columns: 1fr; gap: .4rem; }
  .project-return { min-height: 30svh; align-items: flex-start; flex-direction: column; justify-content: center; }
  .site-footer { min-height: 160px; align-items: start; flex-direction: column; }
  .site-footer span:last-child { text-align: left; }
}

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