/* =============================================================
   REAL ESTATE · Gosu Upskill
   Industry landing page — navy base, gold accent, green trust
   ============================================================= */

/* -------------------------------------------------------------
   PALETTE OVERRIDES
   ------------------------------------------------------------- */
:root {
  --bg:          #000000;
  --bg-elev:     #0f1d33;
  --bg-elev-2:   #1a2a4a;
  --ink:         #f4f1ea;
  --ink-muted:   #8a9ab5;
  --ink-dim:     #5a6577;
  --line:        rgba(138, 154, 181, 0.12);
  --line-strong: rgba(138, 154, 181, 0.28);

  --amber:       #d4a843;
  --amber-soft:  #e8c76a;
  --accent:      #d4a843;
  --accent-soft: #e8c76a;
  --cyan:        #d4a843;

  --trust:       #2d8a6a;
  --trust-soft:  #1a3a2a;
  --trust-bg:    #0a1a14;

  /* Category palette — Two Families (warm = sales, cool = compliance) */
  --cat-negotiation: #e8c76a;
  --cat-pipeline:    #ffb05c;
  --cat-lifecycle:   #ff7e8a;
  --cat-cyber:       #5ae8ff;
  --cat-aml:         #39e58c;
  --cat-fairhousing: #4d9fff;
  --cat-conduct:     #a78bfa;

  /* Glass system */
  --glass-bg:     rgba(10, 20, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur:   14px;

  /* Spotlight pointer position (updated by JS) */
  --mx: 50vw;
  --my: 0vh;
}

::selection { background: var(--accent); color: #000; }

/* -------------------------------------------------------------
   HERO — ambient video background
   ------------------------------------------------------------- */
.re-hero {
  position: relative;
  z-index: 10;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--edge);
  overflow: hidden;
  background: var(--bg);
}
.re-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.re-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.re-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.7) 100%);
}
.re-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}
/* Fallback gradient when video is not available */
.re-hero-fallback {
  position: absolute;
  inset: 0;
  z-index: -1; /* sits beneath the hero video; shows only if the video fails */
  background:
    radial-gradient(ellipse 60% 60% at 30% 40%, rgba(15, 29, 51, 0.7), transparent 70%),
    radial-gradient(ellipse 50% 50% at 75% 60%, rgba(26, 42, 74, 0.5), transparent 65%),
    var(--bg);
}

.re-hero-content {
  position: relative;
  z-index: 3;
  max-width: 960px;
  padding-top: 5vh;
}
.re-hero .hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.re-hero .hero-word {
  display: block;
  overflow: hidden;
  padding-right: 0.06em;
  padding-bottom: 0.08em;
}
.re-hero .hero-word > span {
  display: inline-block;
  will-change: transform;
}
.re-hero .hero-word--accent > span {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  /* Unbounded has no italic face, so the browser fakes it by skewing. The last
     glyph's skew overhangs its box; pad right so background-clip:text still
     paints it instead of cutting it at a clean vertical edge. */
  padding-right: 0.2em;
}
.re-hero .hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 400;
  max-width: 48ch;
  margin-top: 1.8rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.re-hero .hero-meta {
  display: flex;
  gap: 1.6rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.re-hero .hero-meta-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.re-hero .hero-meta-item em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.7em;
}

/* Label dot */
.label-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* Stat chips (Problem section) */
.stat-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.stat-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--bg-elev-2);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out);
}
.stat-chip:hover { border-color: var(--accent); }
.stat-chip-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  white-space: nowrap;
  min-width: 55px;
  flex-shrink: 0;
  line-height: 1.4;
}
.stat-chip-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.stat-chip--text-only .stat-chip-text {
  font-style: italic;
  color: var(--ink-dim);
}

/* Contrast pairs (Shift section) */
.contrast-pairs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.contrast-pair {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}
.contrast-old {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: line-through;
}
.contrast-arrow {
  color: var(--accent);
  font-size: 0.9rem;
}
.contrast-new {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.contrast-new em {
  font-style: italic;
  color: var(--accent);
}

/* -------------------------------------------------------------
   BODY SECTIONS (natural scroll, stagger-in)
   ------------------------------------------------------------- */
.re-body {
  position: relative;
  z-index: 20;
  background: #04070d;
}

/* -------------------------------------------------------------
   COLOR ZONES — groups of sections sharing a background,
   with gradient transitions between zones
   ------------------------------------------------------------- */
.re-zone {
  position: relative;
  z-index: 1;
}
.re-zone > .re-section:first-child {
  border-top: none;
}

/* Light zone — warm white */
.re-zone--light {
  background: transparent;
  color: var(--ink);
}
/* Light-zone white overrides removed — the page is now one dark glass
   world (see the canvas/overlays section below). Section content inherits
   light ink on the transparent zones; per-section glass styling follows. */

/* Navy zone — deep navy */
.re-zone--navy {
  background: transparent;
  color: var(--ink);
}
.re-zone--navy .re-section { border-top-color: var(--bg-elev-2); }
/* .re-zone--navy game-card overrides removed — cards are glass now (see GAMES) */

/* Dark zone — pure black */
.re-zone--dark {
  background: transparent;
  color: var(--ink);
}

/* Centered contrast pairs (Shift section) */
.contrast-pairs--centered {
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
}
.contrast-pairs--centered .contrast-pair {
  justify-content: center;
}

/* Problem section — 2-column layout */
.re-problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.re-problem-copy {
  max-width: 48ch;
}
.re-section-body {
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.re-section-body:last-child { margin-bottom: 0; }

/* Shared section wrapper */
.re-section {
  padding: 12vh var(--edge);
  border-top: 1px solid var(--line);
}
.re-section-header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}
.re-section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 0.3rem;
}
.re-section-heading em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Unbounded has no italic face, so the browser fakes italics by skewing. The
   last glyph on each line overhangs its box and background-clip:text clips that
   tail. Pad the box right and clone the decoration per line so every line-end
   glyph (and the final character) stays painted. */
.re-section-heading em,
.re-cta-heading em,
.re-compliance .re-section-heading em {
  padding-right: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.re-section-subtitle {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

/* 003 — NUMBERS: stat grid */
.re-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-border);
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.38);
}
.re-stat {
  background: var(--glass-bg);
  padding: 2.4rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.re-stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
}
.re-stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.re-stat-suffix {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}
.re-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 22ch;
  margin: 0.9rem auto 0;
  line-height: 1.5;
}
.re-stat-context {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 26ch;
  margin: 0.55rem auto 0;
}
.re-stat-source {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s var(--ease-out);
}
.re-stat-source:hover { color: var(--accent); }

/* 004 — SKILLS: reuses offering-card pattern from base.css */
/* This page's skills cards drop the footer label, so restore the bottom padding */
.re-skills .offering-card { padding-bottom: 2.2rem; }
@media (max-width: 600px) { .re-skills .offering-card { padding-bottom: 1.8rem; } }
/* Track A = warm gold glass, Track B = cool cyan glass */
.re-skills .offering-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
}
.re-skills .offering-card[data-track="soft"] { --c: var(--cat-negotiation); }
.re-skills .offering-card[data-track="hard"] { --c: var(--cat-cyber); }
/* Telecom reuses this sheet with three tracks: lay them three-across and
   give each its own tinge (real-estate itself only runs soft/hard). */
.offerings-grid--three { grid-template-columns: repeat(3, 1fr); }
.re-skills .offering-card[data-track="customer"]   { --c: var(--cat-pipeline); }
.re-skills .offering-card[data-track="field"]      { --c: var(--cat-cyber); }
.re-skills .offering-card[data-track="compliance"] { --c: var(--cat-conduct); }
.re-skills .offering-card::before {
  background: radial-gradient(ellipse 80% 60% at 20% 10%, color-mix(in srgb, var(--c) 18%, transparent) 0%, transparent 60%);
  opacity: 0.9;
}
.re-skills .offering-card .offering-icon { color: var(--c); }
.re-skills .offering-card .offering-list li span { color: var(--c); }
.re-skills .offering-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--glass-border)); }

/* 005 — GAMES: glass cards tinted by category color */
.re-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
@property --glow {
  syntax: '<percentage>';
  initial-value: 22%;
  inherits: false;
}
.re-game-card {
  --c: var(--cat-negotiation); /* fallback; data-cat sets the real color */
  --glow: 22%;
  position: relative;
  /* one category glow rising from the bottom, shared across the whole body */
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--c) var(--glow), transparent), transparent 80%),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.38);
  transition: border-color 0.3s var(--ease-out), transform 0.15s var(--ease-out), --glow 0.4s var(--ease-out);
}
.re-game-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 45%, var(--glass-border));
  --glow: 30%;
}
.re-game-card.expanded {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  cursor: default;
  --glow: 34%;
}

.re-game-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1422;
}
.re-game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.re-game-card:hover .re-game-card-image img {
  transform: scale(1.03);
}
.re-game-card-badge {
  position: absolute;
  top: 0.6rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  color: var(--ink-muted);
}
.re-game-card-badge--code { left: 0.6rem; color: var(--c); }
.re-game-card-badge--cat {
  right: 0.6rem;
  background: var(--c);
  color: #04070d;
  font-weight: 700;
}

/* Glass info + detail areas, glowing in the category color */
.re-game-card-info,
.re-game-card-detail {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.re-game-card-info {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
}
/* (Single glow now lives on the card background and rises through the whole
   body, so info and detail share one continuous gradient.) */
.re-game-card-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.re-game-card-genre {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--c) 70%, var(--ink));
  text-transform: uppercase;
}
.re-game-card-expand-hint {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  transition: color 0.3s var(--ease-out);
}
.re-game-card:hover .re-game-card-expand-hint { color: var(--ink); }
.re-game-card.expanded .re-game-card-expand-hint { display: none; }

/* Expanded content — hidden by default */
.re-game-card-detail {
  max-height: 0;
  transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
  padding: 0 1.4rem;
}
.re-game-card.expanded .re-game-card-detail {
  max-height: 600px;
  padding: 0 1.4rem 1.6rem;
}
.re-game-card-desc {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.92;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}
.re-game-card-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.re-game-card-meta dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 65%, var(--ink-muted));
  margin-bottom: 0.3rem;
}
.re-game-card-meta dd {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  opacity: 0.88;
  line-height: 1.5;
  margin: 0;
}

/* Expanded card: image becomes taller */
.re-game-card.expanded .re-game-card-image {
  aspect-ratio: 21 / 9;
}
.re-game-card.expanded .re-game-card-title {
  font-size: 1.4rem;
}

/* 006 — COMPLIANCE: green zone */
.re-compliance {
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(45, 138, 106, 0.06), transparent 70%);
}
.re-compliance .section-label .label-dot,
.re-compliance .label-index {
  color: var(--trust);
}
.re-compliance .section-label .label-dot {
  background: var(--trust);
  box-shadow: 0 0 12px var(--trust);
}
.re-compliance .re-section-heading em {
  background: linear-gradient(180deg, var(--trust) 0%, #4aad8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.re-compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 1100px;
  margin: 0 auto;
}
.re-compliance-card {
  --c: var(--cat-fairhousing); /* fallback; data-theme sets the real color */
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--glass-border));
  border-radius: 12px;
  padding: 1.6rem 1.6rem 1.6rem 1.8rem;
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.34);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.re-compliance-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c);
}
.re-compliance-card:hover {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  transform: translateY(-3px);
}
.re-compliance-card--full {
  grid-column: 1 / -1;
}
.re-compliance-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.re-compliance-dot {
  width: 8px; height: 8px;
  background: var(--c);
  border-radius: 2px;
  flex-shrink: 0;
}
.re-compliance-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.re-compliance-card-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.re-compliance-covered {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--c) 75%, var(--ink));
}
.re-compliance-covered span {
  color: var(--ink);
  font-weight: 700;
}
.re-compliance-footnote {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* 007 — BUILT FOR: three tiles */
.re-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
/* Telecom's "Built For" has four personas: lay them 2×2 (real-estate runs three). */
.re-tiles-grid--four { grid-template-columns: repeat(2, 1fr); max-width: 1100px; }
.re-tile {
  background: var(--bg-elev);
  border: 1px solid var(--bg-elev-2);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.re-tile:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.re-tile-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.re-tile-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* 008 — PROCESS: override node bg to match navy elevation */
.re-process .process-node {
  background: var(--bg-elev);
}

/* 009 — CTA */
.re-cta-section {
  padding: 14vh var(--edge) 18vh;
  text-align: center;
  background:
    linear-gradient(180deg, var(--bg) 0%, #0a1218 100%);
  border-top: 1px solid var(--line);
}
.re-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.re-cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.re-cta-heading em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.re-cta-body {
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.re-cta-group {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer override: navy border */
.re-footer { border-top-color: var(--bg-elev-2); }

/* -------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .re-hero { height: 100svh; }
  .re-hero .hero-heading { font-size: clamp(2.2rem, 11vw, 4.5rem); }
  .re-hero .hero-tagline { font-size: 1rem; margin-top: 1.2rem; }
  .re-hero .hero-meta { gap: 0.8rem; }

  .re-problem-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contrast-pairs--centered .contrast-pair { justify-content: flex-start; }

  .re-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .re-stat { padding: 1.8rem 1rem; }

  .re-games-grid { grid-template-columns: 1fr; }
  .re-game-card.expanded { grid-column: 1; }
  .offerings-grid--three { grid-template-columns: 1fr; }

  .re-compliance-grid { grid-template-columns: 1fr; }
  .re-compliance-card--full { grid-column: 1; }

  .re-tiles-grid { grid-template-columns: 1fr; }
  .re-tiles-grid--four { grid-template-columns: 1fr; }

  .re-section { padding: 10vh var(--edge); }
}

@media (max-width: 480px) {
  .re-stats-grid { grid-template-columns: 1fr; }
  .re-stat { padding: 1.4rem 1rem; }

  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .cta-button { width: 100%; justify-content: center; }

  .re-cta-group { flex-direction: column; align-items: stretch; }
  .re-cta-group .cta-button { width: 100%; justify-content: center; }

  .re-game-card-meta { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   CATEGORY COLOR WIRING
   ------------------------------------------------------------- */
.re-game-card[data-cat="negotiation"] { --c: var(--cat-negotiation); }
.re-game-card[data-cat="pipeline"]    { --c: var(--cat-pipeline); }
.re-game-card[data-cat="lifecycle"]   { --c: var(--cat-lifecycle); }
.re-game-card[data-cat="cyber"]       { --c: var(--cat-cyber); }
.re-game-card[data-cat="aml"]         { --c: var(--cat-aml); }
.re-game-card[data-cat="fairhousing"] { --c: var(--cat-fairhousing); }
.re-game-card[data-cat="conduct"]     { --c: var(--cat-conduct); }

.re-compliance-card[data-theme="fairhousing"] { --c: var(--cat-fairhousing); }
.re-compliance-card[data-theme="conduct"]     { --c: var(--cat-conduct); }
.re-compliance-card[data-theme="aml"]         { --c: var(--cat-aml); }
.re-compliance-card[data-theme="cyber"]       { --c: var(--cat-cyber); }
.re-compliance-card[data-theme="ethics"]      { --c: var(--cat-negotiation); }

/* -------------------------------------------------------------
   DARK GLASS WORLD — canvas + overlays
   ------------------------------------------------------------- */
/* Gradient canvas — spans full document height, scrolls with content */
.re-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    #1a4078 0%,
    #0a1c38 12%,
    #05090f 26%,
    #0f3d2c 50%,
    #060a12 76%,
    #0c2346 100%);
}

/* Colored light blooms — fixed to viewport, slow drift, JS parallax */
.re-blooms {
  position: fixed;
  inset: -20% 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 18% 12%, rgba(212,168,67,0.16), transparent 60%),
    radial-gradient(45% 35% at 85% 50%, rgba(45,138,106,0.16), transparent 60%),
    radial-gradient(40% 30% at 12% 86%, rgba(90,232,255,0.10), transparent 60%);
  background-size: 140% 140%;
  background-position: 0% 0%;
  will-change: transform, background-position;
  animation: re-bloom-drift 32s ease-in-out infinite alternate;
}
@keyframes re-bloom-drift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

/* Cursor spotlight — off until JS enables it on fine-pointer devices.
   Sits above the section content and screen-blends so it reads as light. */
.re-spotlight {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(180px 180px at var(--mx) var(--my),
    rgba(150, 190, 255, 0.10), transparent 70%);
  transition: opacity 0.3s var(--ease-out);
}
body.re-spotlight-on .re-spotlight { opacity: 1; }

/* Film grain — fixed texture above content, below the fixed header */
.re-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------
   001 — PROBLEM chips + 007 — BUILT-FOR tiles (glass)
   ------------------------------------------------------------- */
.stat-chip {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.stat-chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-border)); }
.stat-chip-text { color: var(--ink); opacity: 0.82; }
.stat-chip--text-only {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.stat-chip--text-only .stat-chip-text { font-style: italic; color: var(--ink-muted); opacity: 1; }

.re-tile {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.34);
}
.re-tile:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-border)); transform: translateY(-4px); }
.re-tile-body { color: var(--ink); opacity: 0.85; }

/* -------------------------------------------------------------
   FLAIR — sheen, glow swell, edge light
   ------------------------------------------------------------- */
.re-game-card, .re-tile, .re-skills .offering-card { position: relative; }

/* Glass hover sheen — a diagonal flash that sweeps fully across the card and
   exits off the far edge while fading, so it never stops mid-card or blinks out */
.re-game-card::after,
.re-tile::after,
.re-skills .offering-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.20) 50%, transparent 64%);
  background-repeat: no-repeat;
  background-size: 250% 250%;
  background-position: 170% 0;
  opacity: 0;
  z-index: 2;
}
.re-game-card:hover::after,
.re-tile:hover::after,
.re-skills .offering-card:hover::after {
  animation: re-sheen 1.5s var(--ease-out);
}
@keyframes re-sheen {
  0%   { background-position: 170% 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { background-position: -70% 0; opacity: 0; }
}

/* Category glow swell is handled by the animated --glow custom property on
   .re-game-card:hover / .re-game-card.expanded (see the GAMES section). */

/* Animated edge light — only on the expanded card */
@property --edge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.re-game-card.expanded { border-color: transparent; }
.re-game-card.expanded::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--edge-angle, 0deg),
    color-mix(in srgb, var(--c) 85%, transparent) 0deg,
    transparent 70deg,
    color-mix(in srgb, var(--c) 85%, transparent) 180deg,
    transparent 250deg,
    color-mix(in srgb, var(--c) 85%, transparent) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: re-edge-spin 6s linear infinite;
}
@keyframes re-edge-spin {
  to { --edge-angle: 360deg; }
}

/* -------------------------------------------------------------
   MOTION + PERFORMANCE FALLBACKS
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .re-blooms { animation: none; }
  .re-game-card.expanded { animation: none; }
  .re-game-card::after,
  .re-tile::after,
  .re-skills .offering-card::after { display: none; }
  .re-spotlight { display: none; }
}

/* Mobile + browsers without backdrop-filter: solid translucent panels,
   no cursor spotlight (backdrop-filter is GPU-heavy at volume) */
@media (max-width: 900px) {
  .re-spotlight { display: none; }
  .re-game-card, .re-stat, .re-stats-grid, .re-compliance-card,
  .re-tile, .stat-chip, .re-skills .offering-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 16, 30, 0.86);
  }
  .stat-chip--text-only { background: transparent; }
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .re-game-card, .re-stat, .re-stats-grid, .re-compliance-card,
  .re-tile, .stat-chip, .re-skills .offering-card {
    background: rgba(8, 16, 30, 0.9);
  }
  .stat-chip--text-only { background: transparent; }
}

/* base.css section wrappers are opaque black — make them transparent on
   this page so the gradient canvas shows through (scoped to RE; home page
   keeps its own backgrounds) */
.re-skills.offerings-section,
.re-process.process-section {
  background: transparent;
}
