/* ============================================================
   RIFTWARDEN — rift-base.css
   Concept: an illuminated wardens' codex / heraldic charter.
   Constitution:
   - Two foundations: charcoal #14131a (vellum/ink) + warm gold #e8b04b (gilt).
   - One accent: royal violet #7c3aed (the rift-glow, active states only).
   - Type: Fraunces serif display (huge, one italic word) + Be Vietnam Pro body.
   - Surface: faint grain + a single animated violet glow; gold hairline rules,
     near-square (3px) corners — no heavy shadows.
   - Layout: top sticky header (brand + horizontal nav) + centered content.
   - Signature: a small gold rhombus  ◆  prefixing every section numeral + brand.
   ============================================================ */

:root {
  --ink: #14131a;
  --ink-2: #1b1922;
  --ink-3: #221f2b;
  --panel: #1c1a24;
  --gold: #e8b04b;
  --gold-soft: #f0c878;
  --gold-deep: #c99230;
  --violet: #7c3aed;
  --violet-lit: #9a63f5;
  --parch: #efe7d6;
  --muted: #b8b1c4;
  --muted-2: #877f93;
  --line: rgba(232, 176, 75, 0.22);
  --line-soft: rgba(232, 176, 75, 0.12);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 73.75rem; /* ~1180px */
  --header-h: 4.6rem;

  /* one shared vertical rhythm for every section */
  --sec-pad: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2.2vw, 1.5rem);

  --r: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parch);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-soft);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--parch);
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

p {
  margin: 0 0 1.1rem;
}

::selection {
  background: var(--violet);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- film grain + rift glow ---------- */

.rw-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* A single subtle, symmetric glow centered at the top — no drift, no blobs. */
.rw-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  top: -28rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(60rem, 100vw);
  max-width: 100vw;
  height: 60rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 60%);
}

/* Second decorative blob removed for a calmer, balanced surface. */
.rw-glow.is-low { display: none; }

/* ============================================================
   LAYOUT — top sticky header + centered content
   ============================================================ */

.rw-shell {
  position: relative;
  z-index: 2;
  min-height: 60vh;
}

.rw-content {
  min-width: 0;
}

/* ---------- top sticky header ---------- */

.rw-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 var(--pad);
  background: rgba(20, 19, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.rw-top-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin: 0;
}

.rw-brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--r);
}

.rw-brand b {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--parch);
  line-height: 1;
}

/* ---------- horizontal nav ---------- */

.rw-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.rw-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.rw-nav a:hover,
.rw-nav a:focus-visible {
  color: var(--parch);
  background: rgba(232, 176, 75, 0.08);
}

.rw-nav a[aria-current="page"] {
  color: var(--gold);
}

.rw-nav .rw-nav-cta {
  margin-left: 0.5rem;
  color: #1b1208;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rw-nav .rw-nav-cta:hover,
.rw-nav .rw-nav-cta:focus-visible {
  color: #1b1208;
  background: linear-gradient(180deg, #f4d189, var(--gold));
}

/* ---------- hamburger (mobile only) ---------- */

.rw-burger {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  margin-left: auto;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}

.rw-burger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 2.5px 0;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.2s;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */

.rw-sec {
  position: relative;
  padding: var(--sec-pad) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}

.rw-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.rw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.rw-eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.rw-fol {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.rw-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 44ch;
}

/* Centered section header (eyebrow + title + intro lead) */
.rw-sec-head {
  margin: 0 auto 2.8rem;
  max-width: 52rem;
  text-align: center;
}

.rw-sec-head .rw-lead {
  margin-left: auto;
  margin-right: auto;
}

.rw-sec-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
}

/* ============================================================
   HERO — clean, centered, balanced
   ============================================================ */

.rw-hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.rw-hero-inner {
  max-width: 50rem;
  margin: 0 auto;
}

.rw-hero .rw-eyebrow {
  justify-content: center;
}

.rw-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.3rem;
}

.rw-hero .rw-lead {
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.rw-hero-cta {
  justify-content: center;
}

/* even, symmetric 3-up stat row */
.rw-hero-stats {
  max-width: 56rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.rw-hero-stats div {
  padding: 1.4rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--ink-2);
}

.rw-hero-stats div b {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.rw-hero-stats div span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.rw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.55rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, background 0.2s, color 0.2s, border-color 0.2s;
}

.rw-btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1b1208;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rw-btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #f4d189, var(--gold));
}

.rw-btn-ghost {
  background: transparent;
  color: var(--parch);
  border-color: var(--line);
}

.rw-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.rw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ============================================================
   GAMES — even 3-up grid of equal-height codex entries
   ============================================================ */

.rw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.rw-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
  padding: 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.rw-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: var(--ink-3);
}

.rw-card-tag {
  align-self: flex-start;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-lit);
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 99px;
}

.rw-card img {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.rw-card-meta {
  min-width: 0;
  width: 100%;
}

.rw-card-meta h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.12;
}

.rw-card-meta .cat {
  font-size: 0.82rem;
  color: var(--muted-2);
  display: block;
  margin-bottom: 0.6rem;
}

.rw-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

.rw-stars .bar {
  position: relative;
  width: 4.6rem;
  height: 0.34rem;
  border-radius: 99px;
  background: rgba(232, 176, 75, 0.16);
  overflow: hidden;
}

.rw-stars .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
}

.rw-card-link {
  margin-top: auto;
  padding-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--violet-lit);
}

.rw-card-link::after {
  content: "→";
  transition: transform 0.18s;
}

.rw-card:hover .rw-card-link::after {
  transform: translateX(3px);
}

/* ============================================================
   STATS BAND
   ============================================================ */

.rw-band {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.rw-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 19, 26, 0.94) 30%, rgba(20, 19, 26, 0.72));
}

.rw-band > .rw-wrap {
  position: relative;
}

.rw-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
}

.rw-band-grid div {
  padding: 1.6rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(20, 19, 26, 0.5);
}

.rw-band-grid div b {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold);
  line-height: 1;
}

.rw-band-grid div span {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============================================================
   PROCESS / KURATION — numbered zig-zag
   ============================================================ */

.rw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.rw-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem clamp(1.2rem, 2.2vw, 1.6rem);
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}

.rw-step .num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--violet-lit);
  line-height: 0.9;
  margin-bottom: 1rem;
}

.rw-step h3 {
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
}

.rw-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ============================================================
   ABOUT (#orden) — tidy, centered, symmetric
   ============================================================ */

/* Centered banner image at the top of the section */
.rw-orden-banner {
  position: relative;
  margin: 0 auto;
  max-width: 56rem;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}

.rw-orden-banner img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 30%;
}

.rw-orden-banner figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--parch);
  background: linear-gradient(0deg, rgba(20, 19, 26, 0.92), transparent);
}

/* Centered prose column */
.rw-orden-prose {
  max-width: 52rem;
  margin: clamp(2.2rem, 4vw, 3rem) auto 0;
  text-align: center;
}

.rw-orden-prose h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.rw-orden-prose p {
  color: var(--muted);
}

/* Even, symmetric pledge grid */
.rw-feature-list {
  list-style: none;
  padding: 0;
  max-width: 56rem;
  margin: clamp(2.2rem, 4vw, 3rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.rw-feature-list li {
  position: relative;
  padding: 1.3rem 1.3rem 1.3rem 2.6rem;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 0.95rem;
}

.rw-feature-list li::before {
  content: "◆";
  position: absolute;
  left: 1.2rem;
  top: 1.3rem;
  color: var(--gold);
  font-size: 0.8rem;
  line-height: 1.3;
}

.rw-feature-list strong {
  color: var(--parch);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* Company info — centered card below */
.rw-orden-company {
  max-width: 50rem;
  margin: clamp(2.4rem, 5vw, 3.4rem) auto 0;
  text-align: center;
}

.rw-orden-company h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.4rem;
}

.rw-orden-company .rw-callout {
  text-align: left;
  margin: 0 auto;
  max-width: 30rem;
}

.rw-orden-company .rw-after {
  margin-top: 1.4rem;
  color: var(--muted);
}

.rw-orden-company .rw-cta-row {
  justify-content: center;
  margin-top: 1.4rem;
}

/* ============================================================
   REVIEWS — even 3-up grid of equal-height cards
   ============================================================ */

.rw-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.rw-rev {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  position: relative;
}

.rw-rev::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem;
  right: 0.9rem;
  font-family: var(--serif);
  font-size: 3.4rem;
  color: rgba(232, 176, 75, 0.18);
  line-height: 1;
}

.rw-rev .stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.rw-rev p {
  font-size: 0.96rem;
  color: var(--parch);
  margin-bottom: 0.9rem;
}

.rw-rev .who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.rw-rev .who .av {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--gold-deep));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
}

.rw-rev .who b {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--parch);
  display: block;
  line-height: 1.2;
}

.rw-rev .who span {
  font-size: 0.74rem;
  color: var(--muted-2);
}

/* ============================================================
   FAQ — accordion
   ============================================================ */

.rw-faq {
  max-width: 48rem;
  margin: 0 auto;
}

.rw-faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.4rem 0;
}

.rw-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--parch);
}

.rw-faq summary::-webkit-details-marker { display: none; }

.rw-faq summary .ic {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.25s, background 0.25s;
}

.rw-faq details[open] summary .ic {
  transform: rotate(45deg);
  background: rgba(124, 58, 237, 0.18);
  border-color: var(--violet);
}

.rw-faq details p {
  margin: 0 0 1rem;
  padding-right: 2.4rem;
  color: var(--muted);
}

/* ============================================================
   SUBSCRIBE / NEWSLETTER — band: copy left, form card right
   ============================================================ */

.rw-join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.rw-join-aside .rw-contact-mini {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.rw-contact-mini li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.rw-contact-mini li b {
  color: var(--gold);
}

.rw-formcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
}

.rw-field {
  margin-bottom: 1rem;
}

.rw-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.rw-field input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: var(--parch);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.rw-field input::placeholder { color: var(--muted-2); }

.rw-field input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.rw-consent {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0.4rem 0 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.rw-consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--violet);
}

.rw-consent a { text-decoration: underline; }

.rw-formcard .rw-btn-gold { width: 100%; justify-content: center; }

#successMsg {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid var(--violet);
  color: var(--parch);
  font-size: 0.92rem;
}

#successMsg.show { display: block; }

/* ============================================================
   PROSE (legal / about / contact pages)
   ============================================================ */

.rw-page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(2.2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.1), transparent);
  text-align: center;
}

.rw-page-hero > * {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.rw-page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.rw-crumb {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-bottom: 1rem;
}

.rw-crumb a { color: var(--gold-deep); }

.rw-prose {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.rw-prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.rw-prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.rw-prose h3 {
  font-size: 1.22rem;
  margin-top: 1.8rem;
}

.rw-prose p, .rw-prose li {
  color: var(--muted);
}

.rw-prose strong { color: var(--parch); }

.rw-prose ul { padding-left: 1.2rem; }
.rw-prose li { margin-bottom: 0.5rem; }

.rw-callout {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}

.rw-callout p:last-child { margin-bottom: 0; }

/* contact two-col */
.rw-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.rw-contact-cards {
  display: grid;
  gap: 1rem;
}

.rw-ccard {
  padding: 1.3rem 1.4rem;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}

.rw-ccard span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.rw-ccard b { color: var(--parch); font-weight: 600; }
.rw-ccard a { color: var(--gold-soft); }

/* 404 */
.rw-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  min-height: 62vh;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}

.rw-404 .rw-lead { max-width: 40ch; }

.rw-404 .big {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.85;
  color: var(--gold);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.rw-foot {
  position: relative;
  z-index: 2;
  padding: clamp(2.8rem, 5vw, 4rem) var(--pad) 2rem;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.rw-foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.rw-foot-grid h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.rw-foot-brand b {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--parch);
}

.rw-foot-brand p {
  color: var(--muted-2);
  font-size: 0.92rem;
  max-width: 30ch;
  margin-top: 0.7rem;
}

.rw-foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.rw-foot-grid ul a {
  color: var(--muted);
  font-size: 0.92rem;
}

.rw-foot-grid ul a:hover { color: var(--gold); }

.rw-foot-grid address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.rw-foot-grid address a { color: var(--gold-soft); }

.rw-foot-base {
  max-width: var(--maxw);
  margin: 2.4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.rw-cookie {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  width: min(46rem, calc(100% - 2rem));
  display: none;
  gap: 1rem 1.4rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.1rem 1.3rem;
  background: rgba(28, 26, 36, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.rw-cookie.show { display: flex; }

.rw-cookie p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.rw-cookie p a { color: var(--gold-soft); text-decoration: underline; }

.rw-cookie .acts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rw-cookie .rw-btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* Hide the cookie banner while the centered modal menu is open
   so the fixed banner can never overlap the open mobile nav. */
body.rw-menu-open #rwCookie { display: none !important; }

/* Compact, content-sized cookie bar on small screens:
   slim bar hugging its content, text on top + two buttons in a row. */
@media (max-width: 620px) {
  .rw-cookie {
    bottom: 0.7rem;
    width: calc(100% - 1.4rem);
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
  }
  .rw-cookie p {
    flex: 1 1 100%;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .rw-cookie .acts {
    flex: 1 1 100%;
    justify-content: flex-end;
    gap: 0.5rem;
  }
  .rw-cookie .rw-btn { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
}

/* ============================================================
   MOBILE MENU — centered modal nav (overlay)
   ============================================================ */

.rw-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(13, 12, 17, 0.93);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.rw-modal.open {
  opacity: 1;
  visibility: visible;
}

.rw-modal-inner {
  text-align: center;
  max-width: 24rem;
  width: 100%;
  margin: auto;
  flex: 0 0 auto;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s ease;
}

.rw-modal.open .rw-modal-inner {
  transform: none;
}

.rw-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r);
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.rw-modal .seal {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1.4rem;
}

.rw-modal nav {
  display: grid;
  gap: 0.2rem;
}

.rw-modal nav a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--parch);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.18s;
}

.rw-modal nav a .fol {
  font-size: 0.8rem;
  color: var(--gold-deep);
  vertical-align: super;
  margin-right: 0.3rem;
}

.rw-modal nav a:hover,
.rw-modal nav a[aria-current="page"] {
  color: var(--gold);
}

.rw-modal-foot {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--muted-2);
}

.rw-modal-foot a { color: var(--gold-soft); }

body.rw-lock { overflow: hidden; }

/* ============================================================
   MEDIA QUERIES (grouped at bottom)
   ============================================================ */

/* ----- tablet: even 2-up grids ----- */
@media (max-width: 1024px) {
  .rw-grid { grid-template-columns: repeat(2, 1fr); }
  .rw-reviews { grid-template-columns: repeat(2, 1fr); }
  .rw-steps { grid-template-columns: repeat(2, 1fr); }
  .rw-feature-list { grid-template-columns: repeat(2, 1fr); }
  .rw-band-grid { grid-template-columns: repeat(2, 1fr); }
  .rw-foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse horizontal nav into the hamburger menu */
@media (max-width: 920px) {
  .rw-nav { display: none; }
  .rw-burger { display: grid; }

  .rw-join { grid-template-columns: 1fr; }
  .rw-contact { grid-template-columns: 1fr; }
}

/* ----- mobile: single, even column ----- */
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .rw-grid { grid-template-columns: 1fr; }
  .rw-reviews { grid-template-columns: 1fr; }
  .rw-steps { grid-template-columns: 1fr; }
  .rw-feature-list { grid-template-columns: 1fr; }
  .rw-band-grid { grid-template-columns: repeat(2, 1fr); }
  .rw-hero-stats { grid-template-columns: repeat(3, 1fr); }
  .rw-foot-grid { grid-template-columns: 1fr; }
  .rw-modal nav a { font-size: 1.4rem; }
}

/* very small: keep hero stats from cramping */
@media (max-width: 400px) {
  .rw-hero-stats { gap: 0.6rem; }
  .rw-hero-stats div { padding: 1rem 0.5rem; }
  .rw-band-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .rw-btn-gold:hover, .rw-card:hover { transform: none; }
}
