:root {
  color-scheme: only light;
  --ink: #11100f;
  --cream: #fff9e9;
  --sky: #78caf4;
  --sun: #ffd34e;
  --red: #ea3f32;
  --line: rgba(17, 16, 15, 0.88);
  --mx: 0;
  --my: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #11100f;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: #11100f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.poster {
  isolation: isolate;
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--sky);
}

.poster::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 249, 233, 0.94) 0%, rgba(255, 249, 233, 0.78) 29%, transparent 58%),
    linear-gradient(0deg, rgba(17, 16, 15, 0.24) 0%, transparent 25%);
}

.poster::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: url("assets/open-road-bg.jpg") 50% 50% / cover no-repeat;
  transform: scale(1.035) translate(calc(var(--mx) * -5px), calc(var(--my) * -3px));
  transition: transform 180ms ease-out;
}

.sun-wash {
  position: absolute;
  top: -26%;
  right: -8%;
  width: 54vw;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.34;
  filter: blur(12px);
  background: radial-gradient(circle, #fff8b5 0 4%, rgba(255, 217, 79, 0.42) 12%, transparent 62%);
  animation: breathe 5s ease-in-out infinite;
}

.road-flare {
  position: absolute;
  right: 12%;
  bottom: -26%;
  width: 62%;
  height: 62%;
  opacity: 0.72;
  filter: blur(12px);
  background: radial-gradient(ellipse, rgba(255, 207, 77, 0.54), transparent 66%);
}

.speed-lines {
  position: absolute;
  width: 22vw;
  height: 0.75rem;
  opacity: 0.8;
  border-top: 4px solid var(--cream);
  border-radius: 50%;
  filter: drop-shadow(0 2px 0 rgba(17, 16, 15, 0.3));
  transform: skewX(-18deg) rotate(-7deg);
}

.speed-lines::before,
.speed-lines::after {
  content: "";
  position: absolute;
  right: 8%;
  width: 68%;
  border-top: inherit;
  border-radius: inherit;
}

.speed-lines::before {
  top: 1rem;
}

.speed-lines::after {
  top: 2.1rem;
  width: 46%;
}

.speed-lines--one {
  top: 30%;
  right: -7%;
}

.speed-lines--two {
  top: 62%;
  left: 39%;
  width: 13vw;
  transform: scale(0.7) rotate(-2deg);
}

.topbar {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 6.5rem;
  padding: 1.3rem 3.3vw;
  border-bottom: 2px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand span {
  display: grid;
  gap: 0.1rem;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand small {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 249, 233, 0.86);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.social-link:hover {
  transform: translate(2px, 2px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.social-link--pump:hover {
  background: var(--sun);
  transform: translate(2px, 2px) rotate(1deg);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--cream);
  background: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  top: 19.5%;
  left: 3.3vw;
  width: min(47rem, 43vw);
}

.eyebrow,
.lore-kicker {
  margin: 0;
  font-size: clamp(0.78rem, 0.9vw, 1.05rem);
  font-weight: 950;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.eyebrow span {
  display: inline-block;
  animation: twinkle 2.4s ease-in-out infinite;
}

h1 {
  margin: 1.15rem 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5rem, 8.7vw, 10.5rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  transform: scaleX(0.9);
  transform-origin: left center;
}

h1 span {
  display: block;
}

.title-accent {
  position: relative;
  width: max-content;
  margin-top: 0.1em;
  color: var(--cream);
  -webkit-text-stroke: clamp(2px, 0.23vw, 5px) var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(8px 9px 0 var(--ink));
}

.title-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  bottom: -8%;
  width: 105%;
  height: 24%;
  border-radius: 50%;
  background: var(--red);
  transform: rotate(-1.4deg);
}

.manifesto {
  margin: 1.65rem 0 1.35rem;
  font-size: clamp(1rem, 1.25vw, 1.48rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ca-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: min(100%, 27rem);
  min-height: 4.15rem;
  padding: 0.6rem 0.7rem 0.6rem 1.35rem;
  border: 3px solid var(--ink);
  border-radius: 0.95rem;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--sun);
  cursor: pointer;
  font: inherit;
  font-size: clamp(1rem, 1.12vw, 1.3rem);
  font-weight: 950;
  letter-spacing: 0.045em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ca-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 var(--sun);
  background: #24211d;
}

.ca-button:active {
  transform: translate(7px, 7px);
  box-shadow: 0 0 0 var(--sun);
}

.ca-button.is-copied {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 7px 7px 0 var(--ink);
}

.copy-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  color: var(--ink);
  background: var(--cream);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.copy-cue svg {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 2;
}

.rider-zone {
  position: absolute;
  z-index: 3;
  top: 10.5%;
  right: -4.5%;
  width: min(70vw, 86rem);
  height: 82%;
  outline: none;
  cursor: grab;
}

.rider-zone:active {
  cursor: grabbing;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 10px)) rotate(calc(var(--mx) * 0.7deg));
  transform-origin: 50% 62%;
  transition: transform 180ms ease-out;
}

.hero-float {
  position: absolute;
  inset: 0;
  animation: rider-float 4.2s ease-in-out infinite;
}

.rider {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 100%;
  max-width: none;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 1.3rem 1.2rem rgba(17, 16, 15, 0.32));
  transform: translate(-50%, -50%);
}

.rider-shadow {
  position: absolute;
  z-index: -1;
  right: 6%;
  bottom: 1.8%;
  width: 69%;
  height: 8%;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(12px);
  background: #17110b;
  animation: shadow-pulse 4.2s ease-in-out infinite;
}

.rider-zone.is-boosting .hero-float {
  animation: boost 850ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.rider-zone.is-boosting .rider {
  filter: drop-shadow(-2rem 1.3rem 1rem rgba(17, 16, 15, 0.24));
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 0.55rem;
  color: var(--ink);
  background: rgba(255, 249, 233, 0.88);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(0.58rem, 0.62vw, 0.75rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.floating-note strong {
  font-size: 1.16em;
  letter-spacing: 0.05em;
}

.floating-note--pace {
  top: 22%;
  right: 7%;
  transform: rotate(3deg);
  animation: note-wiggle 4s ease-in-out infinite;
}

.floating-note--route {
  right: 18%;
  bottom: 10%;
  background: var(--sun);
  transform: rotate(-3deg);
  animation: note-wiggle 4.6s 0.4s ease-in-out infinite reverse;
}

.spin-sticker {
  position: absolute;
  z-index: 4;
  top: 16%;
  left: 26%;
  display: grid;
  place-items: center;
  width: clamp(6.6rem, 7.4vw, 8.7rem);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
  animation: sticker-drift 6s ease-in-out infinite;
}

.spin-sticker span {
  position: absolute;
  inset: 7%;
  overflow: hidden;
  border: 1px dashed var(--cream);
  border-radius: 50%;
  color: var(--cream);
  font-size: clamp(0.52rem, 0.55vw, 0.68rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-align: center;
  padding-top: 0.9rem;
}

.spin-sticker b {
  color: var(--cream);
  font-size: clamp(1.6rem, 2.2vw, 2.8rem);
}

.lore-card {
  position: absolute;
  z-index: 6;
  left: 3.3vw;
  bottom: 6.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  width: min(42vw, 40rem);
  padding: 1rem 1.2rem 1rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  background: rgba(255, 249, 233, 0.88);
  box-shadow: 6px 6px 0 var(--ink);
  backdrop-filter: blur(10px);
  transform: rotate(-0.35deg);
}

.lore-number {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  font-family: Impact, sans-serif;
  font-size: 1.5rem;
}

.lore-kicker {
  margin-bottom: 0.28rem;
  color: var(--red);
  font-size: 0.7rem;
}

.lore-card h2 {
  margin: 0;
  font-size: clamp(1rem, 1.18vw, 1.42rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lore-card p:last-child {
  margin: 0.45rem 0 0;
  font-size: clamp(0.76rem, 0.77vw, 0.92rem);
  font-weight: 650;
  line-height: 1.42;
}

.side-note {
  position: absolute;
  z-index: 6;
  top: 42%;
  right: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.side-note i {
  display: block;
  width: 2px;
  height: 3rem;
  background: var(--ink);
}

.bottom-rail {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 3.6rem;
  padding: 0 3.3vw;
  border-top: 2px solid var(--ink);
  color: var(--cream);
  background: var(--ink);
}

.bottom-rail p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.road-dash {
  height: 2px;
  opacity: 0.42;
  background: repeating-linear-gradient(90deg, var(--sun) 0 2.3rem, transparent 2.3rem 4rem);
}

.toast {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 5.2rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem) scale(0.92);
  transition: opacity 180ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.spark {
  position: absolute;
  z-index: 12;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  pointer-events: none;
  animation: spark-out 650ms ease-out forwards;
}

a:focus-visible,
button:focus-visible,
.rider-zone:focus-visible {
  outline: 4px solid var(--cream);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--ink);
}

@keyframes rider-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.6deg); }
  50% { transform: translate3d(0, -0.8rem, 0) rotate(0.6deg); }
}

@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.42; }
  50% { transform: scaleX(0.93); opacity: 0.3; }
}

@keyframes boost {
  0% { transform: translateX(0) rotate(0); }
  28% { transform: translateX(-3.8rem) rotate(-2deg); }
  58% { transform: translateX(2.1rem) rotate(1.4deg); }
  100% { transform: translateX(0) rotate(0); }
}

@keyframes note-wiggle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.55rem; }
}

@keyframes sticker-drift {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-0.6rem); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.28; }
  50% { transform: scale(1.05); opacity: 0.42; }
}

@keyframes twinkle {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.25); }
}

@keyframes spark-out {
  to {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) scale(0.2) rotate(160deg);
  }
}

@media (max-width: 1300px) {
  .hero-copy {
    width: 47vw;
  }

  .rider-zone {
    right: -8%;
    width: 73vw;
  }

  .lore-card {
    width: 44vw;
  }
}

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  body {
    overflow: auto;
  }

  .poster {
    min-height: 100svh;
    height: auto;
    overflow: hidden;
    padding-bottom: 5rem;
  }

  .poster::before {
    background: linear-gradient(180deg, rgba(255, 249, 233, 0.91), rgba(255, 249, 233, 0.58) 53%, transparent 80%);
  }

  .topbar {
    position: relative;
    min-height: 5.5rem;
    padding: 0.95rem 1rem;
  }

  .brand small,
  .social-link span:last-child {
    display: none;
  }

  .social-link {
    min-height: 2.75rem;
    padding: 0.35rem;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .social-icon {
    width: 1.85rem;
    height: 1.85rem;
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 2.4rem 1.2rem 0;
  }

  h1 {
    font-size: clamp(4.3rem, 20vw, 7.5rem);
  }

  .manifesto {
    margin-top: 1.25rem;
  }

  .ca-button {
    width: 100%;
  }

  .rider-zone {
    position: relative;
    top: auto;
    right: auto;
    width: 122vw;
    height: min(76vw, 34rem);
    margin: -0.3rem 0 0 -20vw;
  }

  .floating-note--pace {
    right: 10%;
  }

  .floating-note--route {
    right: 14%;
    bottom: 6%;
  }

  .spin-sticker {
    top: 10%;
    left: 24%;
  }

  .lore-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 2.4rem);
    margin: 0 auto 1.2rem;
  }

  .side-note {
    display: none;
  }

  .bottom-rail {
    min-height: 3.4rem;
    padding: 0 1rem;
  }

  .bottom-rail p:last-child {
    display: none;
  }

  .bottom-rail {
    grid-template-columns: auto 1fr;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .topbar {
    min-height: 5.2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero-copy {
    top: 17.5%;
  }

  h1 {
    font-size: clamp(4.3rem, 8vw, 7.5rem);
  }

  .manifesto {
    margin: 1rem 0;
  }

  .ca-button {
    min-height: 3.5rem;
  }

  .lore-card {
    bottom: 4.7rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
