:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #0c0b09;
  --ivory: #f1ead8;
  --paper: #d8cfb8;
  --muted: #9e947e;
  --gold: #b88b4a;
  --rose: #9c684f;
  --blue: #2d5e83;
  --line: rgba(241, 234, 216, 0.16);
  --header: 76px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(184, 139, 74, 0.08), transparent 34rem),
    linear-gradient(180deg, #0d0c0a 0%, var(--black) 38%, #070604 100%);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(241, 234, 216, 0.08) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 38%);
  opacity: 0.42;
}

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

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

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.94;
}

h1 {
  max-width: 7ch;
  margin-bottom: 1.3rem;
  font-size: clamp(5.8rem, 9.6vw, 12rem);
  line-height: 0.82;
}

h2 {
  margin-bottom: 1rem;
  font-size: 4rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header);
  padding: 0 clamp(1.35rem, 3.2vw, 4.8rem);
  color: rgba(241, 234, 216, 0.86);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid rgba(241, 234, 216, 0.1);
  backdrop-filter: blur(26px);
}

.brand,
.site-header nav,
.eyebrow,
.button,
.chapter-subtitle {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ivory);
}

.brand span:first-child {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.brand span:last-child {
  color: rgba(241, 234, 216, 0.62);
}

.site-header nav {
  color: rgba(241, 234, 216, 0.62);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.45rem, 2.4vw, 2.6rem);
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0;
  color: rgba(241, 234, 216, 0.68);
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.24rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-header nav a:hover::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.site-header a {
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.site-header a:hover {
  color: white;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header) + 4.5rem) clamp(1.4rem, 2.8vw, 4rem) 5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 18rem;
  background: linear-gradient(0deg, var(--black), transparent);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 35rem;
  margin-bottom: 2.2rem;
  color: var(--paper);
  font-size: 1.06rem;
  line-height: 1.62;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.76rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 234, 216, 0.56);
}

.button.primary {
  background: var(--ivory);
  color: var(--black);
  border-color: var(--ivory);
}

.button.secondary {
  color: rgba(241, 234, 216, 0.66);
  border-color: rgba(241, 234, 216, 0.14);
}

.hero-watch {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateY(var(--hero-parallax, 0px));
}

.hero-watch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.74) 27%, rgba(5, 5, 5, 0.05) 58%, rgba(5, 5, 5, 0) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0) 34%);
}

.hero-watch-image {
  position: absolute;
  top: 50%;
  right: -6vw;
  z-index: 1;
  width: min(82vw, 1360px);
  max-width: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 34px 84px rgba(0, 0, 0, 0.62));
}

.assembly-story {
  position: relative;
  min-height: 700vh;
}

.assembly-visual {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.watch-stage {
  position: relative;
  width: min(69vh, 46vw, 740px);
  aspect-ratio: 1;
  filter: drop-shadow(0 34px 90px rgba(0, 0, 0, 0.62));
}

.stage-glass {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(241, 234, 216, 0.1);
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(320deg, rgba(184, 139, 74, 0.08), transparent 34%);
  opacity: calc(0.14 + var(--assembly, 0) * 0.22);
}

.watch-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  opacity: 1;
  will-change: transform;
  transform-origin: 50% 50%;
}

.watch-layer[data-layer="0"] {
  z-index: 1;
}

.watch-layer[data-layer="1"] {
  z-index: 2;
}

.watch-layer[data-layer="2"],
.watch-layer[data-layer="3"] {
  z-index: 3;
}

.watch-layer[data-layer="4"] {
  z-index: 4;
}

.watch-layer[data-layer="5"] {
  z-index: 5;
}

.chapters {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(7, 100vh);
  padding: 0 4.2rem;
}

.chapter {
  width: min(36rem, 35vw);
  align-self: center;
  opacity: 0.12;
  filter: blur(1.4px);
  transform: translateY(24px);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
}

.chapter.left {
  justify-self: start;
}

.chapter.right {
  justify-self: end;
  text-align: right;
}

.chapter.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.chapter.is-before {
  opacity: 0;
  filter: blur(2.8px);
  transform: translateY(-18px);
}

.chapter-heading {
  display: flex;
  align-items: baseline;
  gap: 1.15rem;
  margin-bottom: 1.45rem;
}

.chapter.right .chapter-heading {
  justify-content: flex-end;
}

.chapter-number {
  color: rgba(184, 139, 74, 0.86);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 7rem;
  line-height: 0.75;
}

.chapter h2 {
  margin-bottom: 0;
  font-size: 4.35rem;
  line-height: 0.92;
}

.chapter-subtitle {
  margin: 0 0 1.45rem;
  color: rgba(241, 234, 216, 0.7);
}

.chapter p:not(.chapter-subtitle) {
  max-width: 25rem;
  color: var(--paper);
  font-size: 0.92rem;
  line-height: 1.75;
}

.chapter.right p {
  margin-left: auto;
}

.viewing-panel {
  width: min(29rem, 30vw);
  scroll-margin-top: var(--header);
}

.viewing-panel h2 {
  max-width: 9ch;
  margin-bottom: 1.15rem;
  font-size: 3rem;
  line-height: 0.94;
}

.viewing-panel p:not(.eyebrow) {
  margin-bottom: 1.7rem;
}

.viewing-panel .button {
  min-height: 38px;
  padding: 0.68rem 0.95rem;
}

.button:disabled {
  cursor: default;
  opacity: 1;
  pointer-events: none;
}

@media (max-width: 1050px) {
  h1 {
    font-size: 5.4rem;
  }

  .hero {
    padding-inline: 2rem;
  }

  .hero-watch-image {
    right: -24vw;
    width: min(112vw, 980px);
  }

  .site-header {
    padding-inline: 1.4rem;
  }

  .site-header nav {
    gap: 1rem;
  }

  .chapters {
    padding-inline: 2rem;
  }

  .chapter {
    width: min(28rem, 38vw);
  }

  .chapter-number {
    font-size: 5.8rem;
  }

  .chapter h2 {
    font-size: 3.35rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header: 62px;
  }

  h1 {
    max-width: 7ch;
    font-size: 4rem;
  }

  h2,
  .chapter h2 {
    font-size: 2.5rem;
  }

  .site-header {
    background: rgba(5, 5, 5, 0.86);
  }

  .brand span:last-child {
    display: none;
  }

  .site-header nav {
    gap: 1rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 94svh;
    padding: 6.7rem 1.1rem 4rem;
    align-items: end;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .hero-watch {
    inset: 0;
    opacity: 0.78;
  }

  .hero-watch::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.66) 48%, rgba(5, 5, 5, 0.96) 82%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.42) 52%, rgba(5, 5, 5, 0.04) 100%);
  }

  .hero-watch-image {
    top: 33%;
    right: -58vw;
    width: 170vw;
  }

  .assembly-story {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .assembly-visual {
    top: var(--header);
    z-index: 3;
    height: 43svh;
    align-items: start;
    padding-top: 0.5rem;
  }

  .assembly-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.9) 76%, rgba(5, 5, 5, 0) 100%);
  }

  .watch-stage {
    z-index: 1;
    width: min(88vw, 430px);
  }

  .chapters {
    position: relative;
    inset: auto;
    z-index: 2;
    display: block;
    padding: 2rem 1.1rem 0;
  }

  .chapter,
  .chapter.left,
  .chapter.right {
    width: min(100%, 31rem);
    min-height: 72svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: auto;
    align-self: auto;
    margin: 0;
  }

  .chapter.right {
    text-align: right;
  }

  .chapter-heading {
    gap: 0.7rem;
  }

  .chapter.right .chapter-heading {
    flex-direction: row-reverse;
  }

  .chapter-number {
    font-size: 4.65rem;
  }

  .chapter-subtitle {
    font-size: 0.7rem;
  }

  .chapter p:not(.chapter-subtitle) {
    font-size: 0.86rem;
  }

  .chapter.is-before {
    opacity: 0;
    filter: blur(4px);
  }

  .viewing-panel,
  .viewing-panel.left {
    width: min(100%, 30rem);
    min-height: 68svh;
    text-align: left;
  }

  .viewing-panel h2 {
    max-width: 11ch;
    font-size: 2.35rem;
  }

  .viewing-panel p:not(.eyebrow) {
    margin-bottom: 1.4rem;
  }

  .viewing-panel .button {
    width: auto;
    max-width: 20rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
