/* =========================================================================
   RARU — Shared Design System
   One stylesheet, used by every page. Keep new page-specific rules inside
   the "PAGE-SPECIFIC" section at the bottom, scoped with a body class.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---------- Design tokens ---------- */
:root {
  /* Palette — warm ivory + deep navy + brushed gold: "modern private wealth", not "fintech startup" */
  --ivory: #FFFFFF;
  --ivory-soft: #F7F7F5;
  --navy: #0E1B2B;
  --navy-soft: #16283D;
  --navy-line: rgba(14, 27, 43, 0.12);

  --gold: #A9803E;        /* for light backgrounds — meets AA on ivory as a large/UI element */
  --gold-light: #C9A25E;  /* for dark backgrounds */
  --sky: #86B6E3;         /* benchmark line on the PVGF chart's navy panel */

  --text: #1B2430;
  --text-muted: #5B6472;
  --text-invert: #F3EFE4;
  --text-invert-muted: #AEB6C4;

  --success: #3F7A5C;
  --error: #B4453A;

  /* Type */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing / shape */
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1360px;
  --shadow-soft: 0 20px 50px -25px rgba(14, 27, 43, 0.35);
  --shadow-tight: 0 8px 24px -12px rgba(14, 27, 43, 0.3);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text-muted); }
p.lead { font-size: 1.15rem; color: var(--text); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.section--navy .eyebrow,
.site-footer .eyebrow { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn--gold { background: var(--gold); color: var(--ivory); }
.btn--gold:hover { background: #93702F; }

.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy-line); }
.btn--outline-navy:hover { border-color: var(--navy); }

.btn--outline-light { background: transparent; color: var(--text-invert); border-color: rgba(243,239,228,0.3); }
.btn--outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn--ghost { background: rgba(243,239,228,0.08); color: var(--text-invert); border-color: rgba(243,239,228,0.16); }
.btn--ghost:hover { background: rgba(243,239,228,0.14); }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 27, 43, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(243, 239, 228, 0.08);
}
/* Logo on the right, nav links centered, hamburger (mobile) on the left —
   a 3-column grid so the centered nav stays centered regardless of how wide
   the logo block or the (usually empty on desktop) actions column are. */
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.header-actions { grid-column: 1; grid-row: 1; justify-self: start; }
.nav-primary { grid-column: 2; grid-row: 1; justify-self: center; }
.brand { grid-column: 3; grid-row: 1; justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
}
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-invert);
}
.brand__mark span { color: var(--gold-light); }

.brand__logo { height: 48px; width: auto; display: block; }
.footer__brand .brand__logo { height: 40px; }
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}
.header-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
  white-space: nowrap;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-primary a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-invert-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-primary a:hover { color: var(--text-invert); }
.nav-primary a[aria-current="page"] {
  color: var(--navy);
  background: var(--gold-light);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 30px; height: 2.5px; background: var(--text-invert); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #1B3350 0%, var(--navy) 55%, #0A141F 100%);
  color: var(--text-invert);
  overflow: hidden;
  padding-block: 120px 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(201,162,94,0.06) 0 1px, transparent 1px 90px);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero--page { padding-block: 84px 70px; }

.hero__content { max-width: 760px; }
.hero__content .eyebrow { margin-bottom: 22px; }
.hero__content h1 { color: var(--text-invert); margin-bottom: 22px; }
.hero__content p.lead { color: var(--text-invert-muted); max-width: 620px; margin-bottom: 36px; font-size: 1.15rem; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats-bar {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid rgba(243,239,228,0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--gold-light);
  font-weight: 600;
}
.stat__label {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-invert-muted);
  letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; scroll-margin-top: 92px; }
.section--soft { background: var(--ivory-soft); }
.section--navy { background: var(--navy); color: var(--text-invert); }
.section--navy p { color: var(--text-invert-muted); }
.section--navy h2, .section--navy h3 { color: var(--text-invert); }
.section--tight { padding-block: 64px; }

.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-top: 14px; }
.section__head p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-tight); border-color: var(--navy); }

.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  color: var(--ivory);
  margin-bottom: 22px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; color: var(--ivory); transition: color 0.3s var(--ease); }
.card p { font-size: 0.95rem; margin-bottom: 18px; color: rgba(255,255,255,0.85); }
/* Default: navy, for the many standalone/on-light-background uses of this
   link style. Inside an actual (gold) .card, it flips to ivory instead —
   scoped so one doesn't camouflage the other. */
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.card__link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.card .card__link { color: var(--ivory); transition: color 0.3s var(--ease); }
.card:hover .card__link svg { transform: translate(3px, -3px); }
/* Whole-card links (not the non-clickable .team-card divs) — flip the title
   and "Learn more" text to navy on hover so it's unmistakable the card is
   about to be clicked through. Site-wide: any <a class="card"> gets this
   automatically, wherever it's used. */
a.card:hover h3 { color: var(--navy); }
a.card:hover .card__link { color: var(--navy); }

/* Vertical accordion — expand-in-place, native <details>/<summary> so it
   works with zero JS and is keyboard/screen-reader accessible by default. */
.vertical-accordion {
  background: #FFFFFF;
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  overflow: hidden;
}
.vertical-accordion + .vertical-accordion { margin-top: 16px; }
.vertical-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 24px;
  -webkit-tap-highlight-color: transparent;
}
.vertical-accordion summary::-webkit-details-marker { display: none; }
.vertical-accordion__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vertical-accordion__title { display: flex; flex-direction: column; gap: 4px; }
.vertical-accordion__tag {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold);
}
.vertical-accordion__title h3 { font-size: 1.15rem; }
.vertical-accordion__chevron {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--navy-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.vertical-accordion[open] .vertical-accordion__chevron { transform: rotate(45deg); }
.vertical-accordion__body { padding: 0 32px 32px 32px; }
.vertical-accordion__body p { max-width: 68ch; }
.vertical-accordion__badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(169,128,62,0.1);
  border: 1px solid rgba(169,128,62,0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 10px;
}

/* Vertical (business-line) card with anchor targets */
.vertical {
  scroll-margin-top: 100px;
  background: #FFFFFF;
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 28px;
  align-items: start;
}
.vertical + .vertical { margin-top: 22px; }
.vertical__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.vertical__icon svg { width: 28px; height: 28px; }
.vertical__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(169,128,62,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.vertical h3 { margin-bottom: 8px; }
.vertical p { max-width: 60ch; }
.vertical__actions { display: flex; flex-direction: column; gap: 10px; align-self: center; }

.vertical__stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.vertical__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ivory-soft);
  border: 1px solid var(--navy-line);
  font-size: 0.82rem;
}
.vertical__stat strong { font-family: var(--font-display); color: var(--navy); font-size: 0.95rem; }
.vertical__stat span { color: var(--text-muted); }

.vertical__sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vertical__sub li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(169,128,62,0.08);
  border: 1px solid rgba(169,128,62,0.2);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Principle cards */
.principle { padding: 36px 30px; }
.principle__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ivory);
  margin-bottom: 18px;
  display: block;
}

/* Team */
.team-card { text-align: left; }
.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-soft), var(--navy));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  margin-bottom: 20px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__role { color: var(--ivory); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 4px; }
.team-card__note { font-size: 0.85rem; font-style: italic; color: rgba(255,255,255,0.75); margin-top: 10px; }

/* Quote */
.quote {
  border-left: 3px solid var(--gold);
  padding-left: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--navy);
  max-width: 780px;
}
.section--navy .quote { color: var(--text-invert); border-color: var(--gold-light); }
.quote cite { display: block; margin-top: 20px; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--text-invert);
  border-radius: 24px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 100% 0%, rgba(201,162,94,0.16), transparent 60%);
  pointer-events: none;
}
.cta-band__content { position: relative; max-width: 560px; }
/* .cta-band always sits on the navy background, but h1-h4 default to navy
   text — without this, headings that forget an inline color override go
   invisible (navy-on-navy). Setting it here means that can't happen again. */
.cta-band__content h2, .cta-band__content h3 { color: var(--text-invert); }
.cta-band__actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* Timeline (About) */
.timeline { border-left: 1px solid var(--navy-line); padding-left: 36px; display: flex; flex-direction: column; gap: 40px; }
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute; left: -42px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--gold);
}
.timeline__year { font-family: var(--font-display); color: var(--gold); font-size: 1rem; margin-bottom: 6px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-line);
  background: #FFFFFF;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169,128,62,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: 0.8rem; color: var(--text-muted); }
.form__status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.form__status--success { display: block; background: rgba(63,122,92,0.12); color: var(--success); }
.form__status--error { display: block; background: rgba(180,69,58,0.12); color: var(--error); }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info__item h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 8px; }
.contact-info__item p { color: var(--navy); font-size: 1.02rem; }

.office-card { display: flex; flex-direction: column; gap: 18px; }
.office-card__tag {
  display: inline-flex; align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ivory); background: rgba(255,255,255,0.16);
  padding: 4px 10px; border-radius: 999px;
}
.office-card__row { display: flex; align-items: flex-start; gap: 12px; }
.office-card__row svg { flex-shrink: 0; margin-top: 3px; color: var(--ivory); }
.office-card__row a, .office-card__row span { color: var(--ivory); font-size: 0.96rem; line-height: 1.55; }
.office-card__row a:hover { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-invert-muted); padding-block: 72px 32px; }
.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(243,239,228,0.1);
}
.footer__brand { max-width: 320px; }
.footer__col { min-width: 140px; }
.footer__brand p { max-width: 300px; margin-top: 16px; font-size: 0.9rem; color: var(--text-invert-muted); }
.footer__col h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-invert); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--gold-light); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(243,239,228,0.18);
  display: flex; align-items: center; justify-content: center;
}
.footer__social a:hover { border-color: var(--gold-light); }
.footer__social svg { width: 16px; height: 16px; }

/* Copyright + entity line share one row, spread left-to-right; the longer
   regulatory paragraph (.footer__legal-note, below) gets its own full-width
   line. All three still share the same size/weight so none outranks another. */
.footer__bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-invert-muted);
}
.footer__legal-note {
  font-size: 0.82rem;
  color: var(--text-invert-muted);
  max-width: 820px;
  line-height: 1.6;
}
.footer__credit {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(243,239,228,0.08);
  font-size: 0.78rem;
  color: var(--text-invert-muted);
  text-align: center;
}
.footer__credit a { color: var(--text-invert-muted); font-weight: 600; transition: color 0.2s var(--ease); }
.footer__credit a:hover { color: var(--gold-light); }

/* ---------- Scroll reveal ----------
   Scoped under .js (set by an inline script in <head>) so content is visible
   by default when JavaScript is unavailable/blocked, instead of staying at
   opacity:0 forever. main.js's IntersectionObserver fallback still covers
   browsers that have JS but not IntersectionObserver. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Splash screen ----------
   Hidden by default (and for no-JS visitors). The inline <head> script sets
   .show-splash on <html> synchronously, before paint, only when this browser
   tab's sessionStorage doesn't already have raru-splash-shown — so it's shown
   once per session, not on every page navigation. main.js removes it after a
   short minimum display time once the page has actually loaded. */
.splash-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}
.js.show-splash .splash-screen { display: flex; }
.splash-screen.is-hiding { opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.splash-screen__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.splash-screen__logo {
  width: 156px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
  transform: scale(0.94);
  animation: splash-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* A single calm fade + gentle settle — no rotation, no bounce. A thin gold
   rule draws in underneath right after, the way a considered, restrained
   preloader reveal works (e.g. syncorp.in) rather than a flashy flip. */
@keyframes splash-reveal {
  0%   { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
.splash-screen__rule {
  width: 0;
  height: 2px;
  background: var(--gold-light);
  animation: splash-rule 0.6s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes splash-rule {
  from { width: 0; }
  to { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-screen__logo { animation: none; opacity: 1; filter: none; transform: none; }
  .splash-screen__rule { animation: none; width: 64px; }
}

/* ---------- Legal pages ---------- */
.legal-banner {
  background: rgba(180,69,58,0.08);
  border: 1px solid rgba(180,69,58,0.25);
  color: var(--error);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 48px;
}
.legal-body h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.3rem; }
.legal-body p, .legal-body li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; list-style: disc; }

/* ---------- PVGF performance chart (home page) ---------- */
.pvgf-chart {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #1B3350 0%, var(--navy) 55%, #0A141F 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 26px 28px 18px;
  box-shadow: var(--shadow-soft);
}
.pvgf-chart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.pvgf-chart__legend { display: flex; gap: 26px; flex-wrap: wrap; row-gap: 8px; }
.pvgf-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-invert-muted);
}
.pvgf-chart__legend-swatch { width: 16px; height: 0; border-top: 2.5px solid; display: inline-block; }
.pvgf-chart__legend-swatch--pvgf { border-color: var(--gold-light); }
.pvgf-chart__legend-swatch--smallcap { border-top-style: dashed; border-color: var(--sky); }
.pvgf-chart__legend-value { font-weight: 700; }
.pvgf-chart__legend-value--pvgf { color: var(--gold-light); }
.pvgf-chart__legend-value--smallcap { color: var(--sky); }
.pvgf-chart__meta { font-size: 0.78rem; color: var(--text-invert-muted); font-style: italic; }
.pvgf-chart__canvas-wrap { width: 100%; position: relative; }
.pvgf-chart__svg { width: 100%; height: auto; overflow: visible; display: block; }
.pvgf-chart__grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.pvgf-chart__zero { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; stroke-dasharray: 3 3; }
.pvgf-chart__guide { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.pvgf-chart__axis-label { font-family: var(--font-body); font-size: 11px; fill: var(--text-invert-muted); }
.pvgf-chart__line-pvgf { stroke: var(--gold-light); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pvgf-chart__line-pvgf-dot { fill: var(--gold-light); }
.pvgf-chart__line-smallcap { stroke: var(--sky); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 6 5; }
.pvgf-chart__line-smallcap-dot { fill: var(--sky); }
.pvgf-chart__hover-dot { opacity: 0; }
.pvgf-chart__end-label { font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.pvgf-chart__end-label--pvgf { fill: var(--gold-light); }
.pvgf-chart__end-label--smallcap { fill: var(--sky); }
.pvgf-chart__capture { fill: transparent; cursor: crosshair; }
.pvgf-chart__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  color: var(--text-invert-muted);
}
.pvgf-chart__note { margin-top: 28px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }

.pvgf-chart__tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: #0A141F;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-invert);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.12s var(--ease);
  z-index: 5;
  transform: translateY(-100%);
}
.pvgf-chart__tooltip.is-visible { opacity: 1; }
.pvgf-chart__tooltip-date { font-weight: 700; margin-bottom: 6px; letter-spacing: 0.01em; }
.pvgf-chart__tooltip-row { display: flex; align-items: center; gap: 7px; }
.pvgf-chart__tooltip-row + .pvgf-chart__tooltip-row { margin-top: 4px; }
.pvgf-chart__tooltip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pvgf-chart__tooltip-label { color: var(--text-invert-muted); }
.pvgf-chart__tooltip-val { font-weight: 700; margin-left: auto; padding-left: 14px; }

.pvgf-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pvgf-stat {
  background: var(--gold);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  text-align: center;
}
.pvgf-stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ivory);
  font-weight: 600;
}
.pvgf-stat__label {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(247,244,236,0.8);
  letter-spacing: 0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .vertical { grid-template-columns: 56px 1fr; }
  .vertical__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; margin-top: 8px; }
  .form__row { grid-template-columns: 1fr; }
  .pvgf-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to the hamburger menu well before the desktop nav (6 links +
   button) would run out of room and clip/overflow — verified against actual
   rendered width, not guessed. */
@media (max-width: 900px) {
  .nav-primary, .header-actions .btn--outline-light, .header-tagline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav-primary {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px 28px;
    border-bottom: 1px solid rgba(243,239,228,0.1);
  }
  .site-header.is-open .nav-primary a { width: 100%; padding: 12px 14px; }
}

@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__brand, .footer__col { max-width: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .vertical-accordion summary { grid-template-columns: 44px 1fr auto; padding: 22px 20px; gap: 16px; }
  .vertical-accordion__icon { width: 44px; height: 44px; border-radius: 12px; }
  .vertical-accordion__body { padding: 0 20px 24px 20px; }
  .pvgf-chart { padding: 20px 16px 14px; }
  .pvgf-chart__tooltip { font-size: 0.74rem; padding: 8px 11px; }
  .pvgf-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
}
