@font-face {
  font-family: "Calistoga";
  src: url("assets/fonts/calistoga-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #08070b;
  --night-soft: #100d12;
  --night-warm: #17100c;
  --ivory: #f5eee1;
  --ivory-muted: #c8bdad;
  --gold: #f0b52d;
  --gold-soft: #ffd66b;
  --ember: #ed5a2b;
  --umber: #6b3f23;
  --line: rgba(240, 181, 45, 0.24);
  --line-strong: rgba(240, 181, 45, 0.48);
  --display: "Calistoga", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: min(1180px, calc(100vw - 64px));
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--night);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--night);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--night);
  border-radius: 999px;
  background: var(--gold);
}

a,
button {
  color: inherit;
}

a {
  text-decoration-color: rgba(240, 181, 45, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 5px;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}

h2 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5.5vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

p {
  text-wrap: pretty;
}

code {
  font-variant-numeric: tabular-nums;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 16px;
  left: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 84px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: clamp(20px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(8, 7, 11, 0.76), transparent);
  transition: border-color 280ms ease, background-color 280ms ease, backdrop-filter 280ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 7, 11, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.brand-meta {
  margin-left: 4px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--gold-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.header-actions {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.x-community-button {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 7, 11, 0.74);
  box-shadow: 0 10px 28px rgba(240, 181, 45, 0.16);
  place-items: center;
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.x-community-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.x-community-button:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 14px 34px rgba(240, 181, 45, 0.28);
  transform: translateY(-2px) scale(1.04);
}

.x-community-button:active {
  transform: translateY(0) scale(0.96);
}

.site-nav {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: clamp(22px, 2.6vw, 40px);
}

.site-nav a {
  position: relative;
  color: var(--ivory-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ivory);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(240, 181, 45, 0.18);
  color: var(--night);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms var(--ease), background-color 220ms ease, box-shadow 220ms ease;
}

.header-cta:hover {
  background: var(--gold-soft);
  box-shadow: 0 15px 38px rgba(240, 181, 45, 0.26);
  transform: translateY(-2px);
}

.header-cta svg,
.button svg,
.text-link svg,
.market-links svg,
.scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.menu-button {
  display: none;
}

.chapter-rail {
  position: fixed;
  z-index: 80;
  top: 50%;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transform: translateY(-50%);
}

.chapter-rail a {
  display: flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(245, 238, 225, 0.5);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.chapter-rail a span {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 180ms ease, transform 180ms var(--ease);
}

.chapter-rail a b {
  display: grid;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(245, 238, 225, 0.2);
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 600;
  place-items: center;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.chapter-rail a:hover,
.chapter-rail a[data-active] {
  color: var(--ivory);
}

.chapter-rail a:hover span,
.chapter-rail a:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}

.chapter-rail a[data-active] b {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--night);
}

.loop-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  background: #050406;
  isolation: isolate;
}

.loop-hero::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image: url("assets/images/film-grain.png");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.07;
  pointer-events: none;
}

.loop-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 31%;
  overflow: hidden;
  background: #050406 url("assets/images/babycate-loop-poster.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.34) 15%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.34) 15%, #000 38%);
}

.loop-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.loop-hero-glow {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 77% 50%, rgba(240, 181, 45, 0.11), transparent 31%),
    linear-gradient(90deg, #050406 0%, rgba(5, 4, 6, 0.95) 27%, rgba(5, 4, 6, 0.2) 62%, rgba(5, 4, 6, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 4, 6, 0.86) 0%, transparent 22%, transparent 76%, rgba(5, 4, 6, 0.4) 100%);
  pointer-events: none;
}

.loop-hero-content {
  position: relative;
  z-index: 3;
  padding-block: 130px 120px;
}

.loop-hero h1 {
  max-width: 9ch;
  margin-bottom: 24px;
  color: var(--ivory);
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.loop-hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.loop-hero-content > p {
  max-width: 45ch;
  margin-bottom: 30px;
  color: var(--ivory-muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.loop-scroll {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 238, 225, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.loop-scroll svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  animation: cue-drop 2s ease-in-out infinite;
}

.cashback-story {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 10vw, 138px);
  background: var(--gold);
  color: var(--night);
}

.cashback-story::after {
  position: absolute;
  right: -14vw;
  bottom: -30vw;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 7, 11, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 66px rgba(8, 7, 11, 0.035), 0 0 0 132px rgba(8, 7, 11, 0.025);
  content: "";
  pointer-events: none;
}

.cashback-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.15fr);
  align-items: start;
  gap: clamp(56px, 9vw, 130px);
}

.cashback-heading h2 {
  max-width: 10ch;
  color: var(--night);
}

.cashback-heading p {
  max-width: 44ch;
  margin-bottom: 0;
  color: #3e270c;
  font-size: 1.08rem;
}

.cashback-points {
  margin: 0;
}

.cashback-points > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding-block: 26px 31px;
  border-bottom: 1px solid rgba(8, 7, 11, 0.3);
}

.cashback-points > div:first-child {
  padding-top: 4px;
}

.cashback-points dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cashback-points dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.22;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  background: var(--night);
  isolation: isolate;
}

.hero-media,
.scene-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
}

.scene-media {
  z-index: 0;
}

.hero-media img,
.scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  object-position: center;
  animation: hero-breathe 13s ease-out both;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 11, 0.98) 0%, rgba(8, 7, 11, 0.9) 27%, rgba(8, 7, 11, 0.4) 52%, rgba(8, 7, 11, 0.08) 78%),
    linear-gradient(0deg, rgba(8, 7, 11, 0.92) 0%, transparent 25%, transparent 72%, rgba(8, 7, 11, 0.32) 100%);
}

.hero-grain,
.scene::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image: url("assets/images/film-grain.png");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.08;
  pointer-events: none;
}

.hero-content {
  z-index: 3;
  padding-block: 124px 136px;
}

.hero h1 {
  display: flex;
  max-width: 9ch;
  flex-direction: column;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 10vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.72;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.hero h1 span {
  display: block;
  animation: title-rise 1.1s var(--ease) both;
}

.hero h1 span:last-child {
  margin-left: 0.42em;
  color: var(--gold);
  animation-delay: 90ms;
}

.hero-line {
  margin-bottom: 14px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.hero-copy {
  max-width: 46ch;
  margin-bottom: 30px;
  color: var(--ivory-muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 19px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}

.button-primary {
  background: var(--gold);
  box-shadow: 0 14px 34px rgba(240, 181, 45, 0.18);
  color: var(--night);
}

.button-primary:hover {
  background: var(--gold-soft);
  box-shadow: 0 18px 42px rgba(240, 181, 45, 0.26);
  transform: translateY(-3px);
}

.button-quiet {
  border: 1px solid rgba(245, 238, 225, 0.28);
  background: rgba(8, 7, 11, 0.28);
  color: var(--ivory);
  backdrop-filter: blur(8px);
}

.button-quiet:hover {
  border-color: var(--gold);
  background: rgba(8, 7, 11, 0.64);
  color: var(--gold-soft);
  transform: translateY(-3px);
}

.hero-note {
  margin: 0;
  color: rgba(245, 238, 225, 0.54);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contract-ribbon {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 66px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-inline: clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(8, 7, 11, 0.8);
  backdrop-filter: blur(14px);
}

.contract-ribbon > span {
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contract-ribbon code {
  overflow: hidden;
  color: var(--ivory);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.68rem, 1vw, 0.84rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-ribbon button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--ivory);
  color: var(--night);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.contract-ribbon button svg,
.copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.scene {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  isolation: isolate;
}

.scene-media img {
  transform: scale(1.025) translate3d(0, var(--scene-shift, 0px), 0);
  transition: transform 100ms linear;
}

.scene-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 11, 0.96) 0%, rgba(8, 7, 11, 0.76) 28%, rgba(8, 7, 11, 0.12) 64%),
    linear-gradient(0deg, rgba(8, 7, 11, 0.72) 0%, transparent 38%, rgba(8, 7, 11, 0.18) 100%);
}

.scene-copy {
  z-index: 3;
  width: min(560px, calc(100% - 48px));
}

.scene-copy-left {
  margin-left: max(32px, calc((100vw - 1180px) / 2));
}

.scene-copy p {
  max-width: 47ch;
  color: var(--ivory-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.scene-copy .scene-quote {
  margin-top: 34px;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
}

.arrival {
  background-color: var(--night);
  background-image: url("assets/images/babycate-arrival-cinematic.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.arrival .scene-media {
  display: none;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 32px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 238, 225, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  animation: cue-drop 2s ease-in-out infinite;
}

.lineage {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 13vw, 180px);
  background: var(--ivory);
  color: #17100c;
}

.lineage::before {
  position: absolute;
  top: -30%;
  right: -13%;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(149, 99, 23, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(149, 99, 23, 0.04), 0 0 0 112px rgba(149, 99, 23, 0.025);
  content: "";
  pointer-events: none;
}

.lineage-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(56px, 8vw, 120px);
}

.lineage-copy h2 {
  color: #17100c;
}

.lineage-copy p {
  max-width: 48ch;
  margin-bottom: 30px;
  color: #5b4c40;
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b3f12;
  font-weight: 700;
  text-decoration-color: #c58d21;
}

.family-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 80px minmax(0, 1.15fr);
  align-items: center;
}

.family-member {
  position: relative;
  margin: 0;
  text-align: center;
}

.family-member img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(83, 51, 19, 0.2);
}

.family-member-cate {
  z-index: 1;
}

.family-member-baby {
  z-index: 2;
  transform: translateY(18px);
}

.family-member figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.family-member figcaption strong {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.family-member figcaption span {
  color: #766556;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.family-thread {
  display: grid;
  place-items: center;
}

.family-thread svg {
  width: 80px;
  overflow: visible;
  fill: none;
  stroke: #a76d11;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.family-thread span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(168, 108, 14, 0.34);
}

.family {
  min-height: 110svh;
  align-items: flex-end;
  background-color: var(--night);
  background-image: url("assets/images/babycate-road-cinematic.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.family .scene-media {
  display: none;
}

.scene-media-road img {
  object-position: 50% 55%;
}

.scene-vignette-road {
  background:
    linear-gradient(0deg, rgba(8, 7, 11, 0.98) 0%, rgba(8, 7, 11, 0.65) 26%, transparent 58%),
    linear-gradient(90deg, rgba(8, 7, 11, 0.28), transparent 35%, transparent 70%, rgba(8, 7, 11, 0.22));
}

.scene-copy-bottom {
  width: var(--shell);
  margin: 0 auto clamp(72px, 9vw, 112px);
}

.scene-copy-bottom h2 {
  max-width: 13ch;
}

.scene-copy-bottom p {
  max-width: 52ch;
}

.ritual {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 13vw, 180px);
  background: #0b090c;
}

.ritual::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(240, 181, 45, 0.09), transparent 32%);
  content: "";
  pointer-events: none;
}

.ritual-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(64px, 10vw, 140px);
}

.ritual-heading {
  position: sticky;
  top: 130px;
  align-self: start;
}

.ritual-heading h2 {
  max-width: 9ch;
}

.ritual-heading p {
  max-width: 38ch;
  color: var(--ivory-muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding-block: 38px 54px;
  border-bottom: 1px solid var(--line);
}

.step:first-child {
  padding-top: 0;
}

.step-number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 12px;
  color: var(--ivory);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.step p {
  max-width: 59ch;
  margin-bottom: 0;
  color: var(--ivory-muted);
}

.step p a {
  color: var(--gold-soft);
}

.step .button {
  margin-top: 24px;
}

.contract-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(110px, 14vw, 190px) 80px;
  background: #180d08;
  color: var(--ivory);
}

.contract-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(237, 90, 43, 0.08), transparent 35%),
    radial-gradient(circle at 75% 10%, rgba(240, 181, 45, 0.13), transparent 36%);
  content: "";
}

.contract-halo {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 670px;
  height: 670px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(240, 181, 45, 0.025), 0 0 0 140px rgba(240, 181, 45, 0.018);
}

.contract-layout {
  position: relative;
}

.contract-intro {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 60px;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.contract-intro h2 {
  max-width: 10ch;
  margin-bottom: 0;
}

.contract-intro p {
  max-width: 44ch;
  margin-bottom: 10px;
  color: var(--ivory-muted);
  font-size: 1.08rem;
}

.contract-block {
  position: relative;
  padding-block: 28px 32px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.contract-block > span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contract-block code {
  display: block;
  max-width: calc(100% - 190px);
  overflow-wrap: anywhere;
  color: var(--ivory);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.8rem, 1.8vw, 1.32rem);
  line-height: 1.5;
}

.copy-button {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  box-shadow: 0 12px 30px rgba(240, 181, 45, 0.18);
  color: var(--night);
  cursor: pointer;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease;
}

.copy-button:hover {
  background: var(--gold-soft);
  box-shadow: 0 16px 36px rgba(240, 181, 45, 0.24);
  transform: translateY(-2px);
}

.contract-ribbon button:disabled,
.copy-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.market-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.market-links a {
  position: relative;
  display: flex;
  min-height: 122px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 60px 24px 24px;
  border-right: 1px solid var(--line);
  color: var(--ivory);
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}

.market-links a:last-child {
  border-right: 0;
}

.market-links a:hover {
  background: var(--gold);
  color: var(--night);
}

.market-links span {
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.market-links a:hover span {
  color: #4f2e05;
}

.market-links strong {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
}

.market-links svg {
  position: absolute;
  top: 24px;
  right: 24px;
}

.risk-note {
  max-width: 78ch;
  margin: 46px 0 0;
  color: #bcae9d;
  font-size: 0.86rem;
}

.site-footer {
  padding-block: 44px 30px;
  border-top: 1px solid var(--line);
  background: var(--night);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 34px;
}

.footer-main p {
  margin: 0;
  color: var(--ivory-muted);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-main > a:last-child {
  justify-self: end;
  color: var(--gold-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(245, 238, 225, 0.1);
}

.footer-legal p {
  max-width: 76ch;
  margin: 0;
  color: rgba(245, 238, 225, 0.48);
  font-size: 0.72rem;
}

.footer-legal p:last-child {
  white-space: nowrap;
}

.copy-toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: calc(100vw - 44px);
  padding: 13px 17px;
  border-radius: 10px;
  background: var(--ivory);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
  color: var(--night);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 240ms var(--ease);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0.94;
  filter: blur(2px);
  transform: translateY(18px);
  transition: opacity 760ms var(--ease), filter 760ms var(--ease), transform 760ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@keyframes title-rise {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes hero-breathe {
  from {
    filter: brightness(0.8) saturate(0.86);
    transform: scale(1.05);
  }
  to {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
}

@keyframes cue-drop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 1180px) {
  .chapter-rail {
    display: none;
  }

  .site-nav {
    gap: 20px;
  }

  .brand-meta {
    display: none;
  }

  .lineage-grid {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 48px;
  }
}

@media (max-width: 960px) {
  :root {
    --shell: min(100% - 40px, 720px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 72px;
    padding-inline: 20px;
  }

  .header-actions {
    grid-column: 2;
    gap: 8px;
  }

  .x-community-button {
    z-index: 103;
    width: 46px;
    height: 46px;
  }

  .menu-button {
    position: relative;
    z-index: 103;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(8, 7, 11, 0.72);
    cursor: pointer;
    place-content: center;
  }

  .menu-button > span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 1.5px;
    margin: 3px;
    background: var(--ivory);
    transition: transform 220ms var(--ease);
  }

  .menu-button[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-of-type(3) {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 102;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 96px 30px 40px;
    background: rgba(8, 7, 11, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 300ms var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    color: var(--ivory);
    font-family: var(--display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
  }

  .site-nav a::after {
    bottom: -4px;
  }

  .header-cta {
    display: none;
  }

  .hero-content {
    padding-top: 118px;
  }

  .loop-hero-media {
    left: 24%;
  }

  .cashback-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 7, 11, 0.96) 0%, rgba(8, 7, 11, 0.74) 38%, rgba(8, 7, 11, 0.08) 76%),
      linear-gradient(0deg, rgba(8, 7, 11, 0.96) 0%, transparent 40%, rgba(8, 7, 11, 0.22) 100%);
  }

  .hero h1 {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .lineage-grid,
  .ritual-layout,
  .contract-intro {
    grid-template-columns: 1fr;
  }

  .lineage-copy {
    max-width: 600px;
  }

  .family-line {
    max-width: 650px;
    margin-inline: auto;
  }

  .ritual-layout {
    gap: 70px;
  }

  .ritual-heading {
    position: static;
  }

  .contract-intro {
    gap: 24px;
  }

  .market-links strong {
    font-size: 1.15rem;
  }

  .footer-main {
    grid-template-columns: 1fr auto;
  }

  .footer-main p {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 32px);
  }

  h2 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .brand-name {
    font-size: 0.75rem;
  }

  .hero {
    min-height: 920px;
    align-items: flex-end;
  }

  .loop-hero {
    min-height: 930px;
    align-items: flex-end;
  }

  .loop-hero-media {
    height: 480px;
    inset: 0 0 auto;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 34%);
  }

  .loop-hero-glow {
    background:
      linear-gradient(0deg, #050406 0%, rgba(5, 4, 6, 0.97) 36%, rgba(5, 4, 6, 0.16) 66%, rgba(5, 4, 6, 0.08) 100%),
      radial-gradient(circle at 50% 25%, rgba(240, 181, 45, 0.13), transparent 38%);
  }

  .loop-hero-content {
    padding-block: 390px 92px;
  }

  .loop-hero h1 {
    max-width: 8ch;
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .loop-hero-content > p {
    font-size: 0.98rem;
  }

  .loop-scroll {
    display: none;
  }

  .cashback-story {
    padding-block: 86px 100px;
  }

  .cashback-layout {
    gap: 48px;
  }

  .cashback-points > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 24px 28px;
  }

  .hero-media img {
    object-position: 60% center;
  }

  .hero-media {
    height: 520px;
    bottom: auto;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 7, 11, 1) 0%, rgba(8, 7, 11, 0.96) 34%, rgba(8, 7, 11, 0.28) 67%, rgba(8, 7, 11, 0.14) 100%),
      linear-gradient(90deg, rgba(8, 7, 11, 0.4), transparent 80%);
  }

  .hero-content {
    padding-block: 360px 112px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(3.8rem, 21vw, 6.2rem);
  }

  .hero h1 span:last-child {
    margin-left: 0.18em;
  }

  .hero-line {
    font-size: 1.45rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .contract-ribbon {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 16px;
  }

  .contract-ribbon > span {
    display: none;
  }

  .contract-ribbon button {
    min-width: 46px;
    padding-inline: 12px;
  }

  .contract-ribbon button span {
    display: none;
  }

  .scene {
    min-height: 820px;
    align-items: flex-end;
  }

  .arrival {
    background-position: 59% top;
    background-size: auto 530px;
  }

  .scene-vignette {
    background: linear-gradient(0deg, rgba(8, 7, 11, 0.98) 0%, rgba(8, 7, 11, 0.84) 32%, rgba(8, 7, 11, 0.08) 70%);
  }

  .scene-copy-left,
  .scene-copy-bottom {
    width: calc(100% - 32px);
    margin: 0 16px 82px;
  }

  .scene-copy p {
    font-size: 0.98rem;
  }

  .scene-copy .scene-quote {
    margin-top: 24px;
    font-size: 1.5rem;
  }

  .scroll-cue {
    display: none;
  }

  .lineage {
    padding-block: 90px 110px;
  }

  .lineage-grid {
    gap: 60px;
  }

  .family-line {
    grid-template-columns: 1fr 42px 1.2fr;
  }

  .family-thread svg {
    width: 46px;
  }

  .family-member figcaption strong {
    font-size: 1.05rem;
  }

  .family-member figcaption span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .family {
    min-height: 820px;
  }

  .scene-media-road img {
    object-position: 50% center;
  }

  .family .scene-media {
    height: 610px;
    bottom: auto;
  }

  .family {
    background-position: center top;
    background-size: auto 610px;
  }

  .scene-vignette-road {
    background: linear-gradient(0deg, rgba(8, 7, 11, 0.98) 0%, rgba(8, 7, 11, 0.75) 30%, transparent 62%);
  }

  .ritual {
    padding-block: 90px 110px;
  }

  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding-block: 32px 44px;
  }

  .step h3 {
    font-size: 1.55rem;
  }

  .step p {
    font-size: 0.94rem;
  }

  .contract-section {
    padding-block: 100px 60px;
  }

  .contract-block {
    padding-bottom: 92px;
  }

  .contract-block code {
    max-width: none;
    font-size: 0.78rem;
  }

  .copy-button {
    right: auto;
    bottom: 24px;
    left: 0;
  }

  .market-links {
    grid-template-columns: 1fr;
  }

  .market-links a {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-links a:last-child {
    border-bottom: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main > a:last-child {
    justify-self: start;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@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;
  }

  .scene-media img {
    transform: scale(1.01);
  }

  .loop-hero-media video {
    display: none;
  }
}
