/* ============================================================
   CROWN VAPE — Geek Bar 2 Blue Razz
   The device travels the page. Dark, electric, Apple pacing.
   ============================================================ */
:root {
  --bg: #05070f;
  --bg-2: #0a0f22;
  --ink: #eef1f8;
  --ink-dim: rgba(238, 241, 248, 0.55);
  --razz: #4f8bff;
  --razz-deep: #2547d0;
  --razz-glow: rgba(79, 139, 255, 0.45);
  --hairline: rgba(238, 241, 248, 0.08);
  --display: "Prata", "Bodoni Moda", ui-serif, Georgia, serif;
  --body: "Jost", ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* the whole page lives inside the frames' backdrop. Deliberately MORE than one
   navy: a bright blue halo up top, a violet drift on the left, a razz glow low
   right, and a vertical wash that peaks mid-page then falls back to near-black.
   Fixed layer = zero repaint on scroll, works on mobile. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120vw 90vh at 50% 24%, rgba(64, 96, 180, 0.34), transparent 58%),
    radial-gradient(90vw 70vh at 10% 60%, rgba(99, 72, 190, 0.15), transparent 60%),
    radial-gradient(80vw 60vh at 86% 80%, rgba(79, 139, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #03050c 0%, #0a1430 34%, #12224e 58%, #0a1128 82%, #050810 100%);
}
::selection { background: var(--razz); color: #fff; }

/* ---------- The device layer ---------- */
#device-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 18;                 /* over the content, under the nav */
  pointer-events: none;
  mix-blend-mode: screen;      /* black frame background vanishes on the dark page */
}

/* ---------- Compliance ribbon ---------- */
.ribbon {
  position: relative;
  z-index: 60;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  color: rgba(238, 241, 248, 0.6);
  background: var(--bg-2);
  border-bottom: 1px solid var(--hairline);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(6, 9, 22, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--razz); }
.brand .mark {
  width: 13px; height: 13px;
  border: 2px solid var(--razz);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--razz-glow);
}
.mark.big {
  display: block;
  width: 30px; height: 30px;
  border: 2.5px solid var(--razz);
  border-radius: 5px;
  transform: rotate(45deg);
  box-shadow: 0 0 20px var(--razz-glow);
  margin: 0 auto 26px;
}
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }

.pill {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(79, 139, 255, 0.5);
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.pill:hover { background: var(--razz); color: #fff; box-shadow: 0 0 28px var(--razz-glow); }
.pill.solid { background: var(--razz); color: #fff; border-color: transparent; }
.pill.solid:hover { background: #6b9dff; box-shadow: 0 0 36px var(--razz-glow); }
.pill.ghost { border-color: var(--hairline); color: var(--ink-dim); }
.pill.ghost:hover { background: transparent; color: var(--ink); border-color: rgba(238,241,248,0.3); box-shadow: none; }

/* ============================================================
   THE JOURNEY
   ============================================================ */
#journey { position: relative; }

/* ---- Hero ---- */
.j-hero { height: 165vh; position: relative; }
.j-hero-copy {
  position: relative;
  z-index: 25;                 /* above the device canvas (18) so the copy stays crisp */
  text-align: center;
  padding: clamp(60px, 12vh, 130px) 24px 0;
  will-change: opacity, transform;
}
/* soft scrim so the headline reads over the brightest part of the product */
.j-hero-copy::before {
  content: "";
  position: absolute;
  inset: -12% -10% -24%;
  background: radial-gradient(ellipse at 50% 42%, rgba(5, 8, 18, 0.78), rgba(5, 8, 18, 0.4) 52%, transparent 76%);
  z-index: -1;
  pointer-events: none;
}
.j-hero-copy h1,
.j-hero-copy .sub,
.j-hero-copy .eyebrow {
  text-shadow: 0 2px 34px rgba(5, 8, 18, 0.92), 0 1px 5px rgba(5, 8, 18, 0.7);
}
/* gradient-clipped text is transparent — a shadow would show through the glyphs */
.j-hero-copy h1 .accent {
  text-shadow: none;
}
.eyebrow {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--razz);
  margin-bottom: 24px;
}
.j-hero-copy h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
}
.j-hero-copy h1 .accent {
  background: linear-gradient(115deg, #9dc1ff 0%, var(--razz) 45%, #b07cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 44px rgba(79, 139, 255, 0.38));
}
.j-hero-copy .sub {
  margin-top: 26px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-dim);
}
.scroll-hint {
  position: absolute;
  top: calc(100vh - 96px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--ink-dim);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ---- Weave rows: text one side, open sky the other ---- */
.j-row {
  min-height: 155vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-inline: clamp(24px, 6vw, 88px);
  position: relative;
}
.j-row .j-text { position: relative; z-index: 2; max-width: 540px; }
.j-row.flip .j-text { order: 2; justify-self: end; }
.j-row.flip .j-space { order: 1; }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--razz);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.05;
}
h2 .dim { color: var(--ink-dim); }
.j-text .body {
  margin-top: 22px;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.7;
  color: var(--ink-dim);
}

.mini-stats { display: flex; gap: clamp(24px, 3vw, 48px); margin-top: 34px; }
.mini-stats b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: 0;
}
.mini-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-dim); }

.ticks { margin-top: 30px; list-style: none; display: grid; gap: 12px; }
.ticks li {
  font-size: 14.5px;
  color: var(--ink-dim);
  padding-left: 26px;
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 2px;
  background: var(--razz);
  box-shadow: 0 0 10px var(--razz-glow);
}

.modes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mode {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
}
.mode.hot {
  border-color: rgba(79, 139, 255, 0.55);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(79, 139, 255, 0.18) inset, 0 0 18px rgba(79, 139, 255, 0.12);
}

/* ---- Finale ---- */
.j-finale {
  height: 135vh;
  display: grid;
  place-content: start center;
  padding-top: 38vh;
  text-align: center;
  position: relative;
  z-index: 2;
}
.j-finale h2 { font-size: clamp(2.6rem, 6.5vw, 5rem); }

/* ============================================================
   After the journey
   ============================================================ */
.flavours {
  position: relative;
  z-index: 22;               /* above the canvas — clean break from the journey */
  padding: clamp(90px, 12vw, 160px) clamp(20px, 6vw, 72px);
  background: var(--bg-2);
  border-block: 1px solid var(--hairline);
}
.flavour-row {
  margin-top: clamp(44px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.flavour {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
}
.flavour:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--tint) 55%, transparent);
}
.flavour img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.08);
}
.flavour-meta { padding: 18px 20px 22px; border-top: 2px solid var(--tint); }
.flavour-meta h3 { font-family: var(--display); font-size: 18px; font-weight: 400; }
.flavour-meta p { margin-top: 5px; font-size: 13px; color: var(--ink-dim); }
.tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, var(--tint) 82%, black);
  padding: 5px 11px;
  border-radius: 999px;
}
.flavour-note { margin-top: 36px; font-size: 14px; color: var(--ink-dim); }

.visit {
  position: relative;
  z-index: 22;
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(90px, 12vw, 150px) 24px;
  background:
    radial-gradient(55% 65% at 50% 100%, rgba(79, 139, 255, 0.14), transparent 70%);
}
.visit h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.visit p { margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-dim); max-width: 480px; margin-inline: auto; }
.visit-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.visit .hours { margin-top: 34px; font-size: 13px; letter-spacing: 0.06em; }

.footer {
  position: relative;
  z-index: 22;
  padding: 34px 24px 44px;
  text-align: center;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-dim);
  display: grid;
  gap: 8px;
}
.footer .dim { opacity: 0.6; }

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.flavour-row .flavour:nth-child(2) { transition-delay: 0.1s; }
.flavour-row .flavour:nth-child(3) { transition-delay: 0.2s; }
.flavour-row .flavour:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  /* Tighter rhythm: shorter rows, card vertically centred so the device can
     sit exactly beside it (journey.js measures these cards to build its path). */
  .j-row { grid-template-columns: 1fr; min-height: 96vh; align-items: center; padding-top: 0; }
  /* Narrow, alternating cards leave a lane for the device to weave through:
     normal rows hug LEFT (device swings right), .flip rows hug RIGHT. */
  .j-row .j-text {
    order: 1;
    justify-self: start;
    max-width: min(68%, 310px);
  }
  .j-row.flip .j-text {
    order: 1;
    justify-self: end;
    text-align: left;
  }
  .j-row .j-space { display: none; }
  .j-hero { height: 145vh; }
  .flavour-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .flavour-row { grid-template-columns: 1fr; }
  .mini-stats { flex-wrap: wrap; gap: 20px; }
}

/* ---------- Intro loader ---------- */
body.loading { overflow: hidden; height: 100vh; }
#preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(circle at 50% 38%, #0a1330, var(--bg) 62%);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(320px, 76vw);
}
.pl-mark {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.3em;
  font-size: 15px;
  color: var(--ink);
}
.pl-mark span { color: var(--razz); }
.pl-bar {
  width: 100%;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.pl-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--razz);
  box-shadow: 0 0 16px var(--razz-glow);
  transition: width 0.25s ease;
}
.pl-pct {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
}
.pl-note {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
