:root {
  --paper: #fffaf0;
  --ink: #17100d;
  --stage: #16110f;
}

* { box-sizing: border-box; }

html {
  background: var(--stage);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.site-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 46px);
  color: var(--paper);
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: max-content;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0;
}

.brand strong {
  font-size: 0.72em;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-meta {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cinematic {
  position: relative;
  height: 540vh;
  background: var(--stage);
}

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--stage);
}

#frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.58), rgba(10, 8, 7, 0.08) 43%, rgba(10, 8, 7, 0.46)),
    linear-gradient(180deg, rgba(10, 8, 7, 0.62), transparent 30%, transparent 66%, rgba(10, 8, 7, 0.72));
}

.hero-copy {
  position: absolute;
  z-index: 8;
  left: clamp(22px, 7vw, 96px);
  bottom: clamp(96px, 16vh, 170px);
  width: min(620px, calc(100vw - 44px));
  color: var(--paper);
}

.reveal-line {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.kicker {
  margin: 0 0 16px;
  color: #f0c7aa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 8.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.subcopy {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.6;
}

.corner {
  position: absolute;
  z-index: 9;
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-left { top: 94px; left: clamp(18px, 4vw, 46px); }
.top-right { top: 94px; right: clamp(18px, 4vw, 46px); }
.bottom-left { bottom: 54px; left: clamp(18px, 4vw, 46px); }
.bottom-right { bottom: 54px; right: clamp(18px, 4vw, 46px); }

.progress {
  position: absolute;
  z-index: 9;
  left: clamp(18px, 4vw, 46px);
  right: clamp(18px, 4vw, 46px);
  bottom: 30px;
  height: 2px;
  background: rgba(255, 250, 240, 0.22);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f0c7aa, #fffaf0, #9bb28e);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 820px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-meta {
    display: none;
  }

  .cinematic {
    height: 500vh;
  }

  .hero-copy {
    bottom: 100px;
  }

  .top-right,
  .bottom-right {
    display: none;
  }

}

@media (max-width: 520px) {
  .site-nav {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    gap: 6px;
  }

  .brand strong,
  .nav-link,
  .corner {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .top-left {
    top: 78px;
  }
}
