/* ── Scroll journey stage — core experience ─────────────────── */
.journey {
  position: relative;
  /* Tall scroll runway: more height = finer scrub control */
  height: 420vh;
  background: #02040c;
}

.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.journey-video,
.journey-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #02040c;
  /* GPU-friendly; no pointer so scroll/wheel hit the page */
  pointer-events: none;
}

.journey-canvas {
  z-index: 0;
  display: block;
}

.journey.is-canvas-scrub .journey-video {
  visibility: hidden;
}

.journey-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(2, 4, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 4, 12, 0.35) 0%, transparent 18%, transparent 72%, rgba(2, 4, 12, 0.75) 100%);
}

.journey-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  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");
}

/* HUD */
.journey-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 1.25rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vh, 2.5rem);
  pointer-events: none;
  z-index: 2;
}

.journey-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, 0.55);
}

.journey-kicker em {
  font-style: normal;
  color: var(--cyan);
}

.journey-chapters {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(5.5rem, 14vh, 8rem);
  max-width: 36rem;
}

.journey-chapter {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.journey-chapter.is-active {
  opacity: 1;
  transform: translateY(0);
}

.journey-chapter .num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}

.journey-chapter h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 0.65rem;
}

.journey-chapter h2 em {
  font-style: normal;
  color: var(--cyan);
}

.journey-chapter p {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}

/* Progress rail */
.journey-rail {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 420px);
  pointer-events: auto;
}

.journey-rail-track {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(244, 247, 250, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.journey-rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  box-shadow: 0 0 12px var(--cyan-glow);
  border-radius: 2px;
}

.journey-rail-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(244, 247, 250, 0.5);
  min-width: 7.5ch;
  text-align: right;
}

.journey-hint {
  font-family: var(--font-body, inherit);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.45;
  max-width: 28ch;
  color: rgba(244, 247, 250, 0.55);
  margin-top: 0.75rem;
}

.journey-enter {
  pointer-events: auto;
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cyan);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  box-shadow: 0 0 28px var(--cyan-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-enter:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px var(--cyan-glow);
}

.journey-enter:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Reduced motion: fixed poster, no scrub runway */
@media (prefers-reduced-motion: reduce) {
  .journey {
    height: auto;
  }
  .journey-sticky {
    position: relative;
    min-height: 100vh;
  }
  .journey-video {
    display: none;
  }
  .journey-sticky {
    background:
      center / cover no-repeat url("../assets/video/scroll-journey-poster.jpg"),
      #02040c;
  }
  .journey-chapter {
    position: relative;
    opacity: 1;
    transform: none;
    margin-bottom: 1.25rem;
  }
  .journey-chapters {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }
}

/* ── After the journey: experience body ─────────────────────── */
.x-body {
  position: relative;
  background: var(--navy);
  color: var(--white);
}

.x-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 2rem);
}

.x-section h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.x-section h2 em {
  font-style: normal;
  color: var(--cyan);
}

.x-section .lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

.x-section .lede--wide {
  max-width: 54ch;
}

.x-price {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 0 0 0.55rem !important;
}

.x-who {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(0, 212, 238, 0.22);
  border-radius: 16px;
  background: rgba(0, 212, 238, 0.04);
  max-width: 54ch;
}

.x-who-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.55rem;
}

.x-who p:last-child {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.x-offer-foot {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted-dim, var(--muted));
}

.x-work-aside {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted-dim, var(--muted));
  max-width: 52ch;
}

.x-proof {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .x-proof {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .x-work-group:last-of-type .x-proof {
    grid-template-columns: repeat(3, 1fr);
  }
}

.x-proof-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  background: linear-gradient(160deg, rgba(20, 29, 58, 0.9), rgba(10, 15, 44, 0.55));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.x-proof-card:hover {
  border-color: rgba(0, 212, 238, 0.4);
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(24, 36, 72, 0.95), rgba(10, 15, 44, 0.7));
}

.x-proof-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.x-proof-blurb {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.x-engage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.x-btn--solid {
  background: var(--cyan);
  color: #041018;
  border: 1px solid var(--cyan);
}

.x-btn--solid:hover {
  background: #5ee7f7;
  border-color: #5ee7f7;
}

.x-btn--line {
  color: var(--white);
  border: 1px solid var(--line);
  background: transparent;
}

.x-btn--line:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.x-contact-lanes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.x-lane {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.x-lane:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 238, 0.06);
}

.x-text-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 238, 0.35);
}

.x-text-link:hover {
  border-bottom-color: var(--cyan);
}

.x-work-group {
  margin-top: 1.75rem;
}

.x-work-group:first-of-type {
  margin-top: 0.5rem;
}

.x-work-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim, var(--muted));
  margin: 0 0 0.75rem;
}

.x-studio-teaser {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.x-studio-lede {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}

.x-studio-lede strong {
  color: var(--white);
  font-weight: 600;
}

.x-studio-links {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .x-studio-links {
    grid-template-columns: 1fr 1fr;
  }
}

.x-studio-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(160deg, rgba(20, 29, 58, 0.95), rgba(10, 15, 44, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.x-studio-card:hover {
  border-color: rgba(0, 212, 238, 0.4);
  transform: translateY(-2px);
}

.x-studio-card__kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.x-studio-card__title {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.x-studio-card__blurb {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.x-studio-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}

.x-studio-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.x-studio-chip.is-here {
  color: var(--cyan);
  border-color: rgba(0, 212, 238, 0.4);
  background: rgba(0, 212, 238, 0.06);
}

a.x-studio-chip:hover {
  color: var(--cyan);
  border-color: rgba(0, 212, 238, 0.45);
}

.x-status {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c9a227);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  margin-bottom: 0.15rem;
}

.x-status--live {
  color: var(--cyan);
  border-color: rgba(0, 212, 238, 0.35);
}

.x-proof-card--static {
  cursor: default;
}

.x-proof-card--static:hover {
  transform: none;
}

.x-proof-card--slot {
  border-style: dashed;
  opacity: 0.85;
}

.x-proof-meta {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--muted-dim, var(--muted));
}

.x-games-note {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted-dim, var(--muted));
}

.x-games-note a {
  color: var(--cyan);
}

.x-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.85rem;
}

.x-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .x-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.x-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(20, 29, 58, 0.9), rgba(10, 15, 44, 0.6));
  padding: 1.35rem 1.4rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.x-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.x-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.x-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.x-work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.x-work-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.x-work-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 238, 0.06);
}

/* ── Studio games ───────────────────────────────────────────── */
.x-games {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .x-games {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
  }
}

@media (min-width: 1180px) {
  .x-games {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.x-game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(20, 29, 58, 0.95), rgba(8, 12, 32, 0.9));
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.x-game-card:hover {
  border-color: rgba(0, 212, 238, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 212, 238, 0.08);
}

.x-game-visual {
  display: block;
  background: #02040c;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.x-game-visual--wide {
  aspect-ratio: 16 / 10;
}

.x-game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.x-game-card:hover .x-game-visual img {
  transform: scale(1.04);
}

.x-game-body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.x-game-kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.5rem;
}

.x-game-body h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.x-game-body p {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.x-game-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cyan);
  text-decoration: none;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  box-shadow: 0 0 24px rgba(0, 212, 238, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.x-game-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(0, 212, 238, 0.4);
}

.x-games-note {
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  color: var(--dim);
}

.x-games-note a {
  color: var(--cyan);
}

.x-close-block {
  text-align: center;
  border-top: 1px solid var(--line);
}

.x-close-block .mail {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--cyan);
  text-decoration: none;
  margin: 1.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.x-close-block .mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.x-close-block .note {
  font-size: 0.85rem;
  color: var(--muted-dim);
  margin: 0;
}

/* Top bar over journey */
body.has-journey .top {
  background: transparent;
  border-bottom-color: transparent;
}

body.has-journey .top.is-scrolled {
  background: rgba(10, 15, 44, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

body.has-journey {
  background: #02040c;
}
