/* yeah/nice — studio site */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --bg-soft: #141414;
  --text: #f2f2f2;
  --text-muted: #8a8a8a;
  --border: rgba(255, 255, 255, 0.08);
  --white: #ffffff;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Helvetica / open-metric fallbacks (Liberation/Arial on Windows) */
  --font-display: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;

  --accent-vp: #9ad4b8;
  --accent-vp-deep: #2a6b52;
  --accent-cr: #6ec8ff;
  --accent-cr-deep: #1a4a6e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #050505;
  color: #f2f2f2;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  background: #050505;
  background: var(--bg);
  color: #f2f2f2;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ——— Nav ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.65) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 0.35s var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  z-index: 2;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.85;
}

.nav-motto {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 560px) {
  .nav-motto {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.sound-toggle:hover,
.sound-toggle[aria-pressed="true"] {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.sound-toggle svg {
  width: 1rem;
  height: 1rem;
}

/* ——— Layout ——— */
main {
  position: relative;
}

.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.1rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s,
    filter 0.2s;
}

.btn:hover {
  background: transparent;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--bg);
}

.btn.btn-accent,
.btn.btn-vp {
  border-color: var(--accent-vp);
  background: transparent;
  color: var(--accent-vp);
}

.btn.btn-accent:hover,
.btn.btn-vp:hover {
  background: var(--accent-vp);
  color: #050505;
  border-color: var(--accent-vp);
}

.btn.btn-cr {
  border-color: var(--accent-cr);
  background: transparent;
  color: var(--accent-cr);
}

.btn.btn-cr:hover {
  background: var(--accent-cr);
  color: #050505;
  border-color: var(--accent-cr);
}

.btn-steam {
  gap: 0.6rem;
}

.steam-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
}

/* Steam CTA shaped like the CozyGames badge (content + proportional side room) */
.btn-steam-badge {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: 64px;
  min-height: 64px;
  /* Left inset like the badge art; extra room on the right (~same visual proportion) */
  padding: 0 1.85rem 0 1.15rem;
  gap: 0.7rem;
  justify-content: flex-start;
  border-radius: 12px;
  background: #0a0a0a;
  text-transform: none;
  letter-spacing: 0;
}

.btn.btn-vp.btn-steam-badge,
.btn.btn-cr.btn-steam-badge {
  background: #0a0a0a;
}

.btn-steam-badge .steam-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.btn-steam-badge .btn-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.btn-steam-badge .btn-badge-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-steam-badge .btn-badge-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--white);
}

.btn.btn-vp.btn-steam-badge:hover,
.btn.btn-cr.btn-steam-badge:hover {
  background: #121212;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.btn-vp.btn-steam-badge:hover {
  color: var(--accent-vp);
  border-color: var(--accent-vp);
}

.btn.btn-cr.btn-steam-badge:hover {
  color: var(--accent-cr);
  border-color: var(--accent-cr);
}

.btn.btn-vp.btn-steam-badge:hover .btn-badge-title,
.btn.btn-cr.btn-steam-badge:hover .btn-badge-title {
  color: var(--white);
}

.btn.btn-steam-badge:active {
  transform: translateY(1px);
}

.badge-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}

.badge-link img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.badge-link:hover {
  opacity: 0.88;
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.badge-link:active {
  transform: translateY(1px);
  opacity: 0.8;
}

.spotlight-body .display {
  margin-bottom: 1rem;
}

.spotlight-media + .spotlight-body .featured-meta {
  margin-top: 0.25rem;
}

/* ——— Scroll vertical wordmark (home) ——— */
.scroll-logo {
  position: fixed;
  left: clamp(0.75rem, 2.5vw, 2rem);
  top: calc(var(--nav-h) + 1.25rem);
  z-index: 0;
  pointer-events: none;
  opacity: var(--logo-presence, 0.42);
  transform: none;
  transition: opacity 0.25s ease;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.38);
  max-height: calc(100vh - var(--nav-h) - 2.5rem);
}

.scroll-logo.is-active {
  color: rgba(255, 255, 255, 0.48);
}

.scroll-logo.is-complete {
  color: rgba(255, 255, 255, 0.55);
}

.scroll-logo-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.scroll-ch {
  display: block;
  opacity: 0;
  transform: translateY(0.25em);
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease);
}

.scroll-ch.is-on {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slash {
  margin: 0.06em 0;
}

@media (max-width: 700px) {
  .scroll-logo {
    left: 0.65rem;
    font-size: clamp(1.15rem, 5vw, 1.6rem);
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.featured-meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.eyebrow.accent {
  color: var(--accent-vp);
}

/* ——— Spotlight stages: one focus at a time ——— */
.spotlight-stages {
  position: relative;
  z-index: 1;
  padding: 0;
  padding-left: clamp(3.25rem, 7vw, 5.5rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
  opacity: 0.18;
  transform: translateY(0.4rem);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.stage.is-focus {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.stage.is-dim {
  opacity: 0.12;
}

.stage-inner {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.spotlight-game {
  color: var(--accent-vp);
}

.spotlight-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
  margin-bottom: 1.25rem;
}

.trailer-embed {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.trailer-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Official Steam store widget (646×190 design size) */
.steam-widget {
  display: block;
  width: 100%;
  max-width: 646px;
  height: 190px;
  margin: 0 auto 1.25rem;
  border: 0;
  overflow: hidden;
  background: #1b2838;
}

.spotlight-body {
  position: relative;
  z-index: 2;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.spotlight-game .spotlight-body h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.spotlight-game .lead {
  color: rgba(242, 242, 242, 0.78);
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.spotlight-about p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 34rem;
}

.spotlight-about strong {
  color: var(--white);
  font-weight: 700;
}

.spotlight-about p + p {
  margin-top: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .stage {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-height: 0;
    padding: calc(var(--nav-h) + 2rem) 0 2.5rem;
  }

  .stage + .stage {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin-top: 1rem;
  }
}

/* ——— Games page ——— */
.page-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.game-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.game-tiles-top {
  padding-top: calc(var(--nav-h) + 1.5rem);
}

@media (min-width: 700px) {
  .game-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

.game-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
}

.game-tile:hover img {
  transform: scale(1.05);
}

.game-tile-label {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  text-align: center;
}

.game-tile-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.game-tile-label span {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-tile[data-game="venture-pals"] {
  border-color: rgba(154, 212, 184, 0.35);
}

.game-tile[data-game="cube-roller"] {
  border-color: rgba(110, 200, 255, 0.35);
}

/* Full-bleed game sections */
.game-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-margin-top: 0;
}

.game-section-media {
  position: absolute;
  inset: 0;
}

.game-section-media img,
.game-section-media .media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-section-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.72) 45%, rgba(5, 5, 5, 0.9) 100%);
}

.game-section-body {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-section h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 0.75rem;
}

.game-section .lead {
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.game-section .featured-meta {
  text-align: center;
}

.game-section .inline-trailer {
  margin-left: auto;
  margin-right: auto;
}

.game-section .hero-actions {
  justify-content: center;
}

.game-section#venture-pals {
  color: var(--accent-vp);
}

.game-section#venture-pals h2 {
  color: var(--white);
}

.game-section#cube-roller {
  color: var(--accent-cr);
}

.game-section#cube-roller h2 {
  color: var(--white);
}

.game-section#cube-roller .game-section-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(110, 200, 255, 0.2), transparent 45%),
    radial-gradient(circle at 20% 70%, rgba(255, 92, 138, 0.12), transparent 40%);
}

/* ——— Contact ——— */
.contact-layout {
  display: grid;
  gap: 3rem;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  max-width: 40rem;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.contact-layout-bare {
  gap: 0;
}

.contact-layout h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  margin-bottom: 0.5rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  justify-items: stretch;
}

.contact-form .btn {
  justify-self: center;
}

.field {
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field-file input[type="file"] {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--accent-vp);
}

.form-status.is-error {
  color: #ff7a7a;
}

.inline-trailer {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--white);
}

/* Placeholder media when video missing */
.media-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(154, 212, 184, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(42, 107, 82, 0.4), transparent 45%),
    #0a1210;
}

.media-fallback.has-photo {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.35)),
    center / cover no-repeat url("../assets/images/venture-pals-bg.jpg");
}

/* Mobile nav — keep inline, wrap if needed */
@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 0.75rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 4rem);
  }
}
