/* ============================================================
   Wield Interactive — Design System
   Palette pulled from the logo mark itself:
   pink #ED59A1 → purple #9B72B5 → blue #1E9AD6, ink #100F3D
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --pink: #ED59A1;
  --purple: #9B72B5;
  --blue: #1E9AD6;
  --ink: #100F3D;
  --ink-soft: #34335c;

  /* Neutrals */
  --paper: #F7F6FB;
  --paper-raised: #FFFFFF;
  --line: #E4E1F0;
  --muted: #6B6889;

  /* Gradient, used sparingly as the signature accent */
  --grad-brand: linear-gradient(100deg, var(--pink) 0%, var(--purple) 50%, var(--blue) 100%);

  /* Type */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Layout */
  --max-w: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }

p { margin: 0; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--pink);
  flex-shrink: 0;
}

/* ============================= Buttons ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,15,61,0.22); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,15,61,0.15); }

/* ============================= Header ============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 34px; width: auto; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.primary-nav a {
  position: relative;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 4px 0;
}

nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--pink);
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
  transform-origin: bottom center;
}

nav.primary-nav a:hover::after,
nav.primary-nav a.active::after {
  transform: translateX(-50%) scale(1);
}

nav.primary-nav a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 720px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px var(--edge) 30px;
    gap: 20px;
  }
  nav.primary-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ============================= Triangle motifs ============================= */

.tri {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 34px solid var(--pink);
  border-radius: 6px;
}

.tri-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.divider-tiles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 64px 0 8px;
}

.divider-tiles span {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid var(--purple);
  border-radius: 3px;
  opacity: 0.55;
}
.divider-tiles span:nth-child(1) { border-bottom-color: var(--pink); }
.divider-tiles span:nth-child(2) { border-bottom-color: var(--purple); }
.divider-tiles span:nth-child(3) { border-bottom-color: var(--blue); }

/* ============================= Hero ============================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  margin-top: 18px;
}

.hero .lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-formation {
  position: relative;
  height: 420px;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-formation { height: 260px; order: -1; }
}

/* Formation: triangle tiles assembling into a W, echoing the mark */
.formation-tile {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 52px solid var(--purple);
  border-radius: 8px;
  opacity: 0;
  animation: settle 0.7s cubic-bezier(.2,.8,.2,1) forwards;
  filter: drop-shadow(0 10px 18px rgba(16,15,61,0.12));
}

@keyframes settle {
  from { opacity: 0; transform: translateY(-26px) scale(0.7) rotate(-8deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .formation-tile { animation: none; opacity: 1; transform: none; }
}

/* ============================= Sections ============================= */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

/* -------- Mission / About strip -------- */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mission-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}

.mission-card .tri-mark {
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid var(--pink);
  border-radius: 4px;
  margin-bottom: 18px;
}
.mission-card:nth-child(2) .tri-mark { border-bottom-color: var(--purple); }
.mission-card:nth-child(3) .tri-mark { border-bottom-color: var(--blue); }

.mission-card h3 { font-size: 19px; }
.mission-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

@media (max-width: 800px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* -------- Team -------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.team-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: var(--grad-brand);
}

.team-card h3 { font-size: 19px; }
.team-card .role {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--purple);
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.team-card p.bio { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* -------- Games teaser (home) -------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: #fff;
  background: linear-gradient(160deg, #2a2856 0%, #1b1a3d 60%, #100F3D 100%);
  transition: transform 0.25s ease;
}
.game-card:hover { transform: translateY(-4px); }

.game-card.tfc2 {
  background:
    linear-gradient(180deg, rgba(16,15,61,0.15) 0%, rgba(16,15,61,0.85) 100%),
    linear-gradient(140deg, var(--blue), var(--purple));
}
.game-card.tfc1 {
  background:
    linear-gradient(180deg, rgba(16,15,61,0.15) 0%, rgba(16,15,61,0.85) 100%),
    linear-gradient(140deg, var(--pink), var(--purple));
}

.game-card .tag {
  position: absolute;
  top: 24px;
  left: 32px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  padding: 6px 12px;
  border-radius: 100px;
}

.game-card h3 {
  font-size: 26px;
  color: #fff;
}
.game-card p { color: rgba(255,255,255,0.82); margin-top: 8px; font-size: 15px; max-width: 40ch; }
.game-card .arrow { margin-top: 18px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 800px) {
  .games-grid { grid-template-columns: 1fr; }
}

/* -------- Contact -------- */

.contact-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px var(--edge);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.contact-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.contact-band p { color: rgba(255,255,255,0.72); margin-top: 14px; font-size: 16.5px; max-width: 42ch; }

.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

@media (max-width: 800px) {
  .contact-band { grid-template-columns: 1fr; }
  .contact-actions { align-items: stretch; }
  .contact-actions .btn { justify-content: center; }
}

/* ============================= Footer ============================= */

footer {
  padding: 40px 0 56px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
footer .brand img { height: 22px; }
footer .fine-print { font-size: 13.5px; color: var(--muted); }
footer nav { display: flex; gap: 22px; }
footer nav a { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
footer nav a:hover { color: var(--pink); }

/* ============================= Game detail pages ============================= */

.game-hero {
  padding: 64px 0 48px;
  position: relative;
}

.game-hero .tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(155,114,181,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.game-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 16ch;
}

.game-hero .lede {
  margin-top: 20px;
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 56ch;
}

.game-hero .cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.shot-frame {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.shot-frame.tfc2 { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.shot-frame.tfc1 { background: linear-gradient(135deg, var(--pink), var(--purple)); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.feature-card h3 { font-size: 18px; }
.feature-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--pink); }

/* ============================= Rewrite additions ============================= */

.hero-mark img { width: min(100%, 380px); margin: 0 auto; }
@media (max-width: 900px) { .hero-mark { display: none; } }

.plain-h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 24px; }

.wrap.prose > * { max-width: 68ch; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 16px; }

.games-list { display: grid; gap: 40px; }
.game-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.game-row video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--ink); border-radius: var(--radius-sm); display: block; }
.game-row h3 { font-size: 24px; margin-top: 8px; }
.game-row p { margin-top: 12px; color: var(--ink-soft); }
.game-row .status { font-size: 14px; font-weight: 700; color: var(--purple); }
.game-row .arrow { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; }
.game-row:hover .arrow { color: var(--pink); }
@media (max-width: 800px) { .game-row { grid-template-columns: 1fr; gap: 16px; } }

.team-note { margin-top: 22px; color: var(--ink-soft); }

.game-hero .lede.second { margin-top: 12px; }
.game-hero h1 { max-width: 20ch; }
.meta-line { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

.trailer { margin-top: 40px; aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots.two { grid-template-columns: repeat(2, 1fr); }
.shots figure { margin: 0; }
.shots video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--ink); border-radius: var(--radius-sm); display: block; }
.shots figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 800px) { .shots, .shots.two { grid-template-columns: 1fr; } }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

img.avatar { width: 104px; height: 104px; object-fit: cover; padding: 0; }
@media (max-width: 640px) { img.avatar { width: 80px; height: 80px; } }
