:root {
  --bg: #0d0d0d;
  --bg-soft: #161616;
  --surface: rgba(250, 247, 241, 0.06);
  --line: rgba(250, 247, 241, 0.14);
  --text: #f2ede3;
  --muted: rgba(242, 237, 227, 0.68);
  --accent: #cbb89c;
  --sans: "Monument Extended", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.2rem, 2vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #090909 0%, var(--bg) 40%, #121212 100%);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  opacity: 0.18;
  z-index: -2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem var(--gutter) 0;
  mix-blend-mode: difference;
}

.brand-mark,
.site-nav {
  display: grid;
  gap: 0.2rem;
}

.brand-mark__name,
.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-mark__meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  justify-items: end;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 1rem;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  transform: translateY(-50%) rotate(45deg);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.site-nav a.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) rotate(45deg) scale(1.15);
}

main {
  position: relative;
}

.overline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 430vh;
}

.hero__media {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: grayscale(1) contrast(1.12) brightness(0.42);
  transform: scale(1.1);
}

.hero__grain,
.hero__wash {
  position: absolute;
  inset: 0;
}

.hero__grain {
  opacity: 0.26;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.07), transparent 25%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28));
}

.hero__wash {
  opacity: 0.74;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.88) 0%, rgba(7, 7, 7, 0.2) 48%, rgba(7, 7, 7, 0.78) 100%);
}

.hero__content,
.hero__data {
  position: absolute;
  z-index: 2;
}

.hero__content {
  top: 18vh;
  left: clamp(1.2rem, 5vw, 4rem);
  width: min(32rem, calc(100% - 2.4rem));
}

.hero h1,
.sliding-panels h2,
.section-heading h2,
.materials h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.8rem, 12vw, 9rem);
  max-width: 8ch;
}

.hero__lede {
  max-width: 23rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
  margin-top: 2rem;
}

.button-link,
.text-link {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(242, 237, 227, 0.42);
  background: rgba(12, 12, 12, 0.36);
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.button-link:hover,
.button-link:focus-visible {
  transform: translate3d(0.35rem, -0.35rem, 0);
  background: rgba(203, 184, 156, 0.08);
  border-color: rgba(203, 184, 156, 0.78);
}

.text-link {
  color: var(--muted);
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(0.35);
}

.hero__data {
  bottom: 2rem;
  display: grid;
  gap: 0.28rem;
  color: rgba(242, 237, 227, 0.62);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__data--left {
  left: var(--gutter);
}

.hero__data--right {
  right: var(--gutter);
  justify-items: end;
  text-align: right;
}

.sliding-panels {
  position: relative;
  z-index: 3;
  padding: 138vh var(--gutter) 12rem;
  overflow-x: clip;
}

.panel {
  position: relative;
  width: min(30rem, calc(100% - 5rem));
  margin: 0 0 0 auto;
  padding: 2.2rem 1.5rem 2.6rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.68), rgba(8, 8, 8, 0.4));
  backdrop-filter: blur(8px);
  transform: translateX(10vw);
}

.panel + .panel {
  margin-top: 22vh;
}

.panel--intro {
  width: min(24rem, calc(100% - 6rem));
  margin-right: clamp(0.5rem, 4vw, 4rem);
}

.panel--offset {
  margin-left: clamp(1rem, 7vw, 7rem);
  margin-right: auto;
}

.panel--dense {
  width: min(22rem, calc(100% - 6rem));
  margin-right: clamp(0.5rem, 5vw, 4.5rem);
}

@media (min-width: 1200px) {
  .sliding-panels {
    padding-top: 134vh;
    padding-inline: clamp(2rem, 5vw, 5rem);
  }

  .panel {
    width: min(26rem, 28vw);
  }

  .panel--intro {
    width: min(21rem, 23vw);
    margin-right: clamp(8rem, 14vw, 14rem);
  }

  .panel--offset {
    width: min(29rem, 31vw);
    margin-left: clamp(6rem, 12vw, 12rem);
  }

  .panel--dense {
    width: min(18.5rem, 21vw);
    margin-right: clamp(10rem, 18vw, 16rem);
  }
}

.panel h2 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 10ch;
}

.panel p:last-child,
.reference__copy p:last-of-type,
.materials__columns p,
.contact p:last-of-type {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.projects,
.materials,
.citations,
.contact {
  position: relative;
  padding: 9rem var(--gutter);
}

.section-heading {
  max-width: 42rem;
}

.section-heading h2,
.materials h2,
.citations h2,
.contact h2 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  max-width: 10ch;
}

.project-card__index {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.references-grid {
  display: grid;
  gap: 4.5rem;
  margin-top: 4rem;
}

.reference {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: start;
}

.reference__copy {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.reference h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 0.96;
}

.reference--feature .reference__figure {
  grid-column: 2 / span 5;
}

.reference--feature .reference__copy {
  grid-column: 8 / span 4;
  padding-top: 4rem;
}

.reference--offset .reference__copy {
  grid-column: 2 / span 4;
  padding-top: 3rem;
}

.reference--offset .reference__figure {
  grid-column: 7 / span 5;
  margin-top: 3rem;
}

.reference--compact .reference__figure {
  grid-column: 3 / span 4;
}

.reference--compact .reference__copy {
  grid-column: 8 / span 4;
  padding-top: 5rem;
}

.reference__figure {
  margin: 0;
}

.reference__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}

.reference__figure--tall {
  height: min(44rem, 78vh);
}

.reference__figure--wide {
  height: min(30rem, 60vh);
}

.reference__figure--compact {
  height: min(24rem, 48vh);
}

.reference__figure figcaption,
.reference__origin,
.citations__grid p {
  color: rgba(242, 237, 227, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}

.reference__figure figcaption {
  margin-top: 0.75rem;
}

.reference__origin {
  margin: 0 0 1rem;
}

.materials {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: start;
}

.materials__lead {
  grid-column: 2 / span 5;
}

.materials__columns {
  grid-column: 7 / span 5;
  display: grid;
  gap: 1.4rem;
  padding-top: 0.8rem;
}

.materials__figure {
  grid-column: 3 / span 8;
  margin: 3.5rem 0 0;
}

.materials__figure img,
.geometry-band__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
}

.materials__figure img {
  height: min(34rem, 70vh);
}

.materials__figure figcaption,
.geometry-band__figure figcaption {
  margin-top: 0.75rem;
  color: rgba(242, 237, 227, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}

.geometry-band {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: end;
  padding: 0 var(--gutter) 9rem;
}

.geometry-band__copy {
  grid-column: 2 / span 4;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.geometry-band__copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.geometry-band__copy p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.geometry-band__figure {
  grid-column: 7 / span 5;
  margin: 0;
}

.geometry-band__figure img {
  height: min(38rem, 74vh);
}

.citations {
  padding-top: 0;
}

.citations__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.citations__grid p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.citations__grid p:nth-child(1) {
  grid-column: 2 / span 3;
}

.citations__grid p:nth-child(2) {
  grid-column: 5 / span 3;
}

.citations__grid p:nth-child(3) {
  grid-column: 8 / span 3;
}

.citations__grid p:nth-child(4) {
  grid-column: 11 / span 2;
}

.contact {
  min-height: 72vh;
  display: grid;
  align-content: end;
  justify-items: start;
  border-top: 1px solid var(--line);
}

.contact p:last-of-type {
  max-width: 32rem;
}

.button-link--inverse {
  margin-top: 1.5rem;
  background: rgba(242, 237, 227, 0.92);
  color: #111;
  border-color: rgba(242, 237, 227, 0.92);
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
  }

  .site-nav {
    gap: 0.5rem;
  }

  .hero {
    min-height: 390vh;
  }

  .hero__content {
    top: 16vh;
  }

  .sliding-panels {
    padding-top: 132vh;
  }

  .panel,
  .panel--intro,
  .panel--offset,
  .panel--dense {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .projects,
  .materials,
  .geometry-band,
  .citations,
  .contact {
    padding: 7rem 1rem;
  }

  .reference,
  .materials,
  .citations__grid {
    grid-template-columns: 1fr;
  }

  .reference--feature .reference__figure,
  .reference--feature .reference__copy,
  .reference--offset .reference__copy,
  .reference--offset .reference__figure,
  .reference--compact .reference__figure,
  .reference--compact .reference__copy,
  .materials__lead,
  .materials__columns,
  .materials__figure,
  .geometry-band,
  .geometry-band__copy,
  .geometry-band__figure,
  .citations__grid p {
    grid-column: auto;
    margin-top: 0;
  }

  .reference {
    gap: 1.25rem;
  }

  .reference__figure--tall,
  .reference__figure--wide,
  .reference__figure--compact {
    height: auto;
  }

  .materials__figure {
    margin-top: 2rem;
  }

  .materials__figure img,
  .geometry-band__figure img {
    height: auto;
  }

  .reference__copy,
  .reference--feature .reference__copy,
  .reference--offset .reference__copy,
  .reference--compact .reference__copy {
    padding-top: 1.25rem;
  }

  .hero__data--right {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
  }

  .brand-mark__meta,
  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 350vh;
  }

  .hero__image {
    object-position: center;
  }

  .hero__content {
    top: 14vh;
    width: calc(100% - 1.5rem);
    left: 0.75rem;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__data {
    left: 0.75rem;
    right: auto;
    bottom: 1.2rem;
  }

  .sliding-panels {
    padding-top: 120vh;
    padding-bottom: 8rem;
  }

  .panel {
    padding: 1.6rem 1rem 2rem;
  }

  .projects,
  .materials,
  .geometry-band,
  .citations,
  .contact {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}
