:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --graphite: #111111;
  --white: #f4f3ef;
  --muted: #a6a5a0;
  --line: rgba(255, 255, 255, 0.14);
  --page-padding: clamp(1.25rem, 4vw, 5rem);
  --header-height: 5.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #050505;
  background: #f4f3ef;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.page-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #f4f3ef;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--page-padding);
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand img {
  width: clamp(8.5rem, 12vw, 11.75rem);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  padding: 0.5rem 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 450ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.desktop-nav .nav-store {
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
}

.desktop-nav .nav-store::after {
  display: none;
}

.menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 1.5rem;
  height: 1px;
  margin: 0.35rem auto;
  background: currentColor;
  transition: transform 300ms var(--ease-out);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(0.175rem) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-0.175rem) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--page-padding);
  background: #050505;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2rem);
  transition:
    opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out),
    visibility 400ms;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  width: fit-content;
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.scroll-experience {
  position: relative;
  height: 690vh;
  background: var(--black);
}

.sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}

#fabric-canvas,
.fabric-fallback,
.stage-noise,
.stage-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#fabric-canvas {
  z-index: -5;
  opacity: 0;
  will-change: opacity;
}

.fabric-fallback {
  z-index: -6;
  opacity: 0;
  background:
    radial-gradient(circle at 38% 35%, rgba(255, 255, 255, 0.12), transparent 28%),
    repeating-linear-gradient(89deg, #111 0 1px, #080808 1px 3px),
    repeating-linear-gradient(1deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    #090909;
}

.no-webgl .fabric-fallback {
  opacity: 1;
}

.stage-noise {
  z-index: 10;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage-vignette {
  z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 32%, rgba(0, 0, 0, 0.34) 72%, #000 115%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 24%, transparent 72%, rgba(0, 0, 0, 0.55));
}

.hero-product {
  position: absolute;
  z-index: 2;
  inset: 0;
  transform-origin: 66% 33%;
  will-change: transform, opacity, filter;
}

.hero-product img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
  user-select: none;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  bottom: clamp(4.5rem, 9vh, 7rem);
  left: var(--page-padding);
  width: min(55rem, calc(100% - var(--page-padding) * 2));
  will-change: opacity, transform;
}

.eyebrow,
.chapter-index,
.manifesto-kicker {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(0.64rem, 0.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-copy h1,
.story-heading h2,
.process-intro h2,
.closing-copy h2 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero-intro {
  width: min(30rem, 90%);
  margin: 1.65rem 0 0;
  color: #c8c7c2;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.55;
}

.scroll-cue {
  position: absolute;
  z-index: 12;
  right: var(--page-padding);
  bottom: clamp(2rem, 5vh, 3.75rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #9d9c98;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 3.2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  55%,
  100% {
    transform: translateY(100%);
  }
}

.chapter {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: var(--page-padding);
  width: min(55rem, calc(100% - var(--page-padding) * 2));
  opacity: 0;
  transform: translate3d(0, calc(-50% + 4rem), 0);
  pointer-events: none;
  will-change: opacity, transform;
}

.chapter h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.88;
  text-transform: uppercase;
}

.chapter > p:last-child {
  width: min(30rem, 88%);
  margin: 1.5rem 0 0;
  color: #bebdb8;
  font-size: clamp(0.95rem, 1.3vw, 1.18rem);
  line-height: 1.6;
}

.chapter-02,
.chapter-04 {
  right: var(--page-padding);
  left: auto;
  text-align: right;
}

.chapter-02 h2,
.chapter-04 h2,
.chapter-02 > p:last-child,
.chapter-04 > p:last-child {
  margin-left: auto;
}

.stage-end {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  gap: 1.25rem;
  width: min(75vw, 48rem);
  opacity: 0;
  transform: translate3d(-50%, -45%, 0) scale(0.92);
  will-change: opacity, transform;
}

.stage-end img {
  width: min(100%, 34rem);
}

.stage-end p {
  margin: 0;
  color: #aaa9a4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.experience-counter {
  position: absolute;
  z-index: 12;
  top: 50%;
  right: var(--page-padding);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #8f8e89;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(90deg) translateX(50%);
  transform-origin: 100% 50%;
}

.experience-counter i {
  width: 3.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.content-section {
  position: relative;
  padding: clamp(7rem, 14vw, 14rem) var(--page-padding);
  color: #111;
  background: #f1f0eb;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(4rem, 9vw, 8rem);
  color: #5d5c58;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.section-label p {
  margin: 0;
}

.section-label.light {
  color: #9b9a95;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: start;
}

.story-heading .eyebrow,
.process-intro .eyebrow {
  color: #72716c;
}

.story-heading h2,
.process-intro h2,
.closing-copy h2 {
  font-size: clamp(3.3rem, 7.3vw, 7.6rem);
}

.story-copy {
  padding-top: 2.5rem;
}

.story-copy p {
  margin: 0 0 1.5rem;
  color: #353532;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(6rem, 13vw, 12rem);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.timeline-item {
  min-height: 19rem;
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid rgba(0, 0, 0, 0.16);
}

.timeline-item:not(:first-child) {
  padding-left: 2rem;
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item > span,
.process-card > span {
  color: #888781;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.timeline-item h3,
.process-card h3 {
  margin: 4.5rem 0 1rem;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.timeline-item p,
.process-card p {
  max-width: 19rem;
  margin: 0;
  color: #565550;
  font-size: 0.94rem;
  line-height: 1.65;
}

.manifesto-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(8rem, 15vw, 15rem) var(--page-padding);
  background: #070707;
}

.manifesto-sticky {
  position: sticky;
  top: calc(var(--header-height) + 3rem);
  align-self: start;
}

.manifesto-kicker {
  max-width: 24rem;
  margin-top: 3rem;
  color: #f1f0eb;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.manifesto-lines {
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 5vw, 5.5rem);
  padding-top: clamp(5rem, 12vw, 10rem);
}

.manifesto-line {
  max-width: 22ch;
  margin: 0;
  color: #777672;
  font-size: clamp(2rem, 4.7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.99;
  transition: color 700ms var(--ease-out);
}

.manifesto-line.in-view {
  color: #e8e7e2;
}

.manifesto-line.emphasis {
  color: #f4f3ef;
  font-style: italic;
}

.manifesto-line.final-line {
  margin: clamp(3rem, 8vw, 8rem) 0;
  font-size: clamp(3rem, 7vw, 8rem);
  text-transform: uppercase;
}

.process-section {
  background: #e5e3dc;
}

.process-intro {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 3rem;
  align-items: start;
}

.process-intro h2 {
  max-width: 12ch;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(6rem, 12vw, 11rem);
  background: rgba(0, 0, 0, 0.18);
}

.process-card {
  min-height: 38rem;
  padding: 2rem;
  background: #e5e3dc;
}

.mini-fabric {
  position: relative;
  height: 16rem;
  margin: 2rem 0 0;
  overflow: hidden;
  background-color: #080808;
}

.mini-fabric img {
  position: absolute;
  inset: -25%;
  width: 150%;
  height: 150%;
  object-fit: cover;
  transform: rotate(-8deg) scale(1.2);
  transition: transform 900ms var(--ease-out);
}

.process-card:hover .mini-fabric img {
  transform: rotate(4deg) scale(1.35);
}

.process-card h3 {
  margin-top: 2rem;
}

.closing-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  min-height: 100svh;
  overflow: hidden;
  background: #050505;
}

.closing-product {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.1), transparent 38%),
    #090909;
}

.closing-product img {
  width: min(85%, 35rem);
  transform: translateY(3%);
  filter: drop-shadow(0 3rem 3rem rgba(0, 0, 0, 0.75));
}

.closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 9rem) var(--page-padding);
  border-left: 1px solid var(--line);
}

.closing-copy h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 6.2vw, 7rem);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 3rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.4rem;
  color: #050505;
  background: #f4f3ef;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    color 300ms,
    background 300ms,
    transform 300ms var(--ease-out);
}

.primary-button:hover {
  color: #f4f3ef;
  background: #262626;
  transform: translateY(-0.2rem);
}

.text-link {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link span {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 300ms var(--ease-out);
}

.text-link:hover span {
  transform: translate(0.2rem, -0.2rem);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  padding: 4rem var(--page-padding);
  border-top: 1px solid var(--line);
  background: #050505;
}

footer img {
  width: 10rem;
}

footer p {
  margin: 0;
  color: #777671;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  z-index: 999;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  color: #050505;
  background: #fff;
  text-align: center;
}

@media (max-width: 900px) {
  :root {
    --header-height: 4.75rem;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .scroll-experience {
    height: 620vh;
  }

  .hero-copy {
    bottom: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 13.5vw, 6rem);
  }

  .hero-intro {
    max-width: 22rem;
  }

  .scroll-cue {
    right: auto;
    bottom: 1.25rem;
    left: var(--page-padding);
  }

  .scroll-cue span {
    display: none;
  }

  .experience-counter {
    display: none;
  }

  .chapter,
  .chapter-02,
  .chapter-04 {
    top: 50%;
    right: auto;
    left: var(--page-padding);
    width: calc(100% - var(--page-padding) * 2);
    text-align: left;
  }

  .chapter h2,
  .chapter-02 h2,
  .chapter-04 h2,
  .chapter-02 > p:last-child,
  .chapter-04 > p:last-child {
    margin-left: 0;
  }

  .chapter h2 {
    font-size: clamp(3rem, 13vw, 6rem);
  }

  .story-grid,
  .process-intro,
  .manifesto-section,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .story-grid {
    gap: 2rem;
  }

  .story-heading h2,
  .process-intro h2,
  .closing-copy h2 {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .story-copy {
    padding-top: 0;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-item:nth-child(2) {
    border-right: 0;
  }

  .timeline-item:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 0, 0, 0.16);
  }

  .manifesto-sticky {
    position: relative;
    top: auto;
  }

  .manifesto-lines {
    padding-top: 2rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: auto;
  }

  .closing-product {
    min-height: 65svh;
  }

  .closing-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .sticky-stage {
    min-height: 34rem;
  }

  .brand img {
    width: 8.25rem;
  }

  .hero-copy {
    bottom: 3.5rem;
  }

  .hero-copy .eyebrow {
    margin-bottom: 0.8rem;
  }

  .hero-intro {
    display: none;
  }

  .chapter > p:last-child {
    width: 100%;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .timeline-item:not(:first-child) {
    min-height: auto;
    padding: 2rem 0 4rem;
    border-right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
  }

  .timeline-item h3 {
    margin-top: 2.5rem;
  }

  .manifesto-line {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .process-card {
    padding: 1.25rem;
  }

  .mini-fabric {
    height: 13rem;
  }

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

  .primary-button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-experience {
    height: 480vh;
  }
}
