:root {
  --ink: #f4efe5;
  --ink-soft: rgba(244, 239, 229, 0.78);
  --black: #090907;
  --charcoal: #11100c;
  --gold: #c59b5d;
  --gold-soft: rgba(197, 155, 93, 0.22);
  --stone: #d8c8ad;
  --olive: #77764f;
  --line: rgba(244, 239, 229, 0.22);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --sans: "Helvetica Neue", "Avenir Next", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.42) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.32) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -18vw -10vh;
  z-index: 18;
  height: 44vh;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 18% 72%, rgba(244,239,229,0.11), transparent 42%),
    radial-gradient(ellipse at 62% 48%, rgba(216,200,173,0.1), transparent 38%),
    radial-gradient(ellipse at 86% 72%, rgba(255,255,255,0.08), transparent 42%),
    linear-gradient(0deg, rgba(9,9,7,0.86), rgba(9,9,7,0));
  filter: blur(18px);
  transform: translate3d(calc(var(--mist-drift, 0) * 1px), 0, 0);
}

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

button {
  font: inherit;
}

main::after {
  content: "";
  display: block;
  height: 100svh;
  background: var(--black);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 4.5vw, 72px);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.56), transparent);
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
}

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

.site-header a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.header-action {
  justify-self: end;
}

.cinema-panel {
  --panel-progress: 0;
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 112px clamp(20px, 5vw, 82px) clamp(56px, 8vw, 112px);
  background: var(--black);
  box-shadow: 0 -26px 80px rgba(0, 0, 0, 0.34);
}

.cinema-panel:nth-child(1) { z-index: 1; }
.cinema-panel:nth-child(2) { z-index: 2; }
.cinema-panel:nth-child(3) { z-index: 3; }
.cinema-panel:nth-child(4) { z-index: 4; }
.cinema-panel:nth-child(5) { z-index: 5; }
.cinema-panel:nth-child(6) { z-index: 6; }

.cinema-panel::before {
  content: "";
  position: absolute;
  inset: -12vh -10vw auto;
  z-index: -1;
  height: 44vh;
  pointer-events: none;
  opacity: calc(0.16 + (var(--panel-progress) * 0.08));
  background:
    radial-gradient(ellipse at 20% 70%, rgba(244,239,229,0.11), transparent 42%),
    radial-gradient(ellipse at 64% 48%, rgba(197,155,93,0.08), transparent 38%),
    linear-gradient(180deg, rgba(9,9,7,0.94), rgba(9,9,7,0));
  filter: blur(18px);
}

.cinema-panel::after {
  content: "";
  position: absolute;
  inset: auto -14vw -16vh;
  z-index: -1;
  height: 50vh;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(ellipse at 24% 32%, rgba(244,239,229,0.13), transparent 44%),
    radial-gradient(ellipse at 76% 48%, rgba(216,200,173,0.1), transparent 48%),
    linear-gradient(0deg, rgba(9,9,7,0.92), rgba(9,9,7,0));
  filter: blur(20px);
}

.panel-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(calc(1.03 + (var(--panel-progress) * 0.045))) translateY(calc(var(--panel-progress) * -3vh));
  backface-visibility: hidden;
  will-change: transform;
}

.panel-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 3, 0.88) 0%, rgba(4, 4, 3, 0.6) 42%, rgba(4, 4, 3, 0.24) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.94) 0%, rgba(5, 5, 4, 0.18) 48%, rgba(5, 5, 4, 0.66) 100%);
}

.hero-panel .panel-shade {
  background:
    linear-gradient(90deg, rgba(4, 4, 3, 0.92) 0%, rgba(4, 4, 3, 0.62) 45%, rgba(4, 4, 3, 0.2) 100%),
    radial-gradient(circle at 76% 28%, rgba(197, 155, 93, 0.14), transparent 30%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.95) 0%, rgba(5, 5, 4, 0.18) 48%, rgba(5, 5, 4, 0.68) 100%);
}

.align-right {
  justify-content: end;
}

.align-right .panel-shade {
  background:
    linear-gradient(270deg, rgba(4, 4, 3, 0.9) 0%, rgba(4, 4, 3, 0.64) 42%, rgba(4, 4, 3, 0.24) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.94) 0%, rgba(5, 5, 4, 0.2) 48%, rgba(5, 5, 4, 0.66) 100%);
}

.panel-copy {
  width: min(720px, 100%);
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.panel-copy.narrow {
  width: min(620px, 100%);
}

.panel-copy.centered {
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

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

h1,
h2 {
  margin-bottom: 26px;
  max-width: 900px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(42px, 5.7vw, 80px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: none;
}

h1 {
  max-width: 980px;
  font-size: clamp(46px, 6.35vw, 90px);
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.panel-copy > p {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.58;
}

.centered > p {
  margin-left: auto;
  margin-right: auto;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-actions.center {
  justify-content: center;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.82);
  color: #fff;
  background: rgba(255,255,255,0.06);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--black);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.button.filled {
  color: var(--black);
  border-color: var(--gold);
  background: var(--gold);
}

.button.filled:hover,
.button.filled:focus-visible {
  border-color: #fff;
  background: #fff;
}

.quiet-list {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.quiet-list li {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 650;
}

.study-surface {
  display: grid;
  gap: 1px;
  max-width: 760px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.study-surface div {
  padding: 24px 26px;
  background: rgba(12, 12, 10, 0.72);
  backdrop-filter: blur(16px);
}

.study-surface span,
.ai-brief span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.study-surface strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 24px;
}

.study-surface p,
.ai-brief p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.ai-brief {
  max-width: 560px;
  margin: 34px 0 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(12, 12, 10, 0.64);
  backdrop-filter: blur(16px);
}

.ai-brief span {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 32px;
  letter-spacing: 0;
  text-transform: none;
}

.download-panel .panel-shade {
  background:
    radial-gradient(circle at 50% 35%, rgba(197, 155, 93, 0.18), transparent 26%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.94) 0%, rgba(5, 5, 4, 0.34) 50%, rgba(5, 5, 4, 0.76) 100%);
}

.site-footer {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 120px;
  padding: 34px clamp(20px, 5vw, 82px);
  color: rgba(255,255,255,0.68);
  background: #080806;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
}

.purchase-dialog {
  max-width: 460px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  color: var(--ink);
  background: #12100c;
  box-shadow: var(--shadow);
}

.purchase-dialog h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1;
}

.purchase-dialog p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.purchase-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  body::after {
    transform: none;
  }

  .cinema-panel {
    position: relative;
  }

  .panel-media {
    transform: scale(1.03);
    transition: none;
  }

  .panel-copy {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

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

  .site-header nav {
    display: none;
  }

  .cinema-panel,
  .align-right {
    align-items: end;
    justify-content: start;
    min-height: 100svh;
    padding: 104px 20px 54px;
  }

  .panel-shade,
  .align-right .panel-shade,
  .hero-panel .panel-shade {
    background:
      linear-gradient(90deg, rgba(4, 4, 3, 0.9) 0%, rgba(4, 4, 3, 0.56) 58%, rgba(4, 4, 3, 0.26) 100%),
      linear-gradient(0deg, rgba(5, 5, 4, 0.95) 0%, rgba(5, 5, 4, 0.18) 52%, rgba(5, 5, 4, 0.66) 100%);
  }

  h1,
  h2 {
    font-size: clamp(39px, 12vw, 58px);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px;
  }

  .brand {
    font-size: 13px;
  }

  .header-action {
    font-size: 11px;
  }

  .panel-copy > p {
    font-size: 16px;
  }

  .panel-actions,
  .panel-actions.center {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
