@font-face { font-family: "Neue Montreal"; src: url("assets/fonts/NeueMontreal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("assets/fonts/NeueMontreal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #080808;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --paper: #eceef0;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --title: "Neue Montreal", Arial, sans-serif;
  --h1: 64px;
  --h2: 52px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

h1, h2 { font-family: var(--title); font-weight: 500; text-transform: uppercase; letter-spacing: -0.008em; line-height: 1; color: #e1e5e5; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
.close h2 { color: #080808; }
p { color: var(--muted); font-size: 15px; line-height: 1.45; }

.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn-light { background: #f2f2f2; color: #0a0a0a; }
.btn-dark { background: #0a0a0a; color: #f2f2f2; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; mix-blend-mode: difference; }
.nav .brand { font-weight: 800; letter-spacing: .22em; font-size: 14px; }
.nav .btn { mix-blend-mode: normal; }
.nav-r { display: flex; align-items: center; gap: 10px; mix-blend-mode: normal; }
.btn[hidden] { display: none; }
.btn-line { border: 1px solid rgba(255,255,255,.4); color: #f2f2f2; background: rgba(8,8,8,.35); }
.btn-line:hover { border-color: rgba(255,255,255,.7); }

/* hero */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,0) 55%, rgba(8,8,8,.85) 100%); }
/* title sits high, above the card; the button stays at the bottom (moto's hero_header) */
.hero-copy { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 138px 16px 150px; }
.hero-copy .btn { pointer-events: auto; }

/* scroll cue: three chevrons lighting up in turn, top to bottom. Opacity and a
   small transform only, so it never costs a repaint of the film behind it */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 5; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px;
  color: #e1e5e5; transition: opacity .5s ease; }
.scroll-cue span { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; margin: 0 0 8px .32em; opacity: .75; }
.scroll-cue svg { width: 22px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  opacity: .15; animation: cue 1.8s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(225,229,229,.7)); }
.scroll-cue svg:nth-of-type(2) { animation-delay: .2s; }
.scroll-cue svg:nth-of-type(3) { animation-delay: .4s; }
@keyframes cue { 0%, 100% { opacity: .15; transform: translateY(-2px); } 35% { opacity: 1; transform: translateY(1px); } 70% { opacity: .15; } }
.scroll-cue.gone { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; opacity: .7; } }

/* earth: pinned by ScrollTrigger for 2.5 screens without spacing */
.earth { position: relative; height: 100vh; margin-top: 15vh; overflow: hidden; z-index: 1; }
#earth-canvas, #card-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.earth-header { position: absolute; top: 15vh; left: 0; right: 0; text-align: center; display: grid; gap: 18px; justify-items: center; padding: 0 16px; }
.earth-points { list-style: none; }
.earth-points li { position: absolute; left: var(--x); top: var(--y); font-size: 12px; color: #d8dce4; padding: 6px 10px; border-radius: 999px; background: rgba(16,16,20,.86); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.earth-points li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px #fff; }

/* card: transparent, so the card rises through the pinned earth */
.card { position: relative; z-index: 2; height: 250vh; }
.card-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.card-header { position: absolute; left: 0; right: 0; bottom: 5vh; text-align: center; display: grid; gap: 22px; justify-items: center; padding: 0 16px; }


/* close */
.close { position: relative; z-index: 3; background: var(--paper); color: #0a0a0a; min-height: 90vh; display: grid; align-content: center; justify-items: center; gap: 22px; text-align: center; padding: 18vh 16px; }
.close p { color: #555; }

.foot { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px; font-size: 12px; color: var(--muted); background: var(--bg); }

@media (max-width: 991px) {
  .hero-copy { padding-bottom: max(16vh, 150px); }
}
@media (max-width: 767px) {
  :root { --h1: 36px; --h2: 32px; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .earth-points li:nth-child(n+3) { display: none; }
  .foot { padding: 20px 16px; }
}
