:root {
  --bg: #000;
  --card: #141415;
  --gold: #c9a227;
  --gold-hi: #f0d37a;
  --gold-soft: rgba(201, 162, 39, 0.35);
  --text: #f5f5f5;
  --muted: #9b9b9f;
  --glow: 201, 162, 39;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }

/* ---------- fixed layers ---------- */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
main, .site-footer { position: relative; z-index: 1; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.spot {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(var(--glow), 0.09), transparent 70%);
  mix-blend-mode: screen;
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold));
  position: relative;
}
.progress i::after {
  content: "";
  position: absolute;
  right: -5px; top: -4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.8), 0 0 30px 8px rgba(var(--glow), 0.6);
}

.hud {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-hi);
}
.hud-bead {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgb(var(--glow)) 55%, #1a1405);
  box-shadow: 0 0 12px rgba(var(--glow), 0.7);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(16px, 4vw);
  mix-blend-mode: normal;
}
/* faded backdrop so scrolling content never collides with the header */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.site-header nav { display: flex; gap: 28px; font-size: 0.9rem; color: var(--muted); }
.site-header nav a { position: relative; transition: color 0.3s; }
.site-header nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a:hover::after { transform: scaleX(1); }

/* ---------- type ---------- */
h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0 0 20px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #8a6d12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 { font-size: clamp(3.4rem, 10vw, 8rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #c4c4c8; max-width: 31em; }

/* split-text reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.04em; margin: -0.08em 0; }
.w > span {
  display: inline-block;
  transform: translateY(0);
}
.js [data-split] .w > span {
  transform: translateY(115%) rotate(4deg);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s + var(--base, 0s));
}
.js [data-split].in .w > span { transform: none; }

/* Paint the gold gradient on each animated word instead of the whole heading.
   background-clip:text on a parent whose children are transformed and clipped
   can fail to repaint (a word goes invisible until it is re-selected). */
.js [data-split] { background: none; }
.js [data-split] .w > span {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #8a6d12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js .hero h1 .w:nth-child(1) > span { background-image: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.js .hero h1 .w:nth-child(2) > span { background-image: linear-gradient(180deg, var(--gold), #8a6d12); }

/* reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px max(16px, 6vw) 80px;
}
.hero-copy { max-width: 620px; }
.hero h1 { --base: 0.15s; }
.presents {
  margin: 22px 0 -4px;
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem); letter-spacing: .08em;
  color: #cdb867;
}
.cue {
  display: flex; align-items: center; gap: 14px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cue-line {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: left;
}
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 28px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.marquee-track { display: inline-block; will-change: transform; }
.marquee-track span {
  display: inline-block;
  margin-right: 48px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.65);
}
.marquee-track span:nth-child(3n) { color: rgba(201, 162, 39, 0.9); -webkit-text-stroke: 0; }

/* ---------- manifesto ---------- */
.manifesto {
  min-height: 120vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20vh max(16px, 8vw);
}
.scrub {
  max-width: 980px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.12;
  text-align: center;
}
.scrub .sw { opacity: 0.14; transition: opacity 0.25s linear, color 0.25s linear; }
.scrub .sw.lit { opacity: 1; color: var(--text); }

/* ---------- features ---------- */
.features { padding: 14vh max(16px, 6vw); max-width: 1300px; margin: 0 auto; }
.features h2 { text-align: center; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 36px 30px 40px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(28, 28, 30, 0.88), rgba(10, 10, 11, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.4s, opacity 1s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), rgba(201, 162, 39, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover { border-color: var(--gold-soft); }
.card:hover::before { opacity: 1; }
.card-num {
  display: block;
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-soft);
}
.card h3 { color: var(--gold-hi); }
.card p { margin: 0; color: var(--muted); }

/* ---------- themes (pinned) ---------- */
.themes-track { position: relative; }
.themes-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  display: flex;
  align-items: center;
  padding: 0 max(16px, 6vw);
  pointer-events: none;
}
.themes-copy { max-width: 520px; pointer-events: auto; will-change: opacity; }
.theme-step { height: 80vh; height: 80svh; }
.theme-name {
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  margin-bottom: 12px;
  transition: opacity 0.35s, transform 0.5s var(--ease), filter 0.35s;
  background: linear-gradient(180deg, #fff, rgb(var(--glow)) 70%, rgba(var(--glow), 0.6));
  -webkit-background-clip: text;
  background-clip: text;
}
.theme-desc {
  min-height: 3.2em;
  font-size: 1.15rem;
  color: #c4c4c8;
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.themes-copy.swap .theme-name,
.themes-copy.swap .theme-desc { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.theme-dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.theme-dots li {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.5s var(--ease), background 0.4s;
}
.theme-dots li.on { width: 38px; border-radius: 6px; background: rgb(var(--glow)); }
.theme-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- screens ---------- */
.screens { padding: 20vh max(16px, 4vw) 24vh; text-align: center; }
.screens h2 { margin-bottom: 8vh; }
.screens-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 4vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
}
.screen-wrap { flex: 1 1 0; max-width: 300px; }
.screen-wrap.s2 { margin-top: 10vh; }
.screen-par { will-change: transform; }

.device {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  box-shadow: 0 40px 100px -20px rgba(var(--glow), 0.25), 0 0 0 6px rgba(255, 255, 255, 0.025);
}
.device img { width: 100%; }

/* ---------- achievements ---------- */
.achievements {
  min-height: 110vh;
  display: grid;
  grid-template-columns: 1fr 0.5fr 1fr;
  align-items: center;
  gap: 2vw;
  padding: 14vh max(16px, 6vw);
  max-width: 1400px;
  margin: 0 auto;
}
.ach-copy { grid-column: 3; grid-row: 1; max-width: 520px; }
.ach-shot { grid-column: 1; grid-row: 1; display: flex; justify-content: center; }
.ach-copy p { color: #c4c4c8; font-size: 1.1rem; }
.stat { display: flex; align-items: baseline; gap: 16px; margin-top: 28px; }
.stat b {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.ring { width: 150px; margin-top: 24px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tilt { perspective: 1000px; width: min(300px, 70vw); }
.tilt > * {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* ---------- demo ---------- */
.demo { padding: 16vh max(16px, 4vw) 22vh; text-align: center; }
.demo h2 { margin-bottom: 8vh; }
.tilt.big { margin: 0 auto; width: min(320px, 80vw); }
.phone {
  aspect-ratio: 1080 / 2070;
  overflow: hidden;
  position: relative;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  box-shadow: 0 50px 120px -20px rgba(var(--glow), 0.35), 0 0 0 7px rgba(255, 255, 255, 0.03);
}
.phone video {
  width: 100%;
  position: absolute;
  top: 0; left: 0;
  transform: translateY(-5.13%); /* crops the 120px status bar of the 2340px recording */
}

/* ---------- CTA ---------- */
.cta {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16vh 16px;
}
.cta-title { font-size: clamp(2rem, 4.6vw, 3.6rem); margin: 0; max-width: 16em; text-wrap: balance; }
.cta-sub { margin: 16px 0 0; color: var(--muted); font-size: 1rem; }

.site-footer {
  padding: 32px 16px 80px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #000;
}
.site-footer p { margin: 0; }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.cta .stores { justify-content: center; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: rgba(0, 0, 0, 0.55); color: #fff; text-align: left;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.store svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .68rem; letter-spacing: .04em; color: #b8b8be; }
.store b { font-size: 1.05rem; font-weight: 600; }
a.store:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 30px rgba(201, 162, 39, 0.25); }
.store.soon { border-color: rgba(255, 255, 255, 0.18); cursor: default; }
.store.soon svg { color: #8a8a90; }
.store.soon b { color: #d0d0d4; }

/* ---------- responsive ---------- */
@media (max-width: 800px) {
  .site-header nav { gap: 16px; font-size: 0.8rem; }
  .hero { align-items: flex-start; padding-top: 22vh; }
  .hero-copy { text-align: left; }
  .cards { grid-template-columns: 1fr; }
  .themes-sticky { align-items: flex-start; padding-top: 16vh; }
  .theme-desc { min-height: 4.5em; }
  .screens-stage { gap: 10px; }
  .screen-wrap.s2 { margin-top: 6vh; }
  .device { border-radius: 18px; }
  .achievements { grid-template-columns: 1fr; padding-top: 10vh; }
  .ach-copy, .ach-shot { grid-column: 1; }
  .ach-copy { grid-row: 1; }
  .ach-shot { grid-row: 2; margin-top: 8vh; }
  .ring { width: 110px; }
  .hud { bottom: 12px; left: 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .dot, .cue-line, .ring { animation: none; }
  .js [data-split] .w > span, .js .reveal { transform: none; opacity: 1; transition: none; }
  .scrub .sw { opacity: 1; }
}
