:root {
  color-scheme: dark;
  --bg: #07090a;
  --text: #f0f1ee;
  --muted: #8d9698;
  --soft: #c8cece;
  --line: rgba(255, 255, 255, .16);
  --paper: #d7dad8;
  --paper-muted: rgba(8, 11, 12, .62);
  --ink: #080b0c;
  --winter: #9aa9ad;
  --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, 9, 10, .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-weight: 500;
  line-height: .84;
  letter-spacing: -.072em;
}

.project-title span { display: block; }

.project-title > span:first-child {
  font-size: clamp(5rem, 13vw, 13rem);
}

.project-title .title-secondary {
  max-width: 10ch;
  margin: .12em 0 0 23%;
  color: var(--soft);
  font-size: clamp(3.4rem, 8vw, 8rem);
}

.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: #020405;
}

.hero-frame img {
  width: min(88vw, 90rem);
  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: 22ch;
  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); }

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

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

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

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

.landscape-lead {
  width: min(76%, 84rem);
  margin: 0 auto clamp(7rem, 12vw, 13rem);
}

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

.landscape-grid figure:nth-child(1) { grid-column: 1 / span 7; }
.landscape-grid figure:nth-child(2) { grid-column: 7 / -1; margin-top: clamp(5rem, 10vw, 10rem); }
.landscape-grid .shadow-study { grid-column: 2 / span 9; }

.source-material-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(5rem, 10vw, 11rem) clamp(1rem, 2vw, 2rem);
  align-items: start;
  margin-top: clamp(11rem, 18vw, 20rem);
}

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

.tree-sequence {
  width: min(72%, 78rem);
  margin-top: clamp(11rem, 18vw, 20rem);
  margin-left: auto;
}

.trace-section { background: #080c0e; }

.trace-lead {
  width: min(82%, 92rem);
  margin: 0 0 clamp(8rem, 14vw, 15rem) auto;
}

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

.trace-pair figure:last-child { margin-top: clamp(7rem, 13vw, 13rem); }

.trace-support-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(5rem, 10vw, 11rem) clamp(1rem, 2vw, 2rem);
  align-items: start;
  margin-top: clamp(11rem, 18vw, 20rem);
}

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

.threshold-section {
  background: #d0d3d1;
  color: var(--ink);
}

.threshold-lead {
  width: min(84%, 94rem);
  margin: 0 auto clamp(8rem, 14vw, 15rem);
}

.forest-void-study {
  width: min(76%, 84rem);
  margin: 0 0 clamp(10rem, 17vw, 19rem) auto;
}

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

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

.water-sequence {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(10rem, 17vw, 19rem);
}

.water-sequence figure:first-child { margin-bottom: clamp(6rem, 12vw, 12rem); }

.title-section { background: #030607; }

.credit-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.credit-pair figure:last-child { margin-top: clamp(6rem, 12vw, 12rem); }

.title-reduction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(11rem, 18vw, 20rem);
}

.title-reduction-grid figure:last-child { margin-top: clamp(7rem, 13vw, 13rem); }

.final-title {
  width: min(88%, 98rem);
  margin: clamp(11rem, 18vw, 20rem) auto 0;
}

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

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

.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(7, 9, 10, .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; }
  .project-title > span:first-child { font-size: clamp(4.4rem, 24vw, 7rem); }
  .project-title .title-secondary {
    max-width: 8.5ch;
    margin-left: 0;
    font-size: clamp(3rem, 16vw, 5.4rem);
  }

  .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); }
  .hero-frame img { width: 100%; }

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

  .landscape-grid,
  .source-material-grid,
  .tree-sequence,
  .trace-pair,
  .trace-support-grid,
  .threshold-pair,
  .water-sequence,
  .credit-pair,
  .title-reduction-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .landscape-grid figure:nth-child(n),
  .source-material-grid figure:nth-child(n),
  .trace-support-grid figure:nth-child(n),
  .threshold-pair figure:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .landscape-lead,
  .trace-lead,
  .threshold-lead,
  .forest-void-study,
  .final-title {
    width: 100%;
    margin-inline: 0;
  }

  .trace-pair figure:last-child,
  .tree-sequence figure:last-child,
  .threshold-pair figure:last-child,
  .water-sequence figure:first-child,
  .credit-pair figure:last-child,
  .title-reduction-grid figure:last-child { margin: 0; }

  .water-sequence,
  .source-material-grid,
  .tree-sequence,
  .trace-support-grid,
  .title-reduction-grid,
  .final-title { margin-top: 8rem; }

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