/* =========================================================================
   Gamezy — site stylesheet
   Palette: deep aubergine + warm casino gold on cream
   Type:    Fraunces (display, italic accents) + Manrope (body)
   ========================================================================= */

:root {
  /* Brand */
  --brand:        #3D2761;
  --brand-dark:   #251635;
  --brand-light:  #5A3F84;
  --brand-deep:   #150A26;

  --accent:        #D4A24C;
  --accent-warm:   #B5862F;
  --accent-soft:   #E8C77A;
  --accent-crimson:#9B2D3D;

  --bg:           #FFFFFF;
  --bg-card:      #FFFFFF;
  --bg-elevated:  #FFFAF0;
  --bg-panel:     #1F1532;
  --bg-panel-2:   #281B43;
  --surface-soft: #F7F2E5;  /* warm light — sub-cards, list backgrounds */

  /* Card design — lavender / purple / magenta system */
  --card-fill:         #734F9F;             /* deep purple — featured tile fill */
  --card-fill-soft:    rgba(179, 118, 170, 0.34);  /* #B376AA57 — soft lavender */
  --card-fill-soft-2:  rgba(179, 118, 170, 0.18);  /* hover ghost */
  --card-accent:       #D14C99;             /* magenta — heading & CTA */
  --card-accent-warm:  #B43A82;             /* hover */
  --card-text-on-fill: rgba(255, 255, 255, 0.92);
  --card-border:       rgba(115, 79, 159, 0.18);

  --text:         #1A1525;
  --text-muted:   #4A4258;
  --text-dim:     #7A7287;
  --text-on-dark: #FBF1E1;

  --border:        #E8E1D3;
  --border-strong: #C9C0AB;
  --border-soft:   #F3EDE0;

  /* Type */
  --font-body:    'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --card-radius: 18px;

  /* Shadow */
  --shadow-soft:        0 4px 18px -10px rgba(37, 22, 53, 0.20);
  --shadow-card:        0 10px 24px -16px rgba(37, 22, 53, 0.32),
                        0 2px 6px -3px rgba(212, 162, 76, 0.18);
  --shadow-card-hover:  0 22px 40px -20px rgba(37, 22, 53, 0.44),
                        0 4px 10px -3px rgba(212, 162, 76, 0.30);
  --shadow-cta:         0 14px 28px -12px rgba(155, 45, 61, 0.55),
                        0 4px 10px -3px rgba(212, 162, 76, 0.45);

  /* Layout */
  --container:      1200px;
  --container-wide: 1320px;
  --header-h:       4rem;   /* compact single-row header */
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 92% -10%, rgba(212, 162, 76, 0.07), transparent 60%),
    radial-gradient(800px 500px at -10% 18%, rgba(61, 39, 97, 0.05), transparent 60%);
  background-attachment: fixed;
  counter-reset: img-div;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-warm); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--brand-dark);
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.55rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1.05em; }
li { margin-bottom: .45em; }

/* Single shared content width — every bounded element sits between the same
   two vertical edges as the header logo+nav+CTA row. 1200px max, 1.5rem inset. */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
/* Back-compat alias — same edges as .container */
.container--wide { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-warm);
  margin-bottom: 0.85rem;
}

.highlight {
  font-family: var(--font-heading);
  font-style: italic;
  position: relative;
  color: var(--brand);
  white-space: nowrap;
}
.highlight::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 0.05em;
  height: 0.42em;
  background: linear-gradient(90deg, rgba(212, 162, 76, 0.45), rgba(232, 199, 122, 0.65));
  border-radius: 2px;
  z-index: -1;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.55rem;
  border-radius: var(--r-pill);
  font: 600 0.96rem/1 var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-crimson) 0%, var(--accent-warm) 65%, var(--accent) 100%);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-primary::after {
  content: "→";
  margin-left: .15rem;
  transition: transform .18s ease;
}
.btn-primary:hover::after { transform: translateX(3px); }

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

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(251, 241, 225, 0.35);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* ============================================================
   HEADER — single-row, compact, dark
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-panel);
  color: var(--text-on-dark);
  height: var(--header-h);
  transition: background .22s ease, box-shadow .22s ease;
}
.site-header::after {
  /* Thin gold under-line — replaces the heavier border */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 162, 76, 0.25) 25%,
    rgba(212, 162, 76, 0.55) 50%,
    rgba(212, 162, 76, 0.25) 75%,
    transparent 100%);
  pointer-events: none;
}
.site-header.is-scrolled {
  background: rgba(31, 21, 50, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 22px -16px rgba(0, 0, 0, 0.6);
}

.header-main {
  height: 100%;
}
.header-main__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 100%;
  text-decoration: none;
}
.brand-logo img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}
.brand-logo:hover img { transform: translateY(-1px); }

.primary-nav {
  position: relative;
  justify-self: center;
  display: inline-flex;
  gap: 1.7rem;
  align-items: center;
}
.primary-nav a {
  color: rgba(251, 241, 225, 0.82);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: .35rem 0;
  text-decoration: none;
  transition: color .18s ease;
}
.primary-nav a:hover { color: var(--accent-soft); }
.primary-nav a.active { color: var(--accent); }

.nav-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 2px;
  transition: transform .32s cubic-bezier(.6,.1,.25,1), width .32s cubic-bezier(.6,.1,.25,1), opacity .2s;
  pointer-events: none;
  opacity: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.header-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: rgba(251, 241, 225, 0.06);
  border: 1px solid rgba(212, 162, 76, 0.20);
  color: rgba(251, 241, 225, 0.78);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.header-trust-pill .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(212, 162, 76, 0.9);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 162, 76, 0.9); }
  70%  { box-shadow: 0 0 0 7px rgba(212, 162, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 162, 76, 0); }
}

.header-cta .btn-primary {
  padding: .55rem 1.1rem;
  font-size: 0.86rem;
}

.burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(251, 241, 225, 0.22);
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  position: relative;
  transition: transform .25s ease, background .2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform .25s ease, top .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }

body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .header-trust-pill { display: none; }
}
@media (max-width: 900px) {
  .primary-nav, .header-cta .btn-primary { display: none; }
  .burger { display: inline-flex; }
  .header-main__inner { grid-template-columns: auto 1fr auto; }
}

/* Full-screen mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(21, 10, 38, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 199;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 5rem 1.5rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
body.nav-open .mobile-nav { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); }
.mobile-nav__cta { margin-top: 1rem; }

/* ============================================================
   HERO — asymmetric editorial
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.2rem, 4vw, 3.6rem) 0 clamp(3rem, 5vw, 4.4rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.10;
  filter: saturate(0.7) brightness(1.05);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(212, 162, 76, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 80%, rgba(61, 39, 97, 0.12), transparent 60%);
  z-index: -1;
}
.hero-inner {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-content { max-width: 36rem; }
.hero h1 { margin-top: .35em; }
.hero .lead { margin-top: 1rem; }
.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.hero-proof {
  margin-top: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .55rem .85rem .55rem .65rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
}
.hero-proof .stack { display: inline-flex; }
.hero-proof .chip {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -10px;
}
.hero-proof .chip:nth-child(1) { background: linear-gradient(135deg, var(--accent), var(--accent-warm)); margin-left: 0; }
.hero-proof .chip:nth-child(2) { background: linear-gradient(135deg, var(--brand-light), var(--brand)); }
.hero-proof .chip:nth-child(3) { background: linear-gradient(135deg, var(--accent-crimson), #d44a5e); }
.hero-proof .text { font-size: 0.88rem; color: var(--text-muted); }
.hero-proof .text strong { color: var(--text); font-weight: 700; }

/* Hero art (right side) */
.hero-art {
  position: relative;
  height: 24rem;
  min-height: 380px;
}
.hero-art-spark {
  position: absolute;
  font-family: var(--font-heading);
  color: var(--accent);
  opacity: 0.8;
  filter: drop-shadow(0 2px 6px rgba(212, 162, 76, .35));
  font-size: 1.4rem;
}
.hero-art-spark--a { top: 8%;  left: 24%; font-size: 1.8rem; }
.hero-art-spark--b { top: 60%; left: 8%;  font-size: 1.2rem; opacity: .6; }
.hero-art-spark--c { top: 20%; right: 6%; font-size: 1.6rem; }

.hero-art-card {
  position: absolute;
  width: 118px;
  height: 166px;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #ffffff 0%, #f6ecd6 100%);
  border: 1px solid rgba(115, 79, 159, 0.10);
  box-shadow:
    0 28px 46px -22px rgba(37, 22, 53, 0.45),
    0 6px 14px -6px rgba(115, 79, 159, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  transition: transform .4s cubic-bezier(.6,.1,.25,1), box-shadow .3s ease;
}
.hero-art-card::before,
.hero-art-card::after {
  content: attr(data-corner);
  position: absolute;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  color: inherit;
  line-height: 1;
}
.hero-art-card::before { top: .55rem; left: .65rem; }
.hero-art-card::after  { bottom: .55rem; right: .65rem; transform: rotate(180deg); }

/* Tightened cluster — sits in the middle of the right column, no clipping. */
.hero-art-card--c1 {
  top: 22%; left: 6%;
  transform: rotate(-14deg); z-index: 1;
}
.hero-art-card--c2 {
  top: 8%; left: 30%;
  transform: rotate(-2deg); z-index: 3;
}
.hero-art-card--c3 {
  top: 24%; left: 56%;
  transform: rotate(12deg); z-index: 2;
  color: var(--accent-crimson);
}
.hero-art-card:hover {
  transform: translateY(-6px) rotate(0deg);
  z-index: 5;
  box-shadow:
    0 36px 54px -22px rgba(37, 22, 53, 0.55),
    0 8px 18px -6px rgba(209, 76, 153, 0.35);
}

/* Welcome chip — placed below the card cluster, no overlap with Q. */
.hero-art-chip {
  position: absolute;
  bottom: 4%; right: 6%;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--accent-warm) 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  text-align: center;
  border: 4px solid var(--bg-card);
  box-shadow: 0 16px 32px -14px rgba(155, 45, 61, 0.45);
  transform: rotate(-8deg);
  z-index: 4;
}
.hero-art-chip .num { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 600; line-height: 1; }
.hero-art-chip .lbl { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: .25rem; max-width: 80%; }

@media (max-width: 1100px) {
  .hero-art-card { width: 108px; height: 152px; font-size: 3.2rem; }
  .hero-art-chip { width: 104px; height: 104px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 18rem; min-height: 280px; max-width: 420px; margin: 0 auto; }
  .hero-art-card { width: 102px; height: 144px; font-size: 3rem; }
  .hero-art-card--c1 { top: 22%; left: 8%; }
  .hero-art-card--c2 { top: 8%;  left: 33%; }
  .hero-art-card--c3 { top: 22%; left: 58%; }
  .hero-art-chip { width: 100px; height: 100px; bottom: 6%; right: 4%; }
}

/* ============================================================
   HERO BRIDGE — stat strip
   ============================================================ */
.hero-bridge {
  position: relative;
  z-index: 5;
  margin-top: -2.6rem;
  margin-bottom: 0.6rem;
}
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.hero-stats-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-crimson));
  z-index: 1;
}
.stat-tile {
  background: var(--bg-card);
  padding: 1.5rem 1.25rem 1.4rem;
  text-align: center;
  position: relative;
}
.stat-tile + .stat-tile { box-shadow: -1px 0 0 var(--border); }
.stat-tile .num {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.05;
  display: block;
}
.stat-tile .num em {
  font-style: italic;
  color: var(--accent-warm);
}
.stat-tile .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-top: .55rem;
  display: block;
  font-weight: 600;
}

@media (max-width: 700px) {
  .hero-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tile + .stat-tile { box-shadow: none; }
  .stat-tile { border-top: 1px solid var(--border); }
  .stat-tile:nth-child(1), .stat-tile:nth-child(2) { border-top: none; }
  .stat-tile:nth-child(odd) { box-shadow: 1px 0 0 var(--border); }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  padding: clamp(1.6rem, 3vw, 2.6rem) 0 clamp(1.4rem, 2vw, 2rem);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-warm) 60%, transparent);
  z-index: 1;
}

/* Variant: page-hero with editorial banner image behind the text. */
.page-hero--image {
  padding-top:    clamp(2.6rem, 5vw, 4.4rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
  background: var(--card-fill);  /* purple base behind the image */
}
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.page-hero--image .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) brightness(0.85);
}
.page-hero--image .page-hero__bg::after {
  /* readability scrim — keep text legible on any image */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(31, 21, 50, 0.85) 0%,
    rgba(115, 79, 159, 0.55) 45%,
    rgba(115, 79, 159, 0.25) 100%);
}
.page-hero--image .breadcrumb,
.page-hero--image .breadcrumb a,
.page-hero--image .page-meta,
.page-hero--image .page-meta-author { color: rgba(251, 241, 225, 0.78); }
.page-hero--image .breadcrumb a:hover { color: var(--accent-soft); }
.page-hero--image .breadcrumb__sep { color: rgba(251, 241, 225, 0.35); }
.page-hero--image h1 { color: #ffffff; }
.page-hero--image h1 .highlight { color: var(--accent-soft); }
.page-hero--image .lead { color: rgba(251, 241, 225, 0.92); max-width: 60ch; }
.page-hero--image::after { display: none; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--accent-warm); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__sep { color: var(--border-strong); }

.page-meta {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 1rem;
}
.page-meta-author { color: var(--accent-warm); font-weight: 600; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { padding: clamp(1.6rem, 2.6vw, 2.4rem) 0; }
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-warm);
  margin-bottom: .55rem;
}
.section-title { margin-bottom: 1rem; }

/* Intro block — full container width (no narrow column) */
.intro-block p {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* Plain card — fills container width (visual consistency over reading width) */
.plain-card {
  position: relative;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.plain-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-crimson));
}

/* Bento / floor grid */
.floor-grid {
  display: grid;
  gap: 1.25rem;
}
.floor-grid--cols-1 { grid-template-columns: 1fr; }
.floor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: 1fr; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-fill-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  padding: 1.4rem 1.4rem 1.4rem;
  box-shadow: 0 10px 24px -18px rgba(115, 79, 159, 0.45);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(115, 79, 159, 0.55), 0 4px 10px -3px rgba(209, 76, 153, 0.20);
  background: var(--card-fill-soft);
}
.tile h3 {
  color: var(--card-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  font-size: 1.6rem;
  margin: .9rem 0 .55rem;
  letter-spacing: -0.01em;
}
.tile h4 { color: var(--brand-dark); }
.tile p { color: var(--text-muted); }
.tile p:last-of-type { margin-bottom: 0; }

/* Optional image header */
.tile__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--card-fill) 0%, #5e3d8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .35rem;
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media-glyph {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Optional bottom CTA */
.tile__cta {
  align-self: flex-start;
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  background: var(--card-accent);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  letter-spacing: 0.01em;
}
.tile__cta:hover { background: var(--card-accent-warm); color: #fff; transform: translateY(-1px); }
.tile__cta::after { content: "→"; transition: transform .2s ease; }
.tile__cta:hover::after { transform: translateX(3px); }

/* Featured (deep purple fill) */
.tile--featured {
  background: var(--card-fill);
  border-color: transparent;
  color: var(--card-text-on-fill);
}
.tile--featured h3 { color: var(--card-accent); }
.tile--featured p,
.tile--featured li { color: rgba(255, 255, 255, 0.86); }
.tile--featured ul li::before { color: var(--card-accent); }
.tile--featured .tile__media {
  background: linear-gradient(150deg, #5e3d8a 0%, #3d2761 100%);
}

/* Rich tile layout (sub-cards + bold dividers) */
.floor-grid--rich { grid-template-columns: 1fr; }
.floor-grid--rich .tile { padding: 2.2rem 2.2rem 2rem; }
.floor-grid--rich .tile h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-dark);
  border-top: 2px solid var(--brand);
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-weight: 700;
}
.floor-grid--rich .tile h4:first-child { margin-top: 0.5rem; }
.floor-grid--rich .tile ul,
.floor-grid--rich .tile ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}
.floor-grid--rich .tile li {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(115, 79, 159, 0.10);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.45rem;
  margin: 0;
}
.floor-grid--rich .tile li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--card-accent), var(--card-fill));
}
.floor-grid--rich .tile h4 {
  border-top-color: var(--card-accent);
  color: var(--card-fill);
}

/* Split layout */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.split-layout--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.split-layout--reverse .split-media { order: 2; }
.split-layout--reverse .split-body { order: 1; }
.split-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile-screenshot variant — show the whole phone, no cropping */
.split-media--mobile {
  background: radial-gradient(circle at 50% 35%,
    rgba(179, 118, 170, 0.22) 0%,
    rgba(115, 79, 159, 0.06) 55%,
    transparent 80%);
  border: none;
  box-shadow: none;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 360px;
}
.split-media--mobile img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(115, 79, 159, 0.22))
          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

.split-body h2 { margin-top: 0; }

@media (max-width: 900px) {
  .split-layout, .split-layout--reverse { grid-template-columns: 1fr; }
  .split-layout--reverse .split-media { order: -1; }
}

/* Feature check-list */
.feature-check-list {
  list-style: none;
  padding: 1.3rem 1.5rem 1.3rem 1.6rem;
  margin: 1.2rem 0 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(232, 199, 122, 0.18), rgba(212, 162, 76, 0.08));
  border-left: 4px solid var(--accent);
  display: grid;
  gap: .65rem;
}
.feature-check-list li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
  color: var(--text);
}
.feature-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(212, 162, 76, 0.4);
}
.feature-check-list--plain {
  background: transparent;
  border-left: none;
  padding: 0;
}

/* Image divider */
.image-divider {
  counter-increment: img-div;
  margin: clamp(1rem, 2.4vw, 1.8rem) auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
}
.image-divider__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
}
.image-divider__media img { width: 100%; height: 100%; object-fit: cover; }
.image-divider__aside { padding: 1rem; }
.image-divider__num {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--accent-warm);
  line-height: 1;
}
.image-divider__num::before { content: counter(img-div, decimal-leading-zero); }
.image-divider__kicker {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-dark);
  font-weight: 700;
  margin-top: .8rem;
}
.image-divider__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--brand-dark);
  margin-top: .35rem;
  line-height: 1.2;
}

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

/* ============================================================
   HOME SIGNATURE SECTIONS
   ============================================================ */

/* Bento floor (game categories) */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.bento-floor .tile { padding: 1.7rem 1.4rem 1.6rem; }
.bento-floor .tile--wide { grid-column: span 2; }
.bento-floor .tile--span-row { grid-row: span 2; }
.bento-floor h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.bento-floor ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.bento-floor ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.96rem;
  color: var(--text-muted);
  margin: 0;
}
.bento-floor ul li::before {
  content: "♦";
  position: absolute;
  left: 0; top: 0.05em;
  color: var(--card-accent);
  font-size: 0.85em;
}
@media (max-width: 900px) {
  .bento-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-floor .tile--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento-floor { grid-template-columns: 1fr; }
  .bento-floor .tile--wide { grid-column: span 1; }
}

/* Security / trust grid (4-up art deco) */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.security-tile {
  position: relative;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.6rem 1.1rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.security-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.security-tile__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  border: 3px solid rgba(212, 162, 76, 0.4);
}
.security-tile h3 {
  font-size: 1.05rem;
  margin: 0 0 .4rem;
  font-family: var(--font-heading);
}
.security-tile p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 900px) { .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .security-grid { grid-template-columns: 1fr; } }

/* Rewards bento (welcome card top-left, VIP strip bottom span) */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.rewards-bento .reward-card { padding: 1.6rem 1.5rem; }
.rewards-bento .reward-card--welcome {
  grid-column: 1 / span 1;
  background: var(--card-fill);
  color: var(--card-text-on-fill);
  border-color: transparent;
}
.rewards-bento .reward-card--welcome h3 { color: var(--card-accent); }
.rewards-bento .reward-card--welcome p { color: rgba(255, 255, 255, 0.88); }
.rewards-bento .reward-card--vip {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--card-fill-soft) 0%, rgba(209, 76, 153, 0.08) 100%);
}
.rewards-bento .reward-card--vip .vip-actions { justify-self: end; }

@media (max-width: 900px) {
  .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-bento .reward-card--welcome { grid-column: 1 / span 2; }
  .rewards-bento .reward-card--vip { grid-column: 1 / span 2; grid-template-columns: 1fr; }
  .rewards-bento .reward-card--vip .vip-actions { justify-self: start; }
}
@media (max-width: 560px) {
  .rewards-bento { grid-template-columns: 1fr; }
  .rewards-bento .reward-card--welcome,
  .rewards-bento .reward-card--vip { grid-column: 1; }
}

/* Support card (closing editorial) */
.support-card {
  position: relative;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2.6rem clamp(1.8rem, 4vw, 3.6rem) 2.4rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.support-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-crimson));
}
.support-card::after {
  content: "Gamezy";
  position: absolute;
  right: -.4rem; bottom: -2.3rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 12rem;
  font-weight: 600;
  color: var(--brand-dark);
  opacity: 0.05;
  letter-spacing: -0.04em;
  pointer-events: none;
  line-height: 1;
}
.support-card h2 { margin-top: 0; }
.support-card .lead { margin: 1rem auto 1.5rem; }
.support-card .hero-actions { justify-content: center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding-top: clamp(1.4rem, 2.4vw, 2.2rem); padding-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.faq-list { margin: 1.6rem auto 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: .85rem;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--brand-dark);
  font-weight: 600;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-warm);
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  flex: none;
}
.faq-icon::before { content: "+"; }
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.faq-answer p { margin: 0 0 .7em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   FOOTER — slim editorial, gold CTA card, oversized closing wordmark
   ============================================================ */
.site-footer {
  position: relative;
  /* Breathing room above the overlapping gold CTA card.
     Net visible gap above the card =
       margin-top + padding-top + footer-cta.margin-top
     = clamp(...) + 5rem + (-6.5rem)
     ≈ 5rem (min) → 7.5rem (max) of clear whitespace above the card. */
  margin-top: clamp(8rem, 13vw, 11rem);
  background: var(--bg-panel);
  color: var(--text-on-dark);
  padding: 5rem 0 1.2rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(212, 162, 76, 0.10), transparent 60%),
    radial-gradient(600px 400px at 0% 80%, rgba(155, 45, 61, 0.06), transparent 60%);
  pointer-events: none;
}
/* Oversized italic Gamezy wordmark — closing flourish */
.site-footer__wordmark {
  position: absolute;
  left: 50%;
  bottom: -3.4vw;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 162, 76, 0.18);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Overlapping gold CTA card */
.footer-cta {
  position: relative;
  margin-top: -6.5rem;
  margin-bottom: 2.4rem;
  padding: 2rem clamp(1.4rem, 3vw, 2.6rem);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 60%, var(--accent-crimson) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card-hover);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.2rem;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}
.footer-cta::after {
  content: "Gamezy";
  position: absolute;
  right: -.4rem; bottom: -2.4rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 11rem;
  font-weight: 600;
  color: rgba(251, 241, 225, 0.10);
  letter-spacing: -0.04em;
  pointer-events: none;
  line-height: 1;
}
.footer-cta h2 { color: #fff; margin: 0 0 .25em; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.footer-cta p { color: rgba(255, 255, 255, 0.92); margin: 0; }
.footer-cta__actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-self: end;
  position: relative;
  z-index: 2;
}
.footer-cta__actions .btn-primary {
  background: var(--bg-panel);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5);
}
.footer-cta__actions .btn-secondary {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.footer-cta__actions .btn-secondary:hover { background: rgba(255, 255, 255, .25); }

@media (max-width: 800px) {
  .footer-cta { grid-template-columns: 1fr; margin-top: -5.5rem; padding: 1.6rem 1.4rem; }
  .footer-cta__actions { justify-self: start; }
}

/* Inline link rail — replaces the chunky 4-col grid */
.footer-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(251, 241, 225, 0.10);
  margin-bottom: 1rem;
}
.footer-brand .brand-logo img { height: 30px; }
.footer-brand p {
  margin-top: .7rem;
  font-size: 0.88rem;
  color: rgba(251, 241, 225, 0.66);
  max-width: 36ch;
  line-height: 1.55;
}
.payment-pills {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}
.payment-pills span {
  padding: .2rem .6rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(251, 241, 225, 0.06);
  border: 1px solid rgba(251, 241, 225, 0.14);
  color: rgba(251, 241, 225, 0.78);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent-soft);
  margin: 0 0 .85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  color: rgba(251, 241, 225, 0.72);
  font-size: 0.88rem;
  transition: color .18s ease, padding-left .18s ease;
  display: inline-block;
}
.footer-col a:hover { color: var(--accent-soft); padding-left: .15rem; }

.footer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 .8rem;
}
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.footer-trust span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: var(--r-pill);
  background: rgba(251, 241, 225, 0.05);
  border: 1px solid rgba(251, 241, 225, 0.12);
  font-size: 0.7rem;
  color: rgba(251, 241, 225, 0.72);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.footer-trust span::before {
  content: "•";
  color: var(--accent);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  color: rgba(251, 241, 225, 0.5);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(251, 241, 225, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
.footer-bottom em { font-family: var(--font-heading); font-style: italic; color: var(--accent-soft); }

@media (max-width: 900px) {
  .footer-rail { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   404 page
   ============================================================ */
.err-404 {
  text-align: center;
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.err-404__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.err-404__kicker { color: var(--accent-warm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: .82rem; }
.err-404__glyph {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-crimson) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  margin: 1rem 0;
}
.err-404 .hero-actions { justify-content: center; margin-top: 1.5rem; }

/* ============================================================
   Misc utilities
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Inner-page section content */
main > section > .container > h2 { margin-top: 0; }

/* ============================================================
   Lightbox (gallery)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(21, 10, 38, 0.90);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: var(--r-lg); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Section spacing variants */
section.no-padding-top    { padding-top: 0; }
section.no-padding-bottom { padding-bottom: 0; }

/* Typography color utility for headings on dark backgrounds */
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark); }
