/* ===================================================
   Blue Variable Studio — Editorial Redesign
   =================================================== */

:root {
  --cream:     #F7F3EC;
  --cream-2:   #EDE8DF;
  --cream-3:   #E3DDCF;
  --ink:       #1C1A2E;
  --blue:      #4A7AFF;
  --blue-dark: #2B56DB;
  --blue-pale: #EEF3FF;
  --warm:      #E8894A;
  --warm-pale: #FDF0E7;
  --muted:     #7A7385;

  --ff-display: 'Inter', Georgia, serif;
  --ff-body:    'Instrument Sans', system-ui, sans-serif;

  --max-w:     1080px;
  --nav-h:     60px;
  --r:         6px;
  --r-lg:      14px;
}

/* ── Fonts ───────────────────────────────────────── */
@font-face {
  font-family: 'Garet';
  src: url('../assets/fonts/Garet-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay — makes it feel like print */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
}

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

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem);   font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem);   font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }

/* Fraunces "wonky" italic — genuinely distinctive */
em {
  font-style: italic;
  font-variation-settings: "WONK" 1;
}

p {
  color: var(--muted);
  line-height: 1.72;
  max-width: 58ch;
}

/* ── Layout ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

/* ── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ticker-scroll {
  from { transform: translateX(0%); }
  to   { transform: translateX(-34%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

/* Page-load entrance animations */
.anim { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.42s; }
.d5 { animation-delay: 0.55s; }

/* Scroll-reveal (toggled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 26, 46, 0.09);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img { height: 30px; width: auto; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.15s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover        { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active       { color: var(--blue); }
.nav-links a.active::after { width: 100%; }

/* ── Ticker ──────────────────────────────────────── */
.ticker {
  background: var(--blue);
  overflow: hidden;
  padding: 0.55rem 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker-scroll 5s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}

.ticker-sep { opacity: 0.35 !important; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.5rem;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  border-radius: var(--r);
  text-decoration: none;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: #2d2a45; }

.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(28, 26, 46, 0.22);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding-left: 0;
  padding-right: 0;
  font-weight: 600;
}
.btn-ghost:hover { opacity: 0.7; }

/* ── Section Label ───────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1.5px;
  background: var(--blue);
}

/* ── Hero (Home) ─────────────────────────────────── */
.hero {
  padding: 7rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

/* Large decorative circle in the background */
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,122,255,0.06) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}

.hero-title em {
  color: var(--blue);
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 2.25rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Animated logo letters ───────────────────────── */
@keyframes float-b {
  0%, 100% { transform: translate(0px,  0px) rotate(0deg); }
  35%       { transform: translate(-5px, -9px) rotate(-4deg); }
  70%       { transform: translate( 4px, -4px) rotate( 0deg); }
}
@keyframes float-l {
  0%, 100% { transform: translate(0px,  0px) rotate(0deg); }
  50%       { transform: translate( 6px,-11px) rotate(6deg); }
}
@keyframes float-u {
  0%, 100% { transform: translate(0px,  0px) rotate(0deg); }
  40%       { transform: translate(-6px,  8px) rotate(-7deg); }
  75%       { transform: translate( 5px,  5px) rotate(-12deg); }
}
@keyframes float-e {
  0%, 100% { transform: translate(0px,  0px) rotate(0deg); }
  45%       { transform: translate( 7px, -7px) rotate(8deg); }
}
@keyframes float-dot {
  0%, 100% { transform: translate(0px, 0px); }
  50%       { transform: translate(-4px, 6px); }
}

.logo-letters {
  /* font-size IS the letter size — all em values share this base */
  font-size: clamp(80px, 11vw, 128px);
  position: relative;
  width:  3em;
  height: 2.6em;
  flex-shrink: 0;
  user-select: none;
}

.ll {
  font-family: 'Garet', sans-serif;
  font-weight: 900;
  color: var(--ink);
  position: absolute;
  line-height: 1;
  font-size: 1.5em; /* same base as container — em positions are now consistent */
  opacity: 0.82;
}

.ll-b   { rotate:-2deg; top: 0.1em;      left: 0.35em;      animation: float-b   5.2s ease-in-out infinite; }
.ll-l   { rotate:8deg; top: 0.3em;      left: 1.25em;  animation: float-l   6.1s ease-in-out infinite 0.4s; }
.ll-u   { rotate:-10deg; top: 0.8em; left: 0.15em; animation: float-u  4.8s ease-in-out infinite 1.1s; }
.ll-e   { rotate:5deg; top: 1.1em;  left: 1.05em; animation: float-e   5.5s ease-in-out infinite 0.7s; }

.ll-dot {
  position: absolute;
  top:  1.5em;
  left: 1.4em;
  width:  0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--blue);
  animation: float-dot 7s ease-in-out infinite 0.3s;
}

/* ── Games Showcase ──────────────────────────────── */
.games-section { background: var(--cream-2); }

.game-showcase-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(28, 26, 46, 0.07);
  transition: box-shadow 0.25s ease;
  max-width: 780px;
}

.game-showcase-link:hover {
  box-shadow: 0 12px 48px rgba(74, 122, 255, 0.15);
}

.game-visual {
  background: linear-gradient(145deg, #1C1A2E 0%, #2a2660 50%, #1a3a96 100%);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.game-visual::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,122,255,0.35) 0%, transparent 70%);
  top: -60px; right: -80px;
}

.game-visual::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,137,74,0.25) 0%, transparent 70%);
  bottom: -50px; left: -30px;
}

.game-emoji {
  font-size: 5.5rem;
  position: relative;
  z-index: 1;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.game-info {
  background: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  background: var(--warm-pale);
  border: 1px solid rgba(232, 137, 74, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  width: fit-content;
}

.game-info h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--ink);
}

.game-info p {
  font-size: 0.95rem;
  max-width: none;
  line-height: 1.7;
}

/* ── Game Page ───────────────────────────────────── */
.game-hero {
  background: var(--ink);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.game-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 25% 50%, rgba(74,122,255,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 30%, rgba(232,137,74,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.game-hero-content {
  position: relative;
  z-index: 1;
}

.game-hero h1 {
  color: #fff;
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: 1rem;
}

.game-hero h1 em { color: rgba(74,122,255,0.9); }

.game-hero .label { justify-content: center; margin-bottom: 1.5rem; }
.game-hero .label,
.game-hero .label::before { opacity: 0.5; }

.game-hero p { color: rgba(255,255,255,0.6); margin: 0 auto 2.5rem; font-size: 1.1rem; }

.game-hero-emoji {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 1.25rem;
  animation: float 5s ease-in-out infinite;
}

/* ── Coming Soon ─────────────────────────────────── */
.coming-soon {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.coming-soon::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,122,255,0.14) 0%, transparent 70%);
  top: -200px; left: -150px;
  pointer-events: none;
}

.coming-soon::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,137,74,0.09) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  pointer-events: none;
}

.coming-soon h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  position: relative; z-index: 1;
}

.coming-soon p {
  color: rgba(255,255,255,0.55);
  margin: 0.75rem auto 2rem;
  position: relative; z-index: 1;
}

.coming-soon .btn-blue { position: relative; z-index: 1; }

/* ── Media Grid ──────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.media-ph {
  aspect-ratio: 16/9;
  background: var(--cream-2);
  border: 1.5px dashed rgba(28,26,46,0.14);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, background 0.2s;
}

.media-ph:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

/* ── About Page ──────────────────────────────────── */
.about-hero { padding: 7rem 0 4rem; }
.about-hero h1 { max-width: 14ch; }

.mission-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.mission-text p { font-size: 1.05rem; margin-bottom: 1.1rem; }
.mission-text a { color: var(--blue); font-weight: 500; border-bottom: 1px solid rgba(74,122,255,0.3); }
.mission-text a:hover { border-color: var(--blue); }

.mission-aside { display: flex; flex-direction: column; gap: 1rem; }

.stat-card {
  background: #fff;
  border: 1px solid rgba(28,26,46,0.07);
  border-radius: var(--r);
  padding: 1.75rem;
}

.stat-num {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-desc { font-size: 0.875rem; color: var(--muted); max-width: none; }

/* ── Team ────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.team-card {
  background: #fff;
  border: 1px solid rgba(28,26,46,0.07);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}

.team-card:hover {
  box-shadow: 0 8px 32px rgba(74, 122, 255, 0.1);
  transform: translateY(-2px);
}

.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cfdaff 0%, #a8bcff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.team-body h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.2rem; }

.role {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.team-body p { font-size: 0.9rem; max-width: none; }

/* ── Contact CTA ─────────────────────────────────── */
.contact-cta {
  background: var(--cream-2);
  border-radius: var(--r-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-cta h3 { color: var(--ink); margin-bottom: 0.35rem; }
.contact-cta p  { max-width: none; font-size: 0.95rem; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 3.5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.75rem;
}

.footer-brand img {
  height: 26px; width: auto;
  filter: invert(1) brightness(0.65);
}

.footer-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-variation-settings: "WONK" 1;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.01em;
  margin-top: 0.75rem;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; text-align: right; }
.footer-nav a { font-size: 0.875rem; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-heart { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-heart span { color: var(--warm); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 800px) {
  .hero-layout     { grid-template-columns: 1fr; }
  .hero-deco       { display: none; }
  .game-showcase-link { grid-template-columns: 1fr; }
  .mission-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .team-grid       { grid-template-columns: 1fr; }
  .media-grid      { grid-template-columns: 1fr 1fr; }
  .footer-top      { grid-template-columns: 1fr; }
  .footer-nav      { flex-direction: row; text-align: left; gap: 1.5rem; }
}

@media (max-width: 540px) {
  .container   { padding: 0 1.25rem; }
  section      { padding: 4rem 0; }
  .hero        { padding: 4rem 0 3rem; }
  .hero-title  { font-size: clamp(3rem, 14vw, 5rem); }
  .coming-soon { padding: 2.75rem 1.75rem; }
  .media-grid  { grid-template-columns: 1fr; }
  .contact-cta { flex-direction: column; }
  .nav-links   { gap: 1.5rem; }
}
