/* =========================================================
   RareGlow — global stylesheet (single file for every page)
   Path: /assets/css/style.css
   Loaded by: component/layout.html (Bootstrap 5.3.3 + AOS 2.3.4 + FontAwesome 6.5.2)

   Approach: LIBRARY-FIRST — Bootstrap carries grid/components,
   this file only adds the brand layer + signature layouts.
   Naming: BEM with `rg-` prefix (rareglow).

   TODO(maintainer): keep every new section inside its own
   numbered block so the file stays greppable.
   ========================================================= */

/* Google Fonts — display serif + humanist sans + mono for meta labels */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
html,body{overflow-x: hidden;max-width:100%;}
/* ---------------------------------------------------------
   1. Design tokens — warm ivory / deep pine / brass
   (deliberately NOT a plain black-or-white bootstrap theme)
---------------------------------------------------------- */
:root {
  --rg-ivory:     #F6F2E9;   /* page canvas            */
  --rg-paper:     #FFFFFF;   /* cards / panels         */
  --rg-sand:      #EDE6D6;   /* alternate section bg   */
  --rg-ink:       #1C2420;   /* body text              */
  --rg-muted:     #6E7568;   /* secondary text         */
  --rg-pine:      #14382B;   /* primary — deep felt green */
  --rg-pine-deep: #0C211A;   /* dark bands / footer    */
  --rg-brass:     #B9902F;   /* accent — brass gold    */
  --rg-brass-soft:#E8D9A8;   /* light brass tint       */
  --rg-line:      #DFD7C4;   /* hairlines              */
  --rg-line-dark: rgba(246, 242, 233, 0.16);
  --rg-ok:        #3FA46A;   /* status green           */

  --rg-font-display: 'Fraunces', Georgia, serif;
  --rg-font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --rg-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --rg-shadow: 0 18px 44px rgba(28, 36, 32, 0.10);
  --rg-radius: 4px;
}

/* Bootstrap variable overrides — warm light theme, never pure black/white */
:root {
  --bs-body-bg: var(--rg-ivory);
  --bs-body-color: var(--rg-ink);
  --bs-body-font-family: var(--rg-font-body, 'Manrope', system-ui, sans-serif);
  --bs-primary: var(--rg-pine);
  --bs-primary-rgb: 20, 56, 43;
  --bs-link-color: var(--rg-pine);
  --bs-link-color-rgb: 20, 56, 43;
  --bs-link-hover-color: var(--rg-brass);
  --bs-link-hover-color-rgb: 185, 144, 47;
  --bs-border-color: var(--rg-line);
}

/* ---------------------------------------------------------
   2. Base typography
--------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--rg-ivory);
  color: var(--rg-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .rg-display, .rg-display-sm {
  font-family: var(--rg-font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--rg-ink);
}

.rg-display-1 { font-size: clamp(2.9rem, 7.2vw, 5.8rem); line-height: 0.99; letter-spacing: -0.02em; }
.rg-display-2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; }
.rg-display-3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; }

.rg-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--rg-muted); }

.rg-mono { font-family: var(--rg-font-mono); }

/* Oversized outlined numeral / ghost word — pure CSS decoration */
.rg-ghost {
  font-family: var(--rg-font-display);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 56, 43, 0.16);
  pointer-events: none;
  user-select: none;
}
.rg-ghost--light { -webkit-text-stroke-color: rgba(246, 242, 233, 0.14); }

/* Section rhythm */
.rg-section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.rg-section--sand { background: var(--rg-sand); }
.rg-section--pine { background: var(--rg-pine-deep); color: #EDE8D8; }
.rg-section--pine .rg-display-2, .rg-section--pine h2, .rg-section--pine .rg-eyebrow { color: #F3EDDD; }
.rg-section--pine .rg-lead { color: rgba(237, 232, 216, 0.72); }

/* Section header row: eyebrow left, optional aside right */
.rg-shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.2rem, 5vw, 3.75rem); }

.rg-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--rg-font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rg-brass);
  margin-bottom: 1rem;
}
.rg-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--rg-brass); display: inline-block; }

/* ---------------------------------------------------------
   2. Buttons, chips, tags
--------------------------------------------------------- */
.rg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--rg-font-mono); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.95rem 1.6rem; border-radius: 2px; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none; cursor: pointer;
}
.rg-btn:hover { transform: translateY(-2px); }
.rg-btn--pine { background: var(--rg-pine); color: #F3EDDD; }
.rg-btn--pine:hover, .rg-btn--pine:focus-visible { background: var(--rg-pine-deep); color: #fff; }
.rg-btn--brass { background: var(--rg-brass); color: #241B05; }
.rg-btn--brass:hover { background: #A37E24; color: #fff; }
.rg-btn--ghost { border-color: var(--rg-ink); color: var(--rg-ink); background: transparent; }
.rg-btn--ghost:hover { background: var(--rg-ink); color: var(--rg-ivory); }
.rg-btn--ghost-light { border-color: rgba(246, 242, 233, 0.55); color: #F3EDDD; }
.rg-btn--ghost-light:hover { background: rgba(246, 242, 233, 0.12); color: #fff; }
.rg-btn--sm { padding: 0.55rem 0.9rem; font-size: 0.74rem; }
.rg-btn--xl { padding: 1.15rem 2rem; font-size: 0.9rem; }

.rg-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--rg-font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--rg-line); border-radius: 999px;
  padding: 0.45rem 0.95rem; color: var(--rg-pine); background: rgba(255, 255, 255, 0.65);
}
.rg-chip--brass { border-color: rgba(185, 144, 47, 0.5); color: #8A6B1E; background: rgba(232, 217, 168, 0.25); }
.rg-chip--dark { border-color: var(--rg-line-dark); color: #E9E2CC; background: rgba(255, 255, 255, 0.06); }

/* Pulsing status dot (FontAwesome circle where inline, this for dots) */
.rg-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rg-ok); display: inline-block; flex: none;
  animation: rg-pulse 1.8s ease-out infinite;
}
@keyframes rg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 164, 106, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(63, 164, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 164, 106, 0); }
}

/* ---------------------------------------------------------
   3. Media blocks — every photo stays EMPTY (src=""/url(../../images/rareglow_edef0c4a9b8d2.78640472.jpg)).
   photo.js injects real files later; bg-color keeps the
   layout presentable until then.
--------------------------------------------------------- */
.rg-media {
  background-color: #243029;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--rg-radius, 4px);
  overflow: hidden;
  position: relative;
}
.rg-media--16x9 { aspect-ratio: 16 / 9; }
.rg-media--4x5  { aspect-ratio: 4 / 5; }
.rg-media--3x4  { aspect-ratio: 3 / 4; }
.rg-media--1x1  { aspect-ratio: 1 / 1; }
.rg-media--wide { aspect-ratio: 21 / 9; }

.rg-media__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--rg-font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
  padding: 0.8rem 1rem;
}

img.rg-photo { width: 100%; height: 100%; object-fit: cover; display: block; background-color: #24302A; border-radius: var(--rg-radius, 4px); }

/* ---------------------------------------------------------
   4. Decorative primitives (CSS only — no SVG anywhere)
--------------------------------------------------------- */
.rg-dots {
  background-image: radial-gradient(rgba(20, 56, 43, 0.22) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
.rg-dots--light { background-image: radial-gradient(circle, rgba(246, 242, 233, 0.22) 1.2px, transparent 1.6px); }

.rg-hairlines {
  background-image: repeating-linear-gradient(90deg, rgba(20, 56, 43, 0.08) 0 1px, transparent 1px 56px);
}

.rg-ring {
  width: clamp(180px, 24vw, 320px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(185, 144, 47, 0.4); position: absolute; pointer-events: none;
}
.rg-ring::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed rgba(185, 144, 47, 0.35);
}

/* Oversized outline numerals for step / metric blocks */
.rg-num {
  font-family: var(--rg-font-display); font-weight: 700; line-height: 1;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(20, 56, 43, 0.4);
}
.rg-num--light { -webkit-text-stroke-color: rgba(243, 237, 221, 0.45); }

/* Offset "ticket" frame used on cards & photos */
.rg-frame { position: relative; }
.rg-frame::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--rg-brass); border-radius: var(--rg-radius, 4px);
  transform: translate(14px, 14px); pointer-events: none; z-index: 0;
}
.rg-frame > * { position: relative; z-index: 1; }

/* Section header row */
.rg-shead { margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.rg-shead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; }
.rg-shead__note { max-width: 34ch; color: var(--rg-muted); font-size: 0.95rem; margin: 0; }

/* ---------------------------------------------------------
   4. Header (component/header.html)
--------------------------------------------------------- */
.rg-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(246, 242, 233, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rg-line);
  transition: box-shadow 0.25s ease;
}
.rg-header.is-scrolled { box-shadow: 0 12px 34px rgba(28, 36, 32, 0.1); }

.rg-topbar { background: var(--rg-pine); color: #E9E2CC; font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.rg-topbar__inner { display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; align-items: center; justify-content: space-between; padding: 0.5rem 0; }
.rg-topbar__item { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.rg-topbar__item i { color: var(--rg-brass); font-size: 0.8em; }
.rg-topbar a { color: #E8D9A0; text-decoration: none; }
.rg-topbar a:hover { color: #fff; text-decoration: underline; }

.rg-nav { padding-block: 0.85rem; }
.rg-brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.rg-brand__mark { width: 42px; height: 42px; object-fit: contain; border-radius: 3px; }
.rg-brand__text { font-family: var(--rg-font-display); font-weight: 600; font-size: 1.3rem; color: var(--rg-ink); line-height: 1; }
.rg-brand__text small { color: var(--rg-brass); font-size: 0.62em; font-weight: 500; }
.rg-brand--light .rg-brand__text { color: #F3EDDD; }

.rg-nav__link {
  font-weight: 600; font-size: 0.94rem; color: var(--rg-ink);
  padding: 0.5rem 0.95rem !important; border-radius: 2px;
}
.rg-nav__link:hover { color: var(--rg-pine); background: rgba(20, 56, 43, 0.07); }
.rg-nav__link.is-active { color: var(--rg-pine); box-shadow: inset 0 -2px 0 var(--rg-brass); border-radius: 2px 2px 0 0; }

.rg-nav__toggle {
  border: 1px solid var(--rg-line); border-radius: 3px; color: var(--rg-ink);
  padding: 0.45rem 0.7rem; font-size: 1.05rem; background: #fff;
}
.rg-nav__toggle:focus { box-shadow: 0 0 0 3px rgba(185, 144, 47, 0.3); }

@media (max-width: 991.98px) {
  .rg-nav__list { border-top: 1px solid var(--rg-line); margin-top: 0.75rem; padding-top: 0.5rem; }
  .rg-topbar__inner { justify-content: flex-start; }
}

/* ---------------------------------------------------------
   5. Footer
--------------------------------------------------------- */
.rg-footer { background-color: var(--rg-pine-deep); color: #C9C2AC; }
.rg-footer a { color: #E9E2C8; text-decoration: none; }
.rg-footer a:hover { color: var(--rg-brass); }
.rg-footer__status { background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--rg-line-dark); font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.rg-footer__status i { color: var(--rg-ok); }
.rg-footer__brand .rg-brand__text { color: #F3EDDD; }
.rg-footer__title { font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rg-brass); margin-bottom: 1rem; }
.rg-footer__menu { list-style: none; padding: 0; margin: 0; }
.rg-footer__menu li { margin-bottom: 0.55rem; }
.rg-footer__menu a { color: #C9C2AC; text-decoration: none; font-size: 0.95rem; }
.rg-footer__menu a:hover { color: #fff; text-decoration: underline; }
.rg-footer__contact { list-style: none; padding: 0; margin: 0; }
.rg-footer__contact-item { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; color: #DDD6BE; }
.rg-footer__contact-item i { color: var(--rg-brass); margin-top: 0.25rem; }
.rg-footer__contact-item a { color: #EDE6CC; text-decoration: underline; text-underline-offset: 3px; }
.rg-footer__legal { font-size: 0.85rem; color: rgba(221, 214, 190, 0.75); }
.rg-footer__disclaimer { font-size: 0.85rem; line-height: 1.6; color: #B9B29A; border-left: 2px solid var(--rg-brass); padding-left: 0.9rem; }
.rg-footer__bottom { border-top: 1px solid var(--rg-line-dark); font-family: var(--rg-font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: rgba(221, 214, 190, 0.75); }

/* ---------------------------------------------------------
   6. Shared section furniture
--------------------------------------------------------- */
.rg-section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.rg-section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.rg-section--sand { background: var(--rg-sand); }
.rg-section--pine { background-color: var(--rg-pine-deep); color: #EDE8D6; }
.rg-section--pine h2, .rg-section--pine h3 { color: #F6F1DE; }

.rg-eyebrow {
  font-family: var(--rg-font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--rg-brass);
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
}
.rg-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--rg-brass); display: inline-block; }

.rg-shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.rg-shead__title { font-family: var(--rg-font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0; }
.rg-shead__side { max-width: 380px; color: var(--rg-muted); font-size: 0.95rem; line-height: 1.6; }

.rg-card {
  background: var(--rg-paper); border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius); transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.rg-card--hover:hover { transform: translateY(-4px); box-shadow: var(--rg-shadow); }

.rg-checklist { list-style: none; padding: 0; margin: 0; }
.rg-checklist li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.4rem 0; font-size: 0.95rem; }
.rg-checklist i { color: var(--rg-brass); margin-top: 0.25em; }

/* Bootstrap accordion — brand skin */
.accordion.rg-acc {
  --bs-accordion-border-color: var(--rg-line);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--rg-pine);
  --bs-accordion-active-bg: #FFFFFF;
}
.rg-acc .accordion-item { background: transparent; border-color: var(--rg-line); }
.rg-acc .accordion-button {
  font-family: var(--rg-font-display); font-size: 1.18rem; font-weight: 600;
  color: var(--rg-ink); background: transparent; padding-block: 1.35rem;
}
.rg-acc .accordion-button:not(.collapsed) { color: var(--rg-pine); background: #FFFFFF; }
.rg-acc .accordion-button::after { background-size: 1rem; }
.rg-acc .accordion-body { color: var(--rg-muted); padding-top: 0.25rem; }

/* Forms */
.rg-form .form-label { font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-muted); margin-bottom: 0.4rem; }
.rg-form .form-control, .rg-form .form-select {
  background-color: #FFFFFF; border: 1px solid var(--rg-line); border-radius: 3px;
  padding: 0.85rem 1rem; font-size: 0.95rem; color: var(--rg-ink);
}
.rg-form .form-control:focus, .rg-form .form-select:focus {
  border-color: var(--rg-brass); box-shadow: 0 0 0 0.2rem rgba(185, 144, 47, 0.18);
}

/* Toasts — simple notifications, never alert() */
.rg-toast-wrap { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(420px, calc(100vw - 2rem)); }
.rg-toast {
  display: flex; align-items: flex-start; gap: 0.7rem;
  background: var(--rg-pine); color: #F3EEDC;
  border-radius: 4px; padding: 0.9rem 1.1rem; font-size: 0.92rem; font-weight: 500;
  box-shadow: 0 16px 40px rgba(12, 33, 26, 0.35);
  animation: rg-toast-in 0.25s ease;
}
.rg-toast i { color: var(--rg-brass-soft); margin-top: 0.1em; }
.rg-toast--error { background: #7A2E22; }
.rg-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all 0.3s ease; }
@keyframes rg-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Cookie banner — home page only (markup injected by main.js) */
.rg-cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1900;
  max-width: 620px; margin-inline: auto;
  background: #FFFFFF; border: 1px solid var(--rg-line); border-radius: 6px;
  box-shadow: 0 26px 70px rgba(12, 33, 26, 0.28); padding: 1.25rem 1.4rem;
}
.rg-cookie__icon { color: var(--rg-brass); font-size: 1.5rem; }
.rg-cookie__text { font-size: 0.88rem; color: var(--rg-muted); line-height: 1.55; }

/* ---------------------------------------------------------
   6. Page hero (inner pages) — h1 followed by p, always
--------------------------------------------------------- */
.rg-pagehero { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rg-line); overflow: hidden; }
.rg-pagehero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-muted); margin-bottom: 2rem; }
.rg-pagehero__title { font-family: var(--rg-font-display); font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; margin-bottom: 1.1rem; }
.rg-pagehero__lead { max-width: 640px; font-size: 1.08rem; color: var(--rg-muted); margin-bottom: 0; }
.rg-pagehero--dark { background-color: var(--rg-pine-deep); border-bottom-color: transparent; }
.rg-pagehero--dark .rg-pagehero__title { color: #F5F0DF; }
.rg-pagehero--dark .rg-lead { color: rgba(240, 234, 214, 0.75); }

/* ---------------------------------------------------------
   7. HOME — hero (kinetic editorial)
--------------------------------------------------------- */
.rg-hero { position: relative; overflow: hidden; }
.rg-hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.2rem; justify-content: space-between;
  border-bottom: 1px solid var(--rg-line); padding: 0.85rem 0;
  font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rg-muted);
}
.rg-hero__title { font-family: var(--rg-font-display); font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: 1.0; letter-spacing: -0.015em; margin: 0; }
.rg-hero__title em { font-style: italic; color: var(--rg-brass); }
.rg-hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--rg-muted); max-width: 520px; }
.rg-hero__window { box-shadow: 24px 24px 0 rgba(20, 56, 43, 0.12); }
.rg-hero__console { border-top: 1px solid var(--rg-line); }
.rg-hero__console-meta { font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-muted); }

/* ---------------------------------------------------------
   8. Manifesto / timeline (home + about)
--------------------------------------------------------- */
.rg-quote-card { color: #F1EBD8; border-radius: var(--rg-radius); }
.rg-quote-card__text { font-family: var(--rg-font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; font-weight: 500; }
.rg-timeline { position: relative; padding-left: 0; list-style: none; }
.rg-timeline__item { position: relative; padding: 0 0 2rem 2.4rem; border-left: 1px solid var(--rg-line); }
.rg-timeline__item:last-child { padding-bottom: 0; }
.rg-timeline__icon {
  position: absolute; left: -1.05rem; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--rg-ivory); border: 1px solid var(--rg-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rg-pine); font-size: 0.8rem;
}
.rg-timeline__year { font-family: var(--rg-font-mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--rg-brass); text-transform: uppercase; }
.rg-timeline__title { font-family: var(--rg-font-display); font-size: 1.15rem; font-weight: 600; margin: 0.15rem 0 0.25rem; }
.rg-timeline__text { color: var(--rg-muted); font-size: 0.93rem; margin: 0; }

.rg-shields { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rg-shield {
  font-family: var(--rg-font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--rg-line); padding: 0.55rem 0.95rem; border-radius: 2px; color: var(--rg-muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
}

/* ---------------------------------------------------------
   9. Bento grid (home showcase)
--------------------------------------------------------- */
.rg-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.rg-bento__cell { position: relative; border-radius: var(--rg-radius); overflow: hidden; min-height: 240px; display: flex; }
.rg-bento__cell--main { grid-column: span 5; grid-row: span 2; min-height: 480px; }
.rg-bento__cell--wide { grid-column: span 7; min-height: 240px; }
.rg-bento__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.2rem, 2.5vw, 2rem); color: #F5F0DE; z-index: 2;
}
.rg-bento__plate { grid-column: span 12; }
@media (max-width: 991.98px) { .rg-bento__cell { grid-column: span 12 !important; } }

/* ---------------------------------------------------------
   10. Services accordion matrix + floating preview
--------------------------------------------------------- */
.rg-matrix__preview { position: sticky; top: 110px; }
.rg-acc-index { font-family: var(--rg-font-mono); color: var(--rg-brass); font-size: 0.78rem; letter-spacing: 0.1em; margin-right: 0.9rem; }

/* ---------------------------------------------------------
   11. Metrics band / stats
--------------------------------------------------------- */
.rg-stat__value { font-family: var(--rg-font-display); font-weight: 600; font-size: clamp(2.8rem, 5.6vw, 4.6rem); line-height: 1; color: #F5EFDC; }
.rg-stat__label { font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(240, 233, 210, 0.6); }

/* ---------------------------------------------------------
   12. Process / journey
--------------------------------------------------------- */
.rg-journey__track { display: flex; gap: 0; border: 1px solid var(--rg-line); border-radius: 4px; overflow: hidden; background: #fff; }
.rg-journey__phase { flex: 1 1 0; padding: 0.9rem 1.1rem; font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rg-muted); border-right: 1px solid var(--rg-line); display: flex; align-items: center; gap: 0.6rem; }
.rg-journey__phase i { color: var(--rg-brass); }
@media (max-width: 767.98px) { .rg-journey__track { flex-direction: column; } }

.rg-step { position: relative; padding-left: 3.4rem; }
.rg-step__node {
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--rg-pine); color: #F1EAD6;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rg-font-mono); font-size: 0.8rem; font-weight: 600;
}

/* Horizontal ribbon with snap scroll */
.rg-ribbon { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.1rem; scrollbar-width: thin; scrollbar-color: var(--rg-brass) transparent; }
.rg-ribbon__card { flex: 0 0 clamp(250px, 26vw, 340px); scroll-snap-align: start; }
.rg-ribbon::-webkit-scrollbar { height: 6px; }
.rg-ribbon::-webkit-scrollbar-thumb { background: var(--rg-brass); border-radius: 3px; }
.rg-ribbon::-webkit-scrollbar-track { background: var(--rg-sand); }

.rg-index-row { display: grid; grid-template-columns: 3.5rem 1fr auto auto; gap: 1rem; align-items: center; padding: 0.95rem 0; border-bottom: 1px solid var(--rg-line); }
.rg-index-row__no { font-family: var(--rg-font-mono); color: var(--rg-brass); font-size: 0.8rem; }

/* Testimonial dossier */
.rg-dossier { border: 1px solid var(--rg-line); background: #fff; border-radius: var(--rg-radius); }
.rg-dossier__quote { font-family: var(--rg-font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; font-weight: 500; }

/* Pricing tiers */
.rg-tier { border: 1px solid var(--rg-line); background: #fff; border-radius: var(--rg-radius); height: 100%; display: flex; flex-direction: column; }
.rg-tier--featured { box-shadow: 0 30px 70px rgba(12, 33, 26, 0.35); }
.rg-tier__price { font-family: var(--rg-font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; }

/* CTA portal */
.rg-portal__link { font-family: var(--rg-font-display); font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1.02; color: #F5F0DC; text-decoration: none; display: inline-block; transition: letter-spacing 0.25s ease, color 0.25s ease; }
.rg-portal__link:hover { color: var(--rg-brass); letter-spacing: 0.01em; }

/* ---------------------------------------------------------
   8. Inner-page building blocks
--------------------------------------------------------- */
.rg-factstrip { display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; }
.rg-fact { font-family: var(--rg-font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rg-muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.rg-fact i { color: var(--rg-brass); }

.rg-checklist { list-style: none; padding: 0; margin: 0; }
.rg-checklist li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.4rem 0; color: var(--rg-ink); font-size: 0.96rem; }
.rg-checklist i { color: var(--rg-brass); margin-top: 0.3rem; font-size: 0.8em; }

.rg-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--rg-radius); }
.rg-gallery__item { overflow: hidden; border-radius: var(--rg-radius); background: #243029; aspect-ratio: 4 / 3; }
.rg-gallery__item--tall { aspect-ratio: 3 / 4; }

.rg-person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #243029; border-radius: var(--rg-radius); }

.rg-table rg-th { font-family: var(--rg-font-mono); }
.rg-table { --bs-table-bg: transparent; }
.rg-table thead th { font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-muted); font-weight: 600; }
.rg-table td, .rg-table th { border-color: var(--rg-line); padding: 0.9rem 1rem; vertical-align: middle; }

.rg-map-frame { border: 1px solid var(--rg-line); border-radius: var(--rg-radius); overflow: hidden; background: #243029; min-height: 380px; }
.rg-map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(0.82) contrast(1.02); }

/* Legal / editorial text pages */
.rg-legal__body h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.rg-legal__block { background: #fff; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); padding: clamp(1.4rem, 3vw, 2.2rem); height: 100%; }
.rg-legal__num { font-family: var(--rg-font-mono); color: var(--rg-brass); font-size: 0.8rem; letter-spacing: 0.16em; }

/* ---------------------------------------------------------
   9. Footer
--------------------------------------------------------- */
.rg-footer { color: #CFC8B2; }
.rg-footer__statusbar { border-bottom: 1px solid var(--rg-line-dark); font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rg-footer__link { color: #CFC8B0; text-decoration: none; display: inline-block; padding: 0.18rem 0; }
.rg-footer__link:hover { color: var(--rg-brass); text-decoration: underline; }
.rg-footer__heading { font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rg-brass); margin-bottom: 1.1rem; }
.rg-footer__bottom { border-top: 1px solid var(--rg-line-dark); font-family: var(--rg-font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: rgba(207, 200, 178, 0.75); }

/* ---------------------------------------------------------
   10. Header
--------------------------------------------------------- */
.rg-header { position: sticky; top: 0; z-index: 1030; background: rgba(246, 242, 233, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rg-line); }
.rg-header.is-scrolled { box-shadow: 0 12px 34px rgba(28, 36, 32, 0.09); }
.rg-brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.rg-brand__mark { width: 42px; height: 42px; object-fit: contain; border-radius: 3px; }
.rg-brand__text { font-family: var(--rg-font-display); font-weight: 600; font-size: 1.28rem; color: var(--rg-ink); line-height: 1; }
.rg-brand__text small { color: var(--rg-brass); font-size: 0.62em; font-weight: 500; }
.rg-nav__link { font-weight: 600; font-size: 0.93rem; color: var(--rg-ink) !important; padding: 0.55rem 0.95rem !important; border-radius: 2px; }
.rg-nav__link:hover { color: var(--rg-pine); background: rgba(20, 56, 43, 0.07); }
.rg-nav__link.is-active { color: var(--rg-pine); box-shadow: inset 0 -2px 0 var(--rg-brass); }
@media (max-width: 991.98px) {
  .rg-nav__list { gap: 0.25rem; padding-block: 0.5rem; }
  .rg-nav__link { display: block; padding: 0.65rem 0.9rem !important; }
}

/* ---------------------------------------------------------
   11. Small shared helpers
--------------------------------------------------------- */
.rg-ghost-word {
  position: absolute; inset-inline: 0; bottom: -0.12em; z-index: 0;
  font-family: var(--rg-font-display); font-weight: 700; white-space: nowrap;
  font-size: clamp(5rem, 15vw, 13rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(20, 56, 43, 0.1);
  pointer-events: none; user-select: none;
}
.rg-ghost--light { -webkit-text-stroke-color: rgba(246, 242, 233, 0.08); }

.rg-card { background: #fff; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); }
.rg-card--lift { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.rg-card--lift:hover { transform: translateY(-4px); box-shadow: var(--rg-shadow); }

.rg-kicker { font-family: var(--rg-font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rg-brass); }

.rg-divider-v { border-left: 1px solid var(--rg-line); }

@media (max-width: 767.98px) {
  .rg-index-row { grid-template-columns: 2.4rem 1fr auto; }
}

/* ---------------------------------------------------------
   12. Patch block — components referenced by page markup
--------------------------------------------------------- */
.rg-stat { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem 0; border-top: 1px solid var(--rg-line); }
.rg-section--pine .rg-stat { border-color: var(--rg-line-dark); }
.rg-stat__suffix { font-size: 0.4em; color: var(--rg-brass); margin-left: 0.15rem; }

.rg-hero__window { position: relative; }
.rg-hero__window-cap {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rg-muted); padding: 0.7rem 0.2rem 0;
}

.rg-quote-card { position: relative; }
.rg-quote-card__media {
  aspect-ratio: 16 / 10; border-radius: var(--rg-radius);
  background-color: #1C2B24; background-size: cover; background-position: center;
}
.rg-quote-card__body {
  background: #fff; border: 1px solid var(--rg-line); border-radius: var(--rg-radius);
  padding: 1.6rem; margin-top: -3.2rem; position: relative; margin-inline: 1rem;
  box-shadow: var(--rg-shadow);
}
.rg-quote-card__glyph { color: var(--rg-brass); font-size: 1.6rem; }
.rg-quote-card__avatar { border-radius: 50%; object-fit: cover; background-color: #243029; }
.rg-quote-card__meta { display: flex; align-items: center; gap: 0.8rem; }

.rg-billing-toggle { display: inline-flex; gap: 0.5rem; align-items: center; }
.rg-billing-toggle .is-active { background: var(--rg-pine); color: #F3EDDC; border-color: var(--rg-pine); }

.rg-bento__cta { display: inline-flex; align-items: center; font-family: var(--rg-font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-brass); margin-top: 0.6rem; }
.rg-bento__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

.rg-toast.is-leaving { opacity: 0; transform: translateY(10px); transition: all 0.35s ease; }
.rg-toast-wrap { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.55rem; max-width: min(420px, calc(100vw - 2.2rem)); }
.rg-toast { display: flex; align-items: flex-start; gap: 0.7rem; background: var(--rg-pine); color: #F3EDDA; padding: 0.9rem 1.1rem; border-radius: 6px; box-shadow: 0 18px 44px rgba(10, 24, 18, 0.35); font-size: 0.92rem; animation: rg-toast-in 0.28s ease; }
.rg-toast i { margin-top: 0.2rem; color: var(--rg-brass); }
.rg-toast--error { background: #7A2E21; }
@keyframes rg-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.rg-cookie__icon { font-size: 1.5rem; color: var(--rg-brass); flex: none; }

/* footer bottom row */
.rg-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; padding: 1.1rem 0; }
.rg-footer__bottom-links { display: inline-flex; gap: 1.2rem; }
