:root {
  --void: #121214;
  --white: #FFFFFF;
  --cobalt: #245CF9;
  --mint: #73E8BD;
  --ember: #FFB72E;
  --flame: #FF5D14;
  --mute: #8A8680;
  --line: #2A2A2C;
  --ink-dim: #C8C6C2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--void);
  color: var(--white);
}

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-touch { cursor: auto; }
body.is-touch .cursor { display: none; }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--cobalt); color: var(--white); }

/* —— studio ground: quiet void, faint grid, light grain —— */
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--white);
}

.cursor-ring {
  position: absolute;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
}

body.is-hovering .cursor-ring {
  transform: scale(1.35);
  border-color: #fff;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro.is-done { pointer-events: none; }

.intro-stage {
  text-align: center;
  width: min(520px, 78vw);
}

.intro-object {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(0.72);
  opacity: 0;
  filter: blur(8px);
}

.intro-house {
  margin-top: 8px;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  pointer-events: none;
}

.nav a, .nav-handle { pointer-events: auto; }

.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav-links a:hover { color: var(--white); }

.nav-handle {
  justify-self: end;
  font-family: ui-monospace, "SF Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

main { position: relative; z-index: 2; }

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.15fr);
  align-items: center;
  padding: 120px 64px 80px;
  gap: 24px;
  position: relative;
}

.hero-copy { max-width: 520px; padding-bottom: 24px; }

.kicker {
  font-family: ui-monospace, "SF Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
}

.display {
  font-family: Oswald, "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display span { display: block; }
.display-sm { font-size: clamp(36px, 5vw, 64px); }

.lede {
  margin-top: 24px;
  max-width: 34em;
  color: var(--ink-dim);
  font-size: 16px;
}

.text-link {
  display: inline-block;
  margin-top: 32px;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.text-link:hover { border-color: var(--white); }

.hero-stage {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-object {
  width: min(720px, 52vw);
  height: min(86vh, 980px);
  object-fit: cover;
  object-position: center 18%;
}

.scroll-cue {
  position: absolute;
  left: 64px;
  bottom: 32px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.scroll-cue span {
  display: inline-block;
  padding-left: 20px;
  position: relative;
}

.scroll-cue span::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 12px; height: 1px;
  background: var(--mint);
  opacity: 0.7;
}

.chapter { position: relative; z-index: 2; }

.process { padding: 0 64px; }

.process-pin {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
}

.chapter-head { margin-bottom: 56px; max-width: 720px; }

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.pillar { opacity: 0.28; transition: opacity 0.6s ease; }
.pillar.is-on { opacity: 1; }

.pillar-num {
  display: block;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}

.sit-label { color: var(--ember); }

.pillar h3 {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pillar p {
  margin-top: 12px;
  color: var(--ink-dim);
  max-width: 28em;
}

.xrpl { padding: 80px 64px 120px; }

.enter {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 64px 120px;
}

.enter-stage {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enter-object {
  width: min(560px, 100%);
  height: auto;
  max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
}

.enter-copy { max-width: 480px; }

.signal {
  width: 28px;
  height: 1px;
  background: var(--mint);
  opacity: 0.7;
  margin: 28px 0;
}

.gate { width: 100%; }

.gate label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.gate-row {
  display: flex;
  gap: 8px;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: Inter, sans-serif;
  font-size: 15px;
  outline: none;
  border-radius: 0;
}

input[type="email"]::placeholder { color: #5C5A56; }
input[type="email"]:focus { border-color: var(--cobalt); }

.cta {
  position: relative;
  height: 52px;
  padding: 0 32px;
  background: var(--flame);
  color: var(--white);
  border: 0;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: none;
  overflow: hidden;
  flex-shrink: 0;
}

.cta span { position: relative; z-index: 1; }

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff7a3d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover::after { transform: scaleX(1); }
.cta:active { transform: translateY(1px); }

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px 64px 36px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.reveal-line { overflow: hidden; }
body.ready .hero .reveal-line { animation: none; }

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .nav {
    grid-template-columns: 1fr auto;
    padding: 18px 20px;
  }
  .nav-links { display: none; }
  .hero, .process, .xrpl, .enter { padding-left: 20px; padding-right: 20px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 96px;
  }
  .hero-object { width: min(420px, 88vw); max-height: none; margin: 0 auto; }
  .scroll-cue { left: 20px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .enter { grid-template-columns: 1fr; min-height: auto; }
  .enter-object { max-height: none; }
  .gate-row { flex-direction: column; }
  .cta { width: 100%; }
  .foot { padding: 24px 20px 28px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }
body.is-shot .cursor { display: none; }
body.is-shot .intro { display: none; }
.hero .reveal-line, .hero-object { opacity: 0; }
body.is-shot .hero .reveal-line,
body.is-shot .hero-object { opacity: 1; transform: none; }

body.shot-enter .hero,
body.shot-enter .process,
body.shot-enter .xrpl { display: none; }
body.shot-enter .enter { min-height: 100dvh; padding-top: 96px; }
