@font-face {
  font-family: "Madefor Display";
  font-style: normal;
  font-weight: 700;
  src:
    url("https://static.parastorage.com/fonts/v2/26656ec7-c27d-4bdc-a9f4-6b498bbfad69/madefor-display.var.original.woff2")
      format("woff2-variations"),
    url("https://static.parastorage.com/fonts/v2/f7531dde-c39a-485c-a204-c09154e8d163/v1/madefor-display-bold.woff2")
      format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue W01";
  font-style: normal;
  font-weight: 700;
  src: url("https://static.parastorage.com/fonts/v2/7656dffe-e48a-4387-bcf9-cd96060a10ca/v1/helveticaneuew01-65medi.latin.woff2")
    format("woff2");
  font-display: swap;
}

:root {
  --page-bg: #000;
  --page-fg: #fff;
  --header-text: #f4efe5;
  --header-text-soft: rgba(255, 255, 255, 0.58);
  --header-accent: #ff5c00;
  --hero-left: calc(0.142382 * 100vw);
  --hero-width: calc(0.85514 * 100vw);
  --hero-aspect: 1.653032;
  --thumb-left: calc(0.568984375 * 100vw);
  --thumb-width: calc(0.34294 * 100vw);
  --thumb-aspect: 0.987471;
  --stack-shift: 0px;
  --stack-start: 112vh;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-shell {
  background: var(--page-bg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 42px;
}

.logo {
  color: var(--header-text);
  text-decoration: none;
  font-family: "Advent Pro", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.logo:hover,
.logo:focus-visible {
  color: var(--header-accent);
  outline: none;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-family: "Space Grotesk", sans-serif;
}

.site-nav a {
  color: var(--header-text-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--header-accent);
  outline: none;
}

.gallery-page {
  position: relative;
  background: #000;
  min-height: 100vh;
}

.gallery-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.gallery-title {
  position: absolute;
  z-index: 3;
  left: calc(0.056 * 100vw);
  top: calc(0.52 * 100vw);
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: calc(100 * 100vw / 1280);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: rotate(-90deg);
  transform-origin: top left;
  white-space: nowrap;
}

.gallery-hero {
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--hero-left);
  width: var(--hero-width);
  aspect-ratio: var(--hero-aspect);
  overflow: hidden;
}

.gallery-hero img,
.stack-card__media img {
  object-fit: cover;
}

.stack-track {
  position: absolute;
  z-index: 2;
  left: var(--thumb-left);
  width: var(--thumb-width);
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.stack-column {
  position: absolute;
  top: var(--stack-start);
  left: 0;
  right: 0;
  display: grid;
  gap: clamp(40px, 3vw, 78px);
  transform: translate3d(0, var(--stack-shift), 0);
  will-change: transform;
}

.stack-card {
  display: grid;
  gap: clamp(18px, 1.5vw, 28px);
  margin: 0;
  padding: clamp(18px, 1.45vw, 30px);
  background: #f7f7f7;
  color: #2b2b2b;
}

.stack-card__media {
  overflow: hidden;
  aspect-ratio: 1.38;
  background: #ffffff;
}

.stack-card__media img {
  width: 100%;
  height: 100%;
  object-position: center top;
}

.stack-card__caption {
  margin: 0;
  font-family: "Advent Pro", sans-serif;
  font-size: clamp(20px, 1.7vw, 30px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.stack-card__name {
  color: #ff5c00;
}

@media (max-width: 860px) {
  .site-header {
    padding: 18px;
    gap: 12px;
  }

  .logo {
    font-size: 22px;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    font-size: 11px;
  }
}

@media (max-width: 750px) {
  .gallery-stage {
    position: relative;
    top: auto;
    height: auto;
    display: grid;
    gap: 28px;
    padding: 20px 0 48px;
  }

  .gallery-title,
  .gallery-hero,
  .stack-track {
    position: static;
    transform: none;
  }

  .gallery-title {
    padding: 0 24px;
    font-size: clamp(52px, 17vw, 86px);
  }

  .gallery-hero {
    width: min(100%, 100vw);
    aspect-ratio: 1024 / 819;
  }

  .stack-track {
    width: calc(100vw - 48px);
    height: auto;
    margin: 0 auto;
    overflow: visible;
  }

  .stack-column {
    position: static;
    gap: 24px;
    transform: none;
  }

  .stack-card {
    width: 100%;
  }

  .stack-card__caption {
    font-size: 22px;
  }
}
