/* Neon Mile RP: one deliberate night-time look (the city is always neon), so there is a single dark theme. */
:root {
  --bg: #07060d;
  --surface: #110e1e;
  --surface-2: #181429;
  --line: #2a2340;
  --text: #f3efff;
  --muted: #a8a0c6;
  --pink: #ff2fa8;
  --cyan: #2ad7ff;
  --violet: #8b5cff;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 110px); }
.head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 64ch; }
.sub { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font: 700 15px/1 var(--body);
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 0 0 1px rgba(255,47,168,.6), 0 8px 30px rgba(255,47,168,.35); }
.btn-pink:hover { color: #fff; box-shadow: 0 0 0 1px #ff73c4, 0 10px 40px rgba(255,47,168,.55); }
.btn-ghost { color: var(--text); background: rgba(42,215,255,.06); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn-ghost:hover { color: #fff; background: rgba(42,215,255,.14); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; margin-top: 40px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: rgba(7,6,13,.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 16px var(--display); }
.brand img { border-radius: 8px; }
.brand b { color: var(--pink); }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: clamp(600px, 86vh, 860px); display: grid; align-items: center; }
.trails { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.hero-in { z-index: 2 !important; }
/* headline: words rise in one after another, then "lights" buzzes like a neon tube */
.hl .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px);
  animation: word-in .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.45s + var(--i) * .09s); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.hl .neon { color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink), 0 0 80px rgba(255,47,168,.6);
  animation: word-in .7s cubic-bezier(.2,.7,.2,1) forwards, buzz 5s steps(1, end) 2.4s infinite; animation-delay: calc(.45s + var(--i) * .09s), 2.4s; }
@keyframes buzz { 0%, 100% { opacity: 1; } 2% { opacity: .35; } 3% { opacity: 1; } 5% { opacity: .55; } 6% { opacity: 1; } 61% { opacity: 1; } 62% { opacity: .4; } 63% { opacity: 1; } }
.hero-copy .lead, .hero-copy .cta, .hero-copy .eyebrow { opacity: 0; animation: fade-up .8s ease-out forwards; }
.hero-copy .eyebrow { animation-delay: .25s; } .hero-copy .lead { animation-delay: 1.35s; } .hero-copy .cta { animation-delay: 1.6s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px;
  color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; opacity: 0; animation: fade-up .8s ease-out 2.2s forwards; }
.scroll-cue span { width: 1.5px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .62; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,6,13,.92) 10%, rgba(7,6,13,.55) 55%, rgba(7,6,13,.2)), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-in { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.logo-wrap { width: 100%; max-width: 380px; perspective: 900px; }
.logo-float { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out;
  animation: logo-float 6s ease-in-out 1.6s infinite; }
.hero-logo { display: block; width: 100%; height: auto; animation: neon-on 1.6s steps(1, end) both, logo-glow 4s ease-in-out 1.6s infinite; }
/* a light sweep clipped to the logo's own shape */
.logo-shine { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(img/logo.webp) center / contain no-repeat; mask: url(img/logo.webp) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 48%, rgba(42,215,255,.35) 52%, transparent 62%);
  background-size: 300% 100%; background-position: 150% 0; mix-blend-mode: screen; animation: logo-shine 5.5s ease-in-out 2.2s infinite; }
@keyframes neon-on {            /* flickers on like a neon tube */
  0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; } 24% { opacity: .25; } 30% { opacity: 1; } 34% { opacity: .5; } 40%, 100% { opacity: 1; } }
@keyframes logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(255,47,168,.55)) drop-shadow(0 0 60px rgba(255,47,168,.25)); }
  50% { filter: drop-shadow(0 0 26px rgba(42,215,255,.55)) drop-shadow(0 0 70px rgba(42,215,255,.25)); } }
@keyframes logo-shine { 0%, 55% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
.hero-copy { display: grid; gap: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: #d9d2f3; max-width: 52ch; }
.status[hidden] { display: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3df29a; box-shadow: 0 0 10px #3df29a; }
.status.off .dot { background: #ff5d7a; box-shadow: 0 0 10px #ff5d7a; }

/* who */
.band { background: linear-gradient(90deg, rgba(255,47,168,.10), rgba(42,215,255,.08)); border-block: 1px solid var(--line); }
.who { padding-block: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 48px; align-items: center; }
.who h2 { font-size: clamp(24px, 3vw, 32px); }
.who p { color: #d9d2f3; }
.pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 4px 0 0; }
.pills li { font: 500 13px var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.gallery .g-wide { grid-column: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px; background: linear-gradient(0deg, rgba(7,6,13,.92), transparent);
  font-size: 14px; color: #d9d2f3; }
.gallery figcaption b { display: block; color: #fff; font: 600 15px var(--display); margin-bottom: 2px; }

/* jobs */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.job { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.job h3 { display: flex; align-items: center; gap: 10px; }
.job h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.job p { color: var(--muted); font-size: 15.5px; }
.c-blue { --c: #3b82ff; } .c-green { --c: #3df29a; } .c-red { --c: #ff4d4d; } .c-pink { --c: var(--pink); } .c-amber { --c: #ffc23d; } .c-violet { --c: var(--violet); }

/* store */
.store-band { background: radial-gradient(1200px 400px at 80% 0%, rgba(139,92,255,.14), transparent), var(--surface); border-block: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.tab { flex: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 600 14px var(--body); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; border-color: var(--pink); background: rgba(255,47,168,.14); box-shadow: 0 0 18px rgba(255,47,168,.25); }
.tab .n { font: 500 12px var(--mono); color: var(--muted); margin-left: 6px; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.pkg { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.pkg:hover { border-color: rgba(42,215,255,.6); transform: translateY(-2px); }
.pkg-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0a16; display: grid; place-items: center; }
/* the picture always fits inside its box, whatever shape Tebex gives it, so the name and Buy button never get pushed off */
.pkg-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pkg-img .blur { object-fit: cover; filter: blur(14px) brightness(.45); transform: scale(1.15); }
.pkg-body { padding: 14px 14px 6px; display: grid; gap: 4px; align-content: start; }
.pkg-name { font: 600 15px var(--display); overflow-wrap: anywhere; }
.pkg-price { font: 500 15px var(--mono); color: var(--cyan); font-variant-numeric: tabular-nums; }
.pkg-buy { margin: 10px 14px 14px; padding: 11px; border-radius: 10px; text-align: center; text-decoration: none; font: 700 14px var(--body); color: #fff; background: var(--pink); }
.pkg-buy:hover { color: #fff; filter: brightness(1.1); }
.store-foot { margin-top: 26px; color: var(--muted); font-size: 15px; }

/* recent supporters: a slow ticker of the latest Tebex purchases */
.recent[hidden] { display: none; }
.recent { margin: -8px 0 26px; display: grid; gap: 10px; }
.recent-h { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.recent-track { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; width: max-content; animation: ticker var(--dur, 40s) linear infinite; }
.recent-track:hover .recent-list { animation-play-state: paused; }
.recent-list li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
.recent-list b { color: #fff; }
.recent-list .what { color: var(--cyan); }
.recent-list .when { color: var(--muted); font: 500 12px var(--mono); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* join */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: s; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font: 800 28px var(--display); color: var(--pink); text-shadow: 0 0 18px rgba(255,47,168,.5); }
.steps b { font: 600 18px var(--display); }
.steps p { color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13.5px; }

/* Tebex login + basket (shown only when a Tebex token is set) */
.nav-right { display: flex; align-items: center; gap: 8px; }
.tb-only { display: none; }
.has-basket .tb-only { display: inline-flex; }
.has-basket .tb-only[hidden] { display: none; }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font: 700 12px/22px var(--mono); text-align: center; }
button.pkg-buy { border: 0; cursor: pointer; }
button.pkg-buy:disabled { opacity: .6; cursor: default; }
.basket { width: min(460px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); padding: 22px; }
.basket::backdrop { background: rgba(3,2,8,.7); backdrop-filter: blur(3px); }
.bk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bk-head h2 { font-size: 22px; }
.bk-x { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; font: 600 13px var(--body); }
.bk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.bk-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.bk-name { font-weight: 600; overflow-wrap: anywhere; }
.bk-price { font: 500 14px var(--mono); color: var(--cyan); }
.bk-rm { background: none; border: 0; color: #ff8fb5; cursor: pointer; font: 600 13px var(--body); }
.bk-empty { color: var(--muted); padding: 10px 0; }
.bk-foot { display: flex; justify-content: space-between; margin: 16px 0 12px; font-size: 17px; }
.bk-foot b { font-family: var(--mono); }
.bk-go { width: 100%; }
.bk-go:disabled { opacity: .5; cursor: default; }
.bk-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; z-index: 50;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid #3df29a; padding: 12px 16px; border-radius: 10px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-left-color: #ff5d7a; }

/* city place pop-up */
.gallery [data-place] { cursor: pointer; }
.gallery [data-place]::after { content: "Tap for more"; position: absolute; top: 12px; right: 12px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(7,6,13,.7); border: 1px solid var(--line); color: var(--cyan); opacity: 0; transition: opacity .2s; }
.gallery [data-place]:hover::after, .gallery [data-place]:focus-visible::after { opacity: 1; }
.place { width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); overflow: auto; }
.place::backdrop { background: rgba(3,2,8,.75); backdrop-filter: blur(4px); }
.pl-photo { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.pl-body { padding: 24px 26px 28px; max-width: 70ch; }
.pl-text { display: grid; gap: 12px; align-content: start; }
.pl-text h2 { font-size: clamp(24px, 3vw, 32px); }
.pl-text p:not(.eyebrow) { color: #d9d2f3; }
.pl-postal { color: var(--muted) !important; font-size: 14px; }
.pl-postal b { color: #fff; background: var(--pink); padding: 2px 8px; border-radius: 6px; margin-left: 4px; }
.pl-map { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0c0a16; }
.pl-map img { position: absolute; max-width: none; }
.pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 24px 6px rgba(255,47,168,.8); }
.pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--pink); animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.pl-x { position: absolute; top: 14px; right: 14px; }
.preview::before { content: "PREVIEW MODE: pretend Tebex for checking the look"; position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 30;
  font: 500 11px var(--mono); letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: #ffc23d; color: #1b1400; }

/* package pop-up */
.pkg-img { cursor: pointer; }
.pkg-more { justify-self: start; margin-top: 4px; padding: 0; background: none; border: 0; color: var(--cyan); font: 600 13px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pkg-more:hover { color: #fff; }
.pkgd { width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); overflow: auto; }
.pkgd::backdrop { background: rgba(3,2,8,.75); backdrop-filter: blur(4px); }
.pk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pk-pic { background: #0c0a16; display: grid; place-items: center; min-height: 260px; }
.pk-pic img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
.pk-info { padding: 26px; display: grid; gap: 10px; align-content: start; }
.pk-info h2 { font-size: clamp(22px, 2.6vw, 30px); padding-right: 70px; overflow-wrap: anywhere; }
.pk-price { font: 500 20px var(--mono); color: var(--cyan); }
.pk-desc { display: grid; gap: 8px; color: #d9d2f3; font-size: 15px; max-height: 44vh; overflow-y: auto; padding-right: 6px; }
.pk-desc h3 { font-size: 15px; color: #fff; margin-top: 6px; }
.pk-desc ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pk-act { margin-top: 8px; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: left; }
  .logo-wrap { max-width: 220px; }
  .hero { min-height: 0; }
  .scroll-cue { display: none; }
  .who { grid-template-columns: 1fr; }
  .pl-body { grid-template-columns: 1fr; }
  .pk-grid { grid-template-columns: 1fr; }
  .pk-desc { max-height: none; }
  .gallery, .jobs, .steps { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery, .jobs, .steps { grid-template-columns: 1fr; }
  .gallery .g-wide { grid-column: auto; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .nav-right .btn-pink { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hl .w, .hero-copy .lead, .hero-copy .cta, .hero-copy .eyebrow, .scroll-cue { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .trails, .scroll-cue span { display: none; }
  .recent-list { animation: none; flex-wrap: wrap; width: auto; } * { transition: none !important; scroll-behavior: auto !important; } .pin::after, .logo-float, .hero-logo, .logo-shine { animation: none !important; } .hero-logo { filter: drop-shadow(0 0 30px rgba(255,47,168,.4)); } }
