/* =============================================================
   PROJECT FIVE LTD — Main Stylesheet
   Brand: #E5232D (Primary Red) | #66788A (Slate) | #1A1A2E (Charcoal)
   ============================================================= */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --red:        #E5232D;
  --red-dark:   #c01b24;
  --slate:      #66788A;
  --slate-dark: #4f5f6e;
  --charcoal:   #1A1A2E;
  --charcoal-soft: #2d2d3e;
  --white:      #ffffff;
  --off-white:  #f8f8f8;
  --light-grey: #f0f1f3;
  --mid-grey:   #e0e2e6;
  --text-body:  #3a3a4a;
  --text-muted: #66788A;

  --font-head:  'Coolvetica', 'Barlow Condensed', 'Oswald', Arial Narrow, sans-serif;
  --font-body:  'Inter', 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --max-w:      1200px;
  --radius:     6px;
  --radius-lg:  12px;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

ul, ol { list-style: none; }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;500;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2em; color: var(--text-body); }
p:last-child { margin-bottom: 0; }

.text-red   { color: var(--red); }
.text-slate { color: var(--slate); }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-upper { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 600; }

/* ── LAYOUT ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-lg) 0; }
.section--lg { padding: var(--space-xl) 0; }
.section--sm { padding: var(--space-md) 0; }
.section--dark { background: var(--charcoal); }
.section--slate { background: var(--slate); }
.section--light { background: var(--off-white); }
.section--red { background: var(--red); }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }
.flex-gap { gap: var(--space-sm); }
.flex-wrap { flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229,35,45,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-slate {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}
.btn-slate:hover {
  background: var(--slate-dark);
  border-color: var(--slate-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.875rem; }

/* ── HEADER / NAV ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--mid-grey);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--space-md);
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo:hover { opacity: 0.85; }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 0.25rem; }

.primary-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--red);
  background: rgba(229,35,45,0.06);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  padding: 0.6rem 1.2rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 7rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

/* Primary dark overlay — heavier on left for text legibility, reveals photo right */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(10,10,20,0.88) 0%,
      rgba(10,10,20,0.72) 45%,
      rgba(10,10,20,0.35) 75%,
      rgba(10,10,20,0.15) 100%
    ),
    linear-gradient(180deg,
      rgba(10,10,20,0.3) 0%,
      transparent 30%,
      transparent 65%,
      rgba(10,10,20,0.55) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* Brand red bottom line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(229,35,45,0.2), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem;
  background: rgba(229,35,45,0.12);
  border-radius: 3px;
  border-left: 3px solid var(--red);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 .accent { color: var(--red); }

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badge {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-lg);
  width: 220px;
  opacity: 0.08;
  z-index: 1;
}

/* ── INTRO / VALUE STRIP ───────────────────────────────────── */
.value-strip {
  background: var(--red);
  padding: 1.2rem 0;
}

.value-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.value-item svg { flex-shrink: 0; }
.value-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.3); }

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-header { margin-bottom: var(--space-md); }
.section-header.text-center { text-align: center; }

.section-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

.section-header.text-center .section-lead { margin: 0 auto; }

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 1rem 0 1.5rem;
  border-radius: 2px;
}

.section-header.text-center .section-divider { margin: 1rem auto 1.5rem; }

/* ── SERVICE CARDS ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(229,35,45,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--red);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--charcoal); }
.service-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}
.service-link:hover { gap: 0.65rem; }

/* ── PILLAR FEATURE BLOCK ───────────────────────────────────── */
.pillar-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.pillar-block.reverse { direction: rtl; }
.pillar-block.reverse > * { direction: ltr; }

.pillar-visual {
  background: var(--light-grey);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.pillar-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Sharp product image — transparent PNG on neutral bg */
.pillar-visual.sharp-visual {
  background: linear-gradient(145deg, #f4f4f6 0%, #e8e8ec 100%);
}
.sharp-product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 1.5rem;
}

.pillar-visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-grey), var(--mid-grey));
  color: var(--slate);
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pillar-content { padding: 1rem 0; }
.pillar-content .section-eyebrow { margin-bottom: 0.5rem; }
.pillar-content h2 { margin-bottom: 1rem; }
.pillar-content p { margin-bottom: 1.5rem; }

.feature-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text-body);
}

.feature-check {
  width: 20px;
  height: 20px;
  background: rgba(229,35,45,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--charcoal);
  padding: var(--space-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--charcoal);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background var(--transition);
}

.stat-item:hover { background: var(--charcoal-soft); }

.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── TESTIMONIAL / QUOTE ────────────────────────────────────── */
.testimonial-block {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border-left: 4px solid var(--red);
  position: relative;
}

.testimonial-quote {
  font-size: 1.2rem;
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author { font-weight: 600; color: var(--slate); font-size: 0.88rem; }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal) 0%, #0f0f1e 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-lg) 0;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,35,45,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── ABOUT PAGE ─────────────────────────────────────────────── */
.page-hero {
  background: var(--charcoal);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .hero-lead { margin-bottom: 0; }

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.value-card {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.value-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(229,35,45,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--red);
}

.value-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ── SERVICES PAGE ──────────────────────────────────────────── */
.service-detail {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--mid-grey);
}

.service-detail:last-child { border-bottom: none; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-number {
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(229,35,45,0.08);
  line-height: 1;
  font-weight: 700;
  margin-bottom: -1rem;
}

/* ── RIRINUI PAGE ───────────────────────────────────────────── */
.ririnui-hero {
  background-color: #05050f;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.ririnui-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(5,5,15,0.92) 0%,
      rgba(5,5,15,0.75) 40%,
      rgba(5,5,15,0.45) 70%,
      rgba(5,5,15,0.25) 100%
    ),
    linear-gradient(180deg,
      rgba(5,5,15,0.4) 0%,
      transparent 25%,
      transparent 60%,
      rgba(5,5,15,0.7) 100%
    );
  pointer-events: none;
}

/* scan-line overlay */
.ririnui-hero__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  z-index: 0;
}

/* subtle dot-grid overlay */
.ririnui-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(229,35,45,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.ririnui-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.ririnui-hero__powered {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.ririnui-hero__powered strong { color: rgba(255,255,255,0.55); }

/* Arena logo overlay — right side of hero */
.ririnui-hero__logo {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 28vw, 420px);
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
  /* invert so the red lines glow white against the dark background */
  filter: invert(1) brightness(2) drop-shadow(0 0 24px rgba(229,35,45,0.7));
}
@media (max-width: 768px) {
  .ririnui-hero__logo {
    width: 160px;
    opacity: 0.1;
    right: 2%;
  }
}

/* ── RIRINUI STATS BAR ──────────────────────────────────────────*/
.ririnui-stats-bar {
  background: var(--red);
  padding: 1.5rem 0;
}
.ririnui-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.ririnui-stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.ririnui-stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.25rem;
}

/* ── ARENA OFFER CARDS ─────────────────────────────────────── */
.game-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}
.game-categories .game-cat-card {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 768px) {
  .game-categories { flex-wrap: wrap; }
  .game-categories .game-cat-card { flex: 1 1 calc(50% - 0.5rem); }
}
.game-cat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  transition: all var(--transition);
}
.game-cat-card:hover {
  background: rgba(229,35,45,0.15);
  border-color: var(--red);
  transform: translateY(-3px);
}
.game-cat-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.game-cat-card h4 { color: var(--white); font-size: 1rem; }
.game-cat-card p  { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin: 0.25rem 0 0; }

/* ── GAME TILES ─────────────────────────────────────────────── */
.ririnui-games-section { padding-bottom: 5rem; }

.game-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.game-tile {
  position: relative;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: hidden;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.game-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

.game-tile__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.game-tile:hover .game-tile__glow { opacity: 1; }

.game-tile__genre {
  position: relative; z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.game-tile__title {
  position: relative; z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.2rem;
  line-height: 1.1;
}
.game-tile__sub {
  position: relative; z-index: 1;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.game-tile__link {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
}
.game-tile__link:hover { border-color: var(--white); }

/* individual game color schemes */
.game-tile--cod {
  background: linear-gradient(145deg, #0a0a0a 0%, #1c1005 100%);
  border: 1px solid rgba(200,160,40,0.3);
}
.game-tile--cod .game-tile__glow { background: radial-gradient(circle at 30% 70%, rgba(200,160,40,0.2), transparent 60%); }
.game-tile--cod .game-tile__title { color: #d4a800; }

.game-tile--fifa {
  background: linear-gradient(145deg, #03111f 0%, #06264f 100%);
  border: 1px solid rgba(30,100,220,0.4);
}
.game-tile--fifa .game-tile__glow { background: radial-gradient(circle at 50% 80%, rgba(30,120,255,0.25), transparent 60%); }

.game-tile--fortnite {
  background: linear-gradient(145deg, #0a0020 0%, #1a0060 100%);
  border: 1px solid rgba(100,50,255,0.4);
}
.game-tile--fortnite .game-tile__glow { background: radial-gradient(circle at 60% 60%, rgba(120,60,255,0.3), transparent 60%); }
.game-tile--fortnite .game-tile__title { color: #9f6fff; }

.game-tile--apex {
  background: linear-gradient(145deg, #0f0a00 0%, #2a1000 100%);
  border: 1px solid rgba(200,80,0,0.4);
}
.game-tile--apex .game-tile__glow { background: radial-gradient(circle at 40% 70%, rgba(220,80,0,0.25), transparent 60%); }
.game-tile--apex .game-tile__title { color: #e05010; }

.game-tile--gta {
  background: linear-gradient(145deg, #001a0a 0%, #003020 100%);
  border: 1px solid rgba(0,180,80,0.35);
}
.game-tile--gta .game-tile__glow { background: radial-gradient(circle at 50% 60%, rgba(0,200,80,0.2), transparent 60%); }
.game-tile--gta .game-tile__title { color: #00c850; }

.game-tile--mk {
  background: linear-gradient(145deg, #1a0000 0%, #2a0505 100%);
  border: 1px solid rgba(229,35,45,0.5);
}
.game-tile--mk .game-tile__glow { background: radial-gradient(circle at 30% 60%, rgba(229,35,45,0.3), transparent 60%); }
.game-tile--mk .game-tile__title { color: var(--red); }

.game-tile--cs2 {
  background: linear-gradient(145deg, #050d15 0%, #0a1e2a 100%);
  border: 1px solid rgba(80,160,220,0.4);
}
.game-tile--cs2 .game-tile__glow { background: radial-gradient(circle at 60% 70%, rgba(80,160,220,0.2), transparent 60%); }
.game-tile--cs2 .game-tile__title { color: #60b8e8; }

.game-tile--more {
  background: linear-gradient(145deg, #0d0d1a 0%, #1a1a2e 100%);
  border: 1px dashed rgba(229,35,45,0.4);
  justify-content: center;
  text-align: center;
}
.game-tile--more .game-tile__genre { text-align: center; }

/* ── HOMEPAGE RIRINUI TEASER PHOTO ──────────────────────────── */
.pillar-visual.ririnui-teaser-visual {
  position: relative;
  overflow: hidden;
  background: #0d0d1a;
}
.ririnui-teaser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.85);
}
.ririnui-teaser-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(229,35,45,0.18) 0%, transparent 50%, rgba(10,10,30,0.45) 100%);
  pointer-events: none;
}

/* ── ARENA PHOTO (real photo + neon light effect) ───────────── */
.arena-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.arena-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  min-height: 420px;
  filter: brightness(0.82) saturate(1.1);
}

/* subtle dark-left vignette */
.arena-photo__red {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(229,35,45,0.22) 0%, transparent 50%),
    linear-gradient(160deg, rgba(10,10,20,0.35) 0%, transparent 60%);
  pointer-events: none;
}

/* subtle warm right-side glow */
.arena-photo__cyan {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 20%, rgba(229,35,45,0.12) 0%, transparent 45%);
  pointer-events: none;
}

/* vignette to frame the photo */
.arena-photo__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,15,0.35) 0%, transparent 30%, transparent 65%, rgba(5,5,15,0.55) 100%),
    linear-gradient(90deg, rgba(5,5,15,0.2) 0%, transparent 20%, transparent 80%, rgba(5,5,15,0.2) 100%);
  pointer-events: none;
}

/* badge overlay */
.arena-photo__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.arena-photo__badge span:first-child {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.arena-photo__badge span:last-child {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 0 12px rgba(229,35,45,0.8);
}

/* ── GGCIRCUIT PORTAL EMBED ─────────────────────────────────── */
.ririnui-portal-section { padding: 5rem 0; }

/* intro row: heading left, steps right */
.ririnui-portal-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: 2.5rem;
}

.ririnui-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* horizontal 4-column variant for the intro row */
.ririnui-steps--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-self: center;
}
.ririnui-steps--row .ririnui-step {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 160px;
}

.ririnui-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.ririnui-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
}
.ririnui-step p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin: 0.2rem 0 0;
}

/* full-width portal frame */
.ririnui-portal-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(229,35,45,0.35);
  box-shadow: 0 0 80px rgba(229,35,45,0.18);
}
.ririnui-portal-frame--full iframe {
  height: 680px;
}
.ririnui-portal-frame__label {
  background: #0d0d1a;
  border-bottom: 1px solid rgba(229,35,45,0.25);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.ririnui-portal-frame__label span:first-child {
  font-weight: 700;
  color: var(--red);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.ririnui-portal-frame__label span:nth-child(2) {
  flex: 1;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}
.ririnui-portal-frame__label a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.72rem;
}
.ririnui-portal-frame__label a:hover { color: var(--red); }
.ririnui-portal-frame iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: none;
  background: #0d0d1a;
}

@media (max-width: 1024px) {
  .ririnui-portal-intro { grid-template-columns: 1fr; }
  .ririnui-portal-frame--full iframe { height: 520px; }
}
@media (max-width: 768px) {
  .ririnui-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ririnui-portal-frame--full iframe { height: 400px; }
  .ririnui-portal-frame iframe { height: 400px; }
}

/* ── CONTACT PAGE ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg);
}

.contact-info { padding: 0.5rem 0; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(229,35,45,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.contact-item-text h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-item-text a, .contact-item-text p { color: var(--charcoal); font-weight: 500; margin: 0; }

/* Contact Form */
.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--mid-grey);
}

.contact-form-wrap h3 { margin-bottom: 1.5rem; }

/* WP Contact Form 7 override */
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 1.25rem; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,35,45,0.1); }

.wpcf7 textarea { min-height: 130px; resize: vertical; }

.wpcf7 input[type="submit"] {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { max-width: 300px; }

.footer-logo { height: 44px; width: auto; margin-bottom: 1rem; }

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.social-links { display: flex; gap: 0.75rem; }

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.footer-contact-item a { color: rgba(255,255,255,0.55); }
.footer-contact-item a:hover { color: var(--white); }

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

.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-legal a:hover { color: var(--white); }

/* ── BREADCRUMBS ────────────────────────────────────────────── */
.breadcrumb {
  padding: 0.9rem 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--mid-grey);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--mid-grey); }

/* ── UTILITY ────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar-block { grid-template-columns: 1fr; gap: var(--space-md); }
  .pillar-block.reverse { direction: ltr; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-grid.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 6rem var(--space-md) var(--space-md);
    gap: 0.25rem;
    overflow-y: auto;
  }

  .primary-nav.is-open a {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
  }

  .hero { min-height: 80vh; padding: 5rem 0 4rem; }
  .hero-badge { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .value-strip-inner { flex-direction: column; gap: 1rem; }
  .value-divider { display: none; }

  .cta-banner-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; }
  .btn-lg, .btn { width: 100%; justify-content: center; }

  .contact-form-wrap { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .about-values { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2.2rem; }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cta-banner { display: none; }
}
