/* ══════════════════════════════════════════════════
   shared.css — RBD. Design System
   Single source of truth for all shared styles.
   Page-specific overrides go in each file's <style>.
   ══════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── COLOR TOKENS ── */
:root {
  --red:        #CA3645;
  --red-l:      #EF4A59;
  --navy:       #2F4880;
  --blue:       #4A9AD4;
  --gold:       #EAB048;
  --gold-l:     #EFC37E;
  --ink:        #2C2C29;
  --graphite:   #464643;
  --slate:      #5E5E5A;
  --stone:      #7D7D79;
  --pewter:     #A8A8A4;
  --silver:     #D0D0CD;
  --mist:       #E8E8E6;
  --cloud:      #F3F3F2;
  --snow:       #FAFBFC;
  --white:      #FFFFFF;
  --purple:     #6E32B4;
  --magenta:    #A0288C;
  --navy-deep:  #0F1B2A;
  --slate-blue: #3A5068;
}

/* ── BASE TYPOGRAPHY ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

/* ── MONO SHIMMER LABELS ── */
@keyframes monoShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.mono {
  font-family: 'IBM Plex Mono', 'SF Mono', 'Consolas', monospace;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--navy) 0%, var(--navy) 38%,
    #8faad8 48%, #bfcfe8 50%, #8faad8 52%,
    var(--navy) 62%, var(--navy) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: monoShimmer 5s linear infinite;
}

/* ── SECTION LABEL + NODE DOT ── */
.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* ── LAYOUT ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 600px)  { .container { padding: 0 20px; } }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
}
.btn-primary:hover {
  background: #243a68;
  border-color: #243a68;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--silver);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border: 1.5px solid var(--blue);
}
.btn-blue:hover {
  background: #3d8ac2;
  border-color: #3d8ac2;
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--white);
}
.btn-white:hover { background: var(--snow); }

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-sm { padding: 9px 18px; font-size: 0.78rem; }

.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── SPECTRAL BAR ── */
.spectral-bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #6E32B4 0%, #A0288C 20%, #CA3645 40%,
    #EAB048 60%, #4A9AD4 80%, #2F4880 100%
  );
  flex-shrink: 0;
}

/* ── SCROLL REVEAL ── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rv.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVIGATION ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  background: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.nav-cta:hover { background: #243a68; }

@media (max-width: 1024px) {
  #nav { padding: 0 24px; }
  .nav-links { display: none; }
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    #6E32B4 0%, #A0288C 20%, #CA3645 40%,
    #EAB048 60%, #4A9AD4 80%, #2F4880 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 99;
  transition: transform 80ms linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  #scroll-progress { transition: none; }
}

/* ── FOOTER ── */
#footer {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.footer-spectral {
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #6E32B4 0%, #A0288C 20%, #CA3645 40%,
    #EAB048 60%, #4A9AD4 80%, #2F4880 100%
  );
}

.footer-inner { padding: 64px 48px 40px; }

.footer-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 52px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 28px;
  width: auto;
  opacity: 0.9;
  display: block;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 52px;
}

.footer-col-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.18s;
  line-height: 1.4;
}
.footer-links a:hover { color: rgba(255,255,255,0.95); }

.footer-newsletter-input-row { display: flex; gap: 0; margin-top: 12px; }
.footer-newsletter-input-row input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--white);
  padding: 9px 12px;
  outline: none;
}
.footer-newsletter-input-row input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter-input-row button {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 9px 14px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.footer-newsletter-input-row button:hover { background: #243a68; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

.footer-email a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}
.footer-email a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(3, auto); }
  .footer-inner { padding: 48px 32px 32px; }
}

@media (max-width: 600px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-inner { padding: 40px 20px 28px; }
}

/* ── BRIEF DISPLAY CARD (premium exhibit preview) ── */
.brief-display {
  padding: 72px 0;
  background: var(--white);
}
.brief-display-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--cloud);
  border: 1px solid var(--mist);
  padding: 52px 48px 48px;
  text-align: center;
  position: relative;
}
.brief-display-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
}
.brief-display-lock {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.brief-display-lock svg {
  width: 28px;
  height: 28px;
  color: var(--navy);
  opacity: 0.5;
}
.brief-display-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 24px;
}
.brief-display-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 28px;
}
.brief-display-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.brief-display-specs li {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brief-display-specs li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .brief-display-card { padding: 40px 28px 36px; }
  .brief-display-specs { align-items: flex-start; }
}

/* ── PURCHASE BUTTON SHIMMER ── */
@keyframes purchaseShimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.purchase-btn {
  position: relative;
  overflow: hidden;
}
.purchase-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 40%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.35) 60%,
    transparent 100%
  );
  transition: none;
  pointer-events: none;
}
.purchase-btn:hover::after {
  animation: purchaseShimmer 0.6s ease forwards;
}

/* ── TOC BOLD TITLES ── */
.toc-title strong,
.whats-inside-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── CTA BAND ── */
.cta-band { background: var(--cloud); padding: 96px 0; }
.cta-band h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--ink); margin-bottom: 20px; max-width: 600px; line-height: 1.3; }
.cta-band p { font-size: 0.95rem; color: var(--slate); line-height: 1.7; max-width: 520px; margin-bottom: 36px; }
.cta-btn { display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500; color: var(--white); background: var(--navy); border: 1.5px solid var(--navy); padding: 13px 28px; border-radius: 2px; text-decoration: none; letter-spacing: 0.03em; transition: all 0.25s; }
.cta-btn:hover { background: #243a68; transform: translateY(-1px); }

/* ── PRINT ── */
@media print {
  #nav, #scroll-progress { display: none; }
  .rv { opacity: 1; transform: none; }
  body { font-size: 11pt; }
}
