:root {
  --ink: #11100d;
  --paper: #f7f1e7;
  --sea: #167194;
  --sun: #f5bf28;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgb(17 16 13 / 0.12);
}

.site-wordmark,
.site-nav a {
  color: inherit;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-wordmark {
  display: block;
  width: clamp(82px, 8vw, 120px);
}

.site-wordmark img {
  width: 100%;
}

.story-label,
.origin-photo figcaption {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.site-nav a {
  transition: opacity 180ms ease;
}

.site-nav a:hover {
  opacity: 0.6;
}

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

.hero-scroll {
  height: 190vh;
  background: var(--ink);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  clip-path: ellipse(62% 88% at 100% 52%);
  filter: saturate(1.04) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 0.07);
  clip-path: ellipse(62% 88% at 100% 52%);
  opacity: var(--shade-opacity, 1);
  pointer-events: none;
}

.brand-mark {
  position: absolute;
  left: clamp(28px, 5vw, 76px);
  top: 54%;
  z-index: 2;
  width: min(32vw, 440px);
  transform: translate(var(--logo-x, 0vw), -50%) scale(var(--logo-scale, 1));
  transform-origin: left center;
  opacity: var(--logo-opacity, 1);
  will-change: transform, opacity;
}

.brand-mark img {
  width: 100%;
}

.hero-action {
  display: flex;
  width: fit-content;
  min-width: 190px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(24px, 4vh, 42px);
  border: 1px solid var(--ink);
  padding: 14px 16px;
  background: var(--ink);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.hero-action:hover,
.hero-action:focus-visible {
  background: var(--sun);
  color: var(--ink);
}

.product-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: calc(92px + clamp(34px, 7vh, 72px)) 3vw clamp(44px, 7vh, 76px);
  background: transparent;
  pointer-events: none;
}

.product-stage::before {
  position: absolute;
  inset: calc(70px + clamp(34px, 7vh, 72px)) clamp(16px, 2vw, 32px) clamp(34px, 7vh, 72px);
  z-index: 0;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: #fffdfa;
  content: "";
  opacity: var(--products-label-opacity, 0);
}

.product-stage::after {
  position: absolute;
  inset: calc(70px + clamp(34px, 7vh, 72px)) clamp(16px, 2vw, 32px) clamp(34px, 7vh, 72px);
  z-index: 20;
  border: 4px solid var(--ink);
  border-radius: 16px;
  content: "";
  opacity: var(--products-label-opacity, 0);
  pointer-events: none;
}

.product-index-header {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(94vw, 1480px);
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2px clamp(12px, 1.6vh, 18px);
  color: var(--ink);
  opacity: var(--products-label-opacity, 0);
  transform: translateY(calc((1 - var(--products-label-opacity, 0)) * 18px));
  transition: opacity 120ms linear;
}

.product-heading {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
}

.product-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(8px, 1vw, 16px);
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(6, minmax(0, 1fr));
  width: min(94vw, 1480px);
  flex: 1 1 auto;
  min-height: 0;
}

.product-card {
  grid-column: span 2;
}

.product-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.product-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.product-row img {
  width: 100%;
  height: 96%;
  object-fit: contain;
  pointer-events: none;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  place-items: center;
  color: var(--ink);
  opacity: var(--item-opacity, 0);
  pointer-events: auto;
  text-decoration: none;
  transform: translateX(var(--item-x, 38vw)) scale(var(--item-scale, 0.92));
  transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
  will-change: transform, opacity;
}

.product-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: white;
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  z-index: 5;
  color: var(--ink);
}

.product-card:hover::before,
.product-card:focus-visible::before {
  opacity: 1;
}

.product-row:has(.product-card:hover) .product-card:not(:hover) {
  opacity: calc(var(--item-opacity, 0) * 0.38);
}

.product-card:hover img,
.product-card:focus-visible img {
  transform: scale(1.12) translateY(-2%);
}

.product-card:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

.product-card img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.12));
}

.product-card__flag {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 4;
  border: 1px solid var(--ink);
  padding: 5px 7px;
  background: var(--sun);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card__flag--muted {
  background: white;
}

.product-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 11px;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  opacity: var(--item-opacity, 0);
}

.product-card__meta strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__meta > span {
  flex: 0 0 auto;
}

.next-section {
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  padding: clamp(112px, 12vw, 180px) clamp(24px, 6vw, 90px) clamp(52px, 7vw, 100px);
  opacity: 0;
  transform: translateY(72px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.next-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0;
  color: var(--sea);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 104px);
}

.story-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: clamp(-28px, -2vw, -12px);
}

.story-heading h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(4.5rem, 11vw, 11rem);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-deck {
  max-width: 22ch;
  margin: 0;
  padding-bottom: 0.15em;
  font-size: clamp(1.2rem, 2vw, 2.05rem);
  font-weight: 650;
  line-height: 1.08;
}

.origin-photo {
  margin: 0;
}

.origin-photo img {
  width: 100%;
  height: min(68vw, 820px);
  min-height: 440px;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.92) contrast(1.05);
}

.origin-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
}

.story-copy {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 7vw, 120px);
  padding: clamp(64px, 9vw, 140px) 0 clamp(24px, 3vw, 48px);
}

.story-label {
  margin: 0;
  padding-top: 0.55rem;
}

.story-paragraphs {
  max-width: 780px;
}

.story-paragraphs p {
  margin: 0 0 0.85em;
  font-size: clamp(1.12rem, 1.7vw, 1.8rem);
  line-height: 1.24;
}

.story-paragraphs p:last-child {
  color: rgb(17 16 13 / 0.62);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 26px;
  height: 42px;
  place-items: start center;
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  margin-top: 8px;
  border-radius: 3px;
  background: white;
  animation: wheel-scroll 1.5s ease-in-out infinite;
}

@keyframes wheel-scroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0.15; }
}

@media (max-width: 760px) {
  .hero-sticky {
    min-height: 520px;
  }

  .hero-image {
    object-position: 58% center;
    clip-path: polygon(0 52%, 100% 47%, 100% 100%, 0 100%);
  }

  .hero-shade {
    clip-path: polygon(0 52%, 100% 47%, 100% 100%, 0 100%);
  }

  .brand-mark {
    left: 20px;
    top: 29%;
    width: min(72vw, 360px);
  }

  .hero-action {
    min-width: 176px;
    margin-top: 22px;
    padding: 12px 14px;
  }

  .product-row {
    width: 88vw;
    grid-template: repeat(3, minmax(0, 1fr)) / repeat(4, minmax(0, 1fr));
  }

  .product-card,
  .product-card:nth-child(4) {
    grid-column: span 2;
  }

  .product-card:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .product-index-header {
    width: 88vw;
  }

  .product-index-count {
    display: none;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.62rem;
  }

  .site-wordmark {
    width: 82px;
  }

  .next-section {
    padding: 88px 20px 28px;
  }

  .story-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-heading .eyebrow {
    margin-bottom: 0;
  }

  .story-heading h1 {
    font-size: clamp(3.6rem, 19vw, 5.8rem);
  }

  .story-deck {
    max-width: 18ch;
  }

  .origin-photo img {
    height: 72vh;
    min-height: 430px;
    object-position: 54% center;
  }

  .story-copy {
    grid-template-columns: 1fr;
    gap: 32px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .brand-mark,
  .product-row {
    transition: none;
    will-change: auto;
  }

  .next-section,
  .next-section.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
