@font-face {
  font-family: "Interstate";
  src: url("/assets/fonts/Interstate-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Interstate";
  src: url("/assets/fonts/Interstate-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #050706;
  --white: #0d120f;
  --ink: #f6f7f2;
  --muted: #aab4ad;
  --line: #26312b;
  --line-dark: #52665a;
  --green: #00a859;
  --green-dark: #f6f7f2;
  --soft: #111713;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Interstate", "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  position: relative;
}

img,
svg {
  display: block;
}

img {
  width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ambient-context {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.project-page .ambient-context {
  mix-blend-mode: screen;
  z-index: 4;
}

.ambient-context span {
  animation: ambient-drift 18s ease-in-out infinite alternate;
  color: rgba(246, 247, 242, 0.022);
  font-size: clamp(24px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
  position: absolute;
  text-transform: uppercase;
  white-space: nowrap;
}

.ambient-context span:nth-child(1) {
  left: -8vw;
  top: 14vh;
}

.ambient-context span:nth-child(2) {
  animation-delay: -5s;
  color: rgba(0, 168, 89, 0.028);
  right: -18vw;
  top: 42vh;
}

.ambient-context span:nth-child(3) {
  animation-delay: -10s;
  bottom: 12vh;
  left: 18vw;
}

.ambient-context span:nth-child(4) {
  animation-delay: -14s;
  color: rgba(0, 168, 89, 0.022);
  right: -10vw;
  top: 74vh;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(-22px, -12px, 0);
  }

  to {
    transform: translate3d(28px, 18px, 0);
  }
}

.site-header {
  background: rgba(5, 7, 6, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.project-page .site-header {
  background: linear-gradient(180deg, rgba(5, 7, 6, 0.82), rgba(5, 7, 6, 0));
  border-bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 72px;
  padding: 13px 24px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.nav a,
.back-link,
.source-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.source-link:hover,
.source-link:focus-visible {
  color: var(--green);
  outline: none;
}

.opening {
  align-content: end;
  display: grid;
  margin: 0 auto;
  max-width: var(--max);
  min-height: clamp(170px, 30vh, 360px);
  padding: clamp(48px, 8vw, 108px) 24px clamp(28px, 5vw, 54px);
  position: relative;
  z-index: 2;
}

.opening-rule {
  background: var(--line-dark);
  height: 1px;
  margin-bottom: clamp(34px, 6vw, 70px);
  width: 100%;
}

.eyebrow,
.section-label,
.project-type {
  color: var(--green);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.opening h1 {
  color: var(--green-dark);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 980px;
}

.opening-copy {
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 720px;
}

.project-tiles {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px clamp(68px, 8vw, 104px);
  position: relative;
  z-index: 2;
}

.project-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  min-height: 390px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.project-tile img {
  aspect-ratio: 4 / 3;
  filter: saturate(0.92);
  height: auto;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.project-tile:hover img,
.project-tile:focus-visible img {
  filter: saturate(1);
  transform: scale(1.025);
}

.project-tile:hover,
.project-tile:focus-visible {
  border-color: var(--green);
  outline: none;
}

.project-number {
  background: rgba(5, 7, 6, 0.92);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  left: 0;
  letter-spacing: 0.12em;
  padding: 10px 12px;
  position: absolute;
  top: 0;
  z-index: 1;
}

.project-tile-copy {
  align-content: start;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.project-tile-copy strong {
  color: var(--green-dark);
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 400;
  line-height: 1.02;
}

.project-tile-copy > span:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.similarity-section {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(46px, 7vw, 86px) 24px;
}

.similarity-section h2 {
  color: var(--green-dark);
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 32px;
  max-width: 920px;
}

.legend-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legend-item {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  gap: 14px;
  min-height: 86px;
  padding: 18px;
}

.legend-item svg,
.ribbon-items svg {
  color: var(--green-dark);
  flex: 0 0 auto;
  height: 28px;
  width: 28px;
}

.legend-item span {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.back-link {
  display: inline-block;
  margin-bottom: clamp(28px, 5vw, 58px);
}

.source-link {
  border-bottom: 1px solid currentColor;
  display: inline-block;
  padding-bottom: 4px;
}

.project-controls {
  align-items: center;
  display: flex;
  gap: 7px;
  pointer-events: auto;
  position: fixed;
  right: clamp(18px, 3vw, 44px);
  top: clamp(86px, 9vw, 112px);
  z-index: 24;
}

.control-button {
  align-items: center;
  background: rgba(5, 7, 6, 0.72);
  border: 1px solid rgba(246, 247, 242, 0.26);
  color: rgba(246, 247, 242, 0.9);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  min-width: 46px;
  padding: 0 12px;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.control-button:hover,
.control-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.control-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.control-button svg {
  height: 22px;
  width: 22px;
}

.control-home {
  gap: 9px;
}

.control-home span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.immersive-project {
  background: var(--paper);
  height: 100svh;
  overflow: hidden;
}

.project-page {
  height: 100svh;
  overflow: hidden;
}

.project-track {
  display: flex;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-track:focus {
  outline: none;
}

.project-track::-webkit-scrollbar {
  display: none;
}

.story-panel {
  display: grid;
  flex: 0 0 100vw;
  height: 100svh;
  isolation: isolate;
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}

.image-panel {
  background: #050706;
}

.image-panel > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.image-panel::after {
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.76), rgba(5, 7, 6, 0.18) 42%, rgba(5, 7, 6, 0.56)),
    linear-gradient(0deg, rgba(5, 7, 6, 0.72), rgba(5, 7, 6, 0) 36%, rgba(5, 7, 6, 0.5));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
}

.project-title-card,
.caption-block {
  position: relative;
  z-index: 8;
}

.project-title-card {
  align-self: end;
  justify-self: start;
  margin: clamp(106px, 12vw, 150px) 24px clamp(44px, 7vw, 86px);
  max-width: min(760px, calc(100vw - 48px));
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.project-title-card h1 {
  color: var(--green-dark);
  font-size: clamp(42px, 6.4vw, 92px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.project-title-card .back-link,
.project-title-card .source-link {
  color: rgba(246, 247, 242, 0.78);
}

.project-title-card .back-link:hover,
.project-title-card .back-link:focus-visible,
.project-title-card .source-link:hover,
.project-title-card .source-link:focus-visible {
  color: var(--green);
}

.project-facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  max-width: 900px;
}

.project-facts div {
  border-top: 1px solid rgba(246, 247, 242, 0.42);
  padding: 14px 18px 0 0;
}

.project-facts dt {
  color: rgba(246, 247, 242, 0.7);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.project-facts dd {
  color: var(--ink);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.28;
  margin: 0;
}

.caption-panel {
  background:
    linear-gradient(90deg, rgba(0, 168, 89, 0.12), rgba(0, 168, 89, 0) 38%),
    var(--paper);
  padding: clamp(94px, 13vw, 160px) 24px clamp(48px, 8vw, 94px);
}

.caption-panel::before,
.caption-panel::after {
  background: rgba(246, 247, 242, 0.22);
  content: "";
  height: 1px;
  position: absolute;
  width: min(560px, 44vw);
  z-index: 5;
}

.caption-panel::before {
  left: 24px;
  top: clamp(96px, 14vw, 170px);
}

.caption-panel::after {
  bottom: clamp(46px, 8vw, 92px);
  right: 24px;
}

.caption-block {
  max-width: min(760px, calc(100vw - 48px));
}

.caption-block span {
  color: var(--green);
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.caption-block p {
  color: var(--green-dark);
  font-size: clamp(30px, 4.15vw, 58px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.07;
  margin-bottom: 0;
  max-width: 22ch;
  overflow-wrap: break-word;
}

.caption-layout-1 .caption-block {
  align-self: center;
  justify-self: start;
  margin-left: clamp(0px, 7vw, 110px);
}

.caption-layout-2 .caption-block {
  align-self: end;
  justify-self: end;
  margin-bottom: clamp(16px, 7vw, 96px);
}

.caption-layout-3 .caption-block {
  align-self: start;
  justify-self: center;
  margin-top: clamp(30px, 8vw, 116px);
}

.caption-layout-4 .caption-block {
  align-self: center;
  justify-self: end;
}

.floating-similarities {
  bottom: clamp(20px, 4vw, 54px);
  display: grid;
  gap: 6px;
  justify-items: end;
  pointer-events: none;
  position: fixed;
  right: clamp(18px, 3vw, 44px);
  z-index: 7;
}

.floating-similarity {
  align-items: center;
  animation: none;
  background: rgba(5, 7, 6, 0.72);
  border: 1px solid rgba(246, 247, 242, 0.22);
  color: rgba(246, 247, 242, 0.9);
  display: inline-flex;
  gap: 10px;
  letter-spacing: 0.12em;
  min-height: 44px;
  padding: 8px 11px;
  position: static;
  text-transform: uppercase;
  width: 210px;
}

.floating-similarity svg {
  color: var(--green);
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.floating-similarity span {
  font-size: 11px;
  line-height: 1.1;
  max-width: none;
  min-width: 0;
}

@keyframes cue-drift {
  from {
    transform: translate3d(-8px, -7px, 0);
  }

  to {
    transform: translate3d(10px, 8px, 0);
  }
}

.footer {
  background: #020302;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 48px;
  padding: 28px 24px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
}

.footer img {
  height: 36px;
  width: auto;
}

.footer p {
  font-size: 14px;
  margin-bottom: 0;
}

@media (max-width: 1060px) {
  .project-tiles,
  .legend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .project-page .site-header {
    position: fixed;
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .opening,
  .project-tiles,
  .similarity-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-tiles,
  .legend-grid {
    grid-template-columns: 1fr;
  }

  .project-tile {
    min-height: auto;
  }

  .project-controls {
    left: 18px;
    right: auto;
    top: 88px;
  }

  .control-button {
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
  }

  .control-button svg {
    height: 19px;
    width: 19px;
  }

  .control-home span {
    font-size: 10px;
  }

  .story-panel {
    flex-basis: 100vw;
    height: 100svh;
    min-height: 100svh;
  }

  .project-title-card {
    margin: 112px 18px 116px;
    max-width: calc(100vw - 36px);
  }

  .project-title-card h1 {
    font-size: clamp(34px, 10.5vw, 54px);
    line-height: 1;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-facts div {
    padding: 11px 0 0;
  }

  .caption-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .caption-panel::before,
  .caption-panel::after {
    width: calc(100vw - 36px);
  }

  .caption-panel::before {
    left: 18px;
  }

  .caption-panel::after {
    right: 18px;
  }

  .caption-block,
  .caption-layout-1 .caption-block,
  .caption-layout-2 .caption-block,
  .caption-layout-3 .caption-block,
  .caption-layout-4 .caption-block {
    align-self: center;
    justify-self: start;
    margin: 0;
    max-width: calc(100vw - 36px);
  }

  .caption-block p {
    font-size: clamp(26px, 7.6vw, 40px);
    line-height: 1.12;
    max-width: 19ch;
  }

  .floating-similarities {
    align-items: flex-end;
    bottom: 14px;
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-end;
    left: 12px;
    overflow: visible;
    padding: 0;
    right: 12px;
  }

  .floating-similarity,
  .cue-1,
  .cue-2,
  .cue-3,
  .cue-4,
  .cue-5,
  .cue-6 {
    animation: none;
    bottom: auto;
    flex: 0 0 auto;
    left: auto;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
  }

  .floating-similarity {
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    width: 100%;
  }

  .floating-similarity svg {
    height: 18px;
    width: 18px;
  }

  .floating-similarity span {
    font-size: 9px;
    max-width: 96px;
  }
}
