:root {
  --cashmere: #eee7da;
  --cashmere-light: #f6f2ea;
  --ink: #08281f;
  --green: #587d69;
  --line: rgba(8, 40, 31, 0.18);
  --paper: #fbf9f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--cashmere);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
}

a,
button {
  color: inherit;
}

.triptych {
  display: grid;
  grid-template-columns: minmax(280px, 34fr) minmax(330px, 32fr) minmax(280px, 34fr);  height: 100dvh;
  overflow: hidden;
}

.rail {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-snap-type: y proximity;
  background: var(--cashmere);
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail--left,
.rail--right {
  border: 0;
}

.rail__header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--cashmere) 90%, transparent);
  backdrop-filter: blur(12px);
}

.rail__header--right a,
.rail__footer a {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.dot {
  color: var(--green);
}

.edition,
.product__number,
.film__hint,
.film__title > p {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.edition {
  color: var(--green);
}

.product,
.manifesto {
  min-height: calc(100dvh - 76px);
  padding: 22px 20px 26px;
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
}

.product {
  display: flex;
  flex-direction: column;
}

.product__number {
  margin: 0;
  color: var(--green);
}

.product img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  margin: 18px 0;
  object-fit: contain;
}

.product--front,
.product--back {
  background: #101311;
  color: var(--paper);
}

.product--front .product__number,
.product--back .product__number {
  color: #9bb4a5;
}

.product__media {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 18px 0;
  overflow: hidden;
}

.product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.product__media--front img {
  object-position: center 20%;
  transform: translateX(-5%) scale(1.25);
  transform-origin: 68% 29%;
}

.product--board {
  background: var(--cashmere-light);
}

.product--board img {
  padding: 12px;
  background: #101311;
}

.product__caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.product__caption h2,
.product__caption p {
  margin: 0;
}

.product__caption h2 {
  max-width: 68%;
  font-size: clamp(20px, 1.7vw, 30px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.product__caption p {
  max-width: 110px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.manifesto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--green);
  color: var(--paper);
}

.manifesto .product__number {
  color: var(--paper);
  opacity: 0.72;
}

.manifesto blockquote {
  margin: auto 0;
  font-size: clamp(38px, 4vw, 72px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.manifesto > p:last-child {
  max-width: 280px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.rail__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.rail__footer p {
  margin: 0;
}

.film {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #101311;
  color: white;
}

.film video,
.film__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film video {
  z-index: -2;
  object-fit: cover;
}

.film__shade {
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 28%, transparent 62%, rgba(0, 0, 0, 0.52)),
    linear-gradient(to right, rgba(0, 0, 0, 0.16), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.film__title {
  position: absolute;
  left: 24px;
  bottom: 30px;
  max-width: calc(100% - 48px);
}

.film__title > p {
  margin: 0 0 10px;
}

.film__title h1 {
  margin: 0;
  font-size: clamp(44px, 4.4vw, 76px);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .triptych {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .film {
    order: -1;
    height: 72svh;
    min-height: 560px;
  }

  .rail {
    height: auto;
    overflow: visible;
    border: 0;
  }

  .rail__header {
    position: relative;
  }

  .product,
  .manifesto {
    min-height: 78svh;
  }

  .film__title h1 {
    font-size: clamp(54px, 15vw, 86px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .rail {
    scroll-behavior: auto;
  }
}

@media (min-width: 901px) {
  .rail__footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
  }
}
