/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --bg:      #0e0a08;
  --bg-2:    #130f0a;
  --bg-3:    #0c0906;
  --orange:  #ff5520;
  --orange-dark: #e83800;
  --orange-light: #ff8a60;
  --rust:    #c83000;
  --text:    #ede0d8;
  --text-dim: #7a6058;
  --rule:    rgba(255,85,32,0.10);
  --dim:     rgba(255,255,255,0.06);

  --f1: 'Playfair Display', serif;
  --f2: 'Outfit', sans-serif;
  --f3: 'Lora', serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f3);
  font-size: 16px;
}

body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── COLOR BAR ──────────────────────────────────── */
.color-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--orange-dark), var(--orange), var(--orange-light));
  z-index: 100;
}

/* ─── NAV ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(14,10,8,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dim);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo-mark {
  width: 36px;
  height: 41px;
  flex-shrink: 0;
}
.nav-name {
  font-family: var(--f1);
  font-style: italic;
  font-size: 16px;
  line-height: 1;
  color: var(--orange);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,85,32,.35);
  padding: 8px 18px;
  transition: all .2s;
}
.nav-cta:hover {
  background: var(--orange);
  color: var(--bg);
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 72px 80px;
  position: relative;
  overflow: hidden;
}
.hero-hex {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(700px, 70vw);
  opacity: 0.045;
  pointer-events: none;
  animation: slow-spin 120s linear infinite;
}
@keyframes slow-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fade-up .8s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--orange);
}
.hero-title {
  font-family: var(--f1);
  font-style: italic;
  line-height: 1.0;
  margin-bottom: 12px;
  animation: fade-up .8s ease both;
}
.hero-line1 {
  display: block;
  white-space: nowrap;
  font-size: clamp(32px, 4.2vw, 72px);
  color: var(--text);
}
.hero-line2 {
  display: block;
  font-size: clamp(38px, 5vw, 86px);
  color: var(--orange);
}
.hero-sub {
  font-family: var(--f1);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 48px;
  max-width: 580px;
  animation: fade-up .8s .15s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  animation: fade-up .8s .3s ease both;
}
.hero-logo {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  width: min(340px, 35vw);
  animation: fade-in 1.2s .2s ease both;
  filter: drop-shadow(0 24px 60px rgba(255,85,32,.18));
}
.hero-logo img {
  width: 100%;
  height: auto;
}
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 72px;
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  animation: scroll-line 2s ease-in-out infinite;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--bg);
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--dim);
  padding: 14px 28px;
  transition: all .2s;
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ─── SECTIONS ───────────────────────────────────── */
section {
  padding: 100px 72px;
  border-top: 1px solid var(--dim);
}
.hero { border-top: none; }
.sec-label {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sec-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--orange);
  opacity: .4;
}

/* ─── GAMES ──────────────────────────────────────── */
.game-card {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
  position: relative;
  overflow: hidden;
}
.game-card:hover { transform: translateY(-4px); }
.game-card:hover .game-img-bg { transform: scale(1.04); }

.game-img-bg {
  height: 260px;
  transition: transform .5s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card.featured .game-img-bg { height: 320px; }
.game-card.featured { margin-bottom: 2px; }

.games-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Vested visual */
.game-vested .game-img-bg {
  background: linear-gradient(135deg, #120c08 0%, #1a100a 40%, #0e0a08 100%);
  overflow: hidden;
}
.vested-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 32px;
  position: relative;
}
.vested-title-vis {
  font-family: var(--f1);
  font-style: italic;
  font-size: 42px;
  color: var(--text);
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(255,85,32,.3);
  position: relative;
  z-index: 1;
}
.vested-year {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
.ticker-scroll {
  width: 60%;
  max-width: 360px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
}
.ticker-track {
  display: flex;
  gap: 20px;
  font-family: monospace;
  font-size: 12px;
  opacity: 0.5;
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-up { color: #4ade80; }
.ticker-down { color: var(--orange); }
.ticker-flat { color: var(--text-dim); }
.chart-wrap {
  width: 100%;
  height: 60px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.chart-wrap svg { width: 100%; height: 100%; }

/* Wordrift visual */
.game-wordrift .game-img-bg {
  background: linear-gradient(135deg, #0c0a08 0%, #14100c 100%);
}
.wordrift-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
}
.wordrift-visual {
  font-family: var(--f1);
  font-style: italic;
  font-size: 42px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.wordrift-highlight {
  color: var(--orange);
  animation: letter-glow 3s ease-in-out infinite;
}
@keyframes letter-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.wordrift-caption {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Good Girl visual */
.game-goodgirl .game-img-bg {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255,85,32,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(200,48,0,.04) 0%, transparent 50%),
    linear-gradient(135deg, #12100c 0%, #1a1510 50%, #0e0c08 100%);
}
.goodgirl-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
}
.goodgirl-label {
  font-family: var(--f1);
  font-style: italic;
  font-size: 36px;
  color: var(--text);
  text-shadow: 0 0 30px rgba(255,85,32,.15);
}
.goodgirl-visual {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 32px;
  opacity: .6;
}
.paw {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: paw-bounce 2s ease-in-out infinite;
}
.paw:nth-child(2) { animation-delay: .2s; }
.paw:nth-child(3) { animation-delay: .4s; }
.paw:nth-child(4) { animation-delay: .6s; }
.paw:nth-child(5) { animation-delay: .8s; }
@keyframes paw-bounce {
  0%,100% { opacity: .3; transform: scale(.9); }
  50%     { opacity: .8; transform: scale(1.1); }
}

/* Card body */
.game-body {
  padding: 28px 32px 32px;
  flex: 1;
}
.game-tag {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.game-tag span { color: var(--text-dim); }
.game-title {
  font-family: var(--f1);
  font-style: italic;
  font-size: 28px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}
.game-card.featured .game-title { font-size: 36px; }
.game-desc {
  font-family: var(--f3);
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 20px;
}
.game-status {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.status-active .status-dot { background: var(--orange); }
.status-soon .status-dot { background: var(--text-dim); animation: none; }
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,85,32,.4); }
  50%     { opacity: .8; box-shadow: 0 0 0 4px rgba(255,85,32,0); }
}
.status-active { color: var(--orange); }
.status-soon   { color: var(--text-dim); }
.game-release {
  color: var(--orange);
  margin-left: 4px;
}
.status-soon .game-release {
  color: var(--text-dim);
}

/* ─── ABOUT ──────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-headline {
  font-family: var(--f1);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 32px;
}
.about-headline em {
  color: var(--orange);
  font-style: normal;
}
.about-body {
  font-family: var(--f3);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-dim);
}
.about-body p + p { margin-top: 20px; }
.about-right { padding-top: 8px; }
.about-stat {
  padding: 28px 0;
  border-bottom: 1px solid var(--dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-stat:first-child { border-top: 1px solid var(--dim); }
.stat-num {
  font-family: var(--f1);
  font-style: italic;
  font-size: 36px;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── DEVLOG ─────────────────────────────────────── */
.devlog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.devlog-card {
  background: var(--bg-2);
  padding: 36px 40px;
  transition: background .2s;
}
.devlog-card:hover { background: #1a1410; }
.devlog-date {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.devlog-title {
  font-family: var(--f1);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.devlog-excerpt {
  font-family: var(--f3);
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}
.devlog-tag {
  display: inline-block;
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,85,32,.3);
  padding: 3px 10px;
  margin-top: 16px;
}

/* ─── NEWSLETTER CTA ─────────────────────────────── */
.footer-cta {
  padding: 100px 72px;
  border-top: 1px solid var(--dim);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}
.footer-cta-headline {
  font-family: var(--f1);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text);
  line-height: 1.2;
}
.footer-cta-headline em {
  color: var(--orange);
  font-style: normal;
}
.email-caption {
  font-family: var(--f2);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.email-form { display: flex; }
.email-input {
  background: var(--bg-2);
  border: 1px solid var(--dim);
  border-right: none;
  color: var(--text);
  font-family: var(--f2);
  font-size: 13px;
  padding: 14px 20px;
  width: 280px;
  outline: none;
  transition: border-color .2s;
}
.email-input:focus { border-color: rgba(255,85,32,.4); }
.email-input::placeholder { color: var(--text-dim); }
.email-btn {
  background: var(--orange);
  color: var(--bg);
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.email-btn:hover { background: var(--orange-dark); }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  padding: 40px 72px;
  border-top: 1px solid var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-mark {
  width: 28px;
  height: 32px;
}
.footer-name {
  font-family: var(--f1);
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: var(--f2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-family: var(--f2);
  font-size: 12px;
  color: var(--text-dim);
  opacity: .5;
}

/* ─── SCROLL REVEAL ──────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scroll-line {
  0%,100% { width: 40px; opacity: .4; }
  50%     { width: 60px; opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 32px; }
  .nav-links { display: none; }
  section { padding: 72px 32px; }
  .hero { padding: 120px 32px 80px; }
  .hero-logo { display: none; }
  .scroll-hint { left: 32px; }
  .games-row { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .devlog-grid { grid-template-columns: 1fr; }
  .footer-cta {
    grid-template-columns: 1fr;
    padding: 72px 32px;
    gap: 40px;
  }
  .email-input { width: 100%; min-width: 0; }
  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 40px 32px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
