/* Riviera Capital Partners — Option B v2
   Institutional minimal, warm navy + bone, old-gold accent
   ----------------------------------------------------------- */
:root {
  --bg: #0a1628;          /* deep navy (matches logo) */
  --bg-2: #0e1d33;
  --surface: #122445;
  --ink: #f4f1ea;          /* warm bone */
  --ink-dim: #cbc7bd;
  --muted: #8a94a6;
  --rule: rgba(244, 241, 234, 0.12);
  --rule-strong: rgba(244, 241, 234, 0.24);
  --accent: #c9a96e;        /* old gold */
  --accent-dim: #8f7a4e;
  --green: #7fc39b;
  --red: #e08464;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.serif { font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif; }
.upper { text-transform: uppercase; letter-spacing: 0.15em; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* ===== Motion utilities ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ===== Header ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, 0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; display: block; }
.brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--ink);
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 34px;
  font-size: 13.5px; font-weight: 450; color: var(--ink-dim);
}
.nav-links a { color: inherit; text-decoration: none; transition: color .2s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--bg);
  background: var(--accent); padding: 10px 18px;
  text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--ink); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: calc(100vh - 73px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover; background-position: center 30%;
  opacity: 0.28; filter: saturate(0.7) contrast(1.05);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.5) 0%, rgba(10,22,40,0.78) 50%, var(--bg) 100%),
              radial-gradient(ellipse at 20% 20%, rgba(201,169,110,0.08), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 80px 1fr 440px; gap: 40px; }
.hero-sidebar {
  font-size: 10.5px; color: var(--muted); letter-spacing: 0.15em;
  writing-mode: vertical-rl; transform: rotate(180deg);
  align-self: start;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--accent); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 36px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
h1.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: clamp(56px, 8.5vw, 124px);
  line-height: 0.96; letter-spacing: -0.03em; margin: 0;
  color: var(--ink);
}
h1.hero-title em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-sub {
  max-width: 580px; margin-top: 40px;
  font-size: 18px; line-height: 1.6; color: var(--ink-dim);
}
.hero-aside { align-self: end; }
.hero-cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.cta-block {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.cta-block.primary { background: var(--ink); color: var(--bg); }
.cta-block.primary:hover { background: var(--accent); transform: translateX(4px); }
.cta-block.ghost { border: 1px solid var(--rule-strong); color: var(--ink); }
.cta-block.ghost:hover { border-color: var(--accent); color: var(--accent); }
.cta-block .arrow { transition: transform .25s ease; }
.cta-block:hover .arrow { transform: translateX(4px); }

/* Hero stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 72px; max-width: 960px;
}
.stat-item { border-top: 1px solid var(--accent); padding-top: 18px; }
.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: 40px; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
}
.stat-label {
  margin-top: 8px; font-size: 10.5px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4;
}

/* Ticker */
.ticker {
  position: relative; overflow: hidden; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); background: var(--bg-2);
  padding: 16px 0; margin-top: 80px;
}
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: marquee 90s linear infinite;
  font-size: 11px; color: var(--muted); letter-spacing: 0.1em;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-eyebrow .dot { animation: none; }
}
.ticker-item { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ticker-item strong { color: var(--ink); font-weight: 500; }
.ticker-item .gold { color: var(--accent); }
.ticker-sep { color: var(--accent-dim); }

/* ===== Section header ===== */
section { scroll-margin-top: 90px; }
.section { padding: 110px 0; border-bottom: 1px solid var(--rule); position: relative; }
.section.surface { background: var(--bg-2); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-bottom: 56px; align-items: end;
}
.section-num {
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px;
}
h2.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.98; letter-spacing: -0.02em; margin: 0;
  color: var(--ink);
}
h2.section-title em { font-style: italic; font-weight: 400; color: var(--accent); }
.section-lede {
  font-size: 16px; line-height: 1.6; color: var(--ink-dim);
  max-width: 440px; margin: 0;
}

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.about-body p {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 24px; line-height: 1.45; color: var(--ink);
  margin: 0 0 24px;
}
.about-body p.lede { font-size: 30px; line-height: 1.35; }
.about-body em { color: var(--accent); font-style: italic; }
.about-pillars { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pillar {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--rule); align-items: baseline;
}
.pillar-num { color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }
.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: 26px; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 6px;
}
.pillar-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-dim); margin: 0; }

/* ===== Programs ===== */
.programs-table {
  border: 1px solid var(--rule); background: var(--bg-2);
}
.programs-head, .programs-row {
  display: grid;
  grid-template-columns: 64px minmax(220px, 1.3fr) minmax(320px, 2.4fr) 130px 48px;
  align-items: center;
  gap: 32px;
}
.programs-head {
  padding: 22px 40px; border-bottom: 1px solid var(--rule);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.programs-row {
  padding: 32px 40px; border-bottom: 1px solid var(--rule);
  font-size: 15px; color: var(--ink); cursor: pointer;
  transition: background .25s ease, padding .25s ease;
}
.programs-row:last-of-type { border-bottom: none; }
.programs-row:hover { background: rgba(201, 169, 110, 0.05); }
.programs-row:hover .prog-arrow { color: var(--accent); transform: translateX(6px); }
.prog-num { color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; }
.prog-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1;
}
.prog-purpose { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; }
.prog-fig { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-dim); letter-spacing: 0.04em; }
.prog-arrow {
  color: var(--muted); font-family: 'IBM Plex Mono', monospace;
  text-align: right; transition: transform .25s ease, color .25s ease;
}
.programs-foot {
  display: flex; justify-content: space-between; padding: 22px 40px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase;
  border-top: 1px solid var(--rule);
}

/* Program cards (below table) */
.program-gallery {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-top: 24px;
}
.prog-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  background: var(--surface);
}
.prog-card img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55; transition: opacity .5s ease, transform 1.2s ease;
  filter: saturate(0.75) contrast(1.05);
}
.prog-card:hover img { opacity: 0.85; transform: scale(1.04); }
.prog-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.1) 0%, rgba(10,22,40,0.85) 100%);
  pointer-events: none;
}
.prog-card-label {
  position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 2;
}
.prog-card-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: var(--accent); letter-spacing: 0.15em; margin-bottom: 6px;
}
.prog-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1;
}

/* Invest section (bottom of page) */
.invest-section {
  position: relative;
  padding: 140px 0 160px;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.invest-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(201, 169, 110, 0.12), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(201, 169, 110, 0.06), transparent 50%);
  pointer-events: none;
}
.invest-section .invest-inner {
  position: relative; max-width: 880px; text-align: center; margin: 0 auto;
}
.invest-eyebrow {
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 28px;
}
.invest-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: clamp(44px, 6vw, 80px);
  line-height: 1; letter-spacing: -0.025em; margin: 0 0 32px;
  color: var(--ink);
}
.invest-headline em { font-style: italic; font-weight: 400; color: var(--accent); }
.invest-lede {
  font-size: 18px; line-height: 1.6; color: var(--ink-dim);
  margin: 0 auto 44px; max-width: 620px;
}
.invest-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 28px; background: var(--accent); color: var(--bg);
  text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .25s ease, transform .25s ease, gap .25s ease;
}
.invest-cta:hover { background: var(--ink); transform: translateY(-2px); gap: 20px; }
.invest-cta .arrow { transition: transform .25s ease; }
.invest-cta:hover .arrow { transform: translateX(4px); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule); background: var(--bg);
}
.step {
  padding: 36px 32px; position: relative; min-height: 280px;
  border-right: 1px solid var(--rule);
}
.step:last-child { border-right: none; }
.step-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.step-num {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 56px; font-weight: 400; color: var(--accent); line-height: 0.9;
}
.step-time {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase;
}
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 14px;
}
.step-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-dim); margin: 0; }

/* ===== Team ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--rule);
}
.team-card {
  padding: 36px; border-right: 1px solid var(--rule); background: var(--bg);
}
.team-card:last-child { border-right: none; }
.team-photo {
  width: 100%; aspect-ratio: 4/5; overflow: hidden;
  background: var(--surface); margin-bottom: 28px; position: relative;
}
.team-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transition: opacity .6s ease, transform 1.2s ease;
}
.team-photo .photo-tone {
  filter: url(#duotone-navy-bone) contrast(1.05);
  opacity: 0.85;
}
.team-card:hover .team-photo .photo-tone { opacity: 0; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-photo-meta {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px;
  color: rgba(244, 241, 234, 0.8); letter-spacing: 0.15em; text-transform: uppercase;
  pointer-events: none; mix-blend-mode: difference;
}
.team-role {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 8px;
}
.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: 34px; letter-spacing: -0.015em; line-height: 1;
  color: var(--ink); margin: 0 0 20px;
}
.team-bio { font-size: 14.5px; line-height: 1.65; color: var(--ink-dim); margin: 0; }

/* ===== Contact ===== */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: clamp(56px, 7.5vw, 108px);
  line-height: 0.95; letter-spacing: -0.025em; margin: 0;
}
.contact-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.contact-lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-dim); margin: 28px 0 40px; max-width: 440px;
}
.contact-card {
  border: 1px solid var(--rule); background: var(--bg-2);
  padding: 40px;
}
.contact-row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .k {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase;
}
.contact-row .v {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.contact-row .v a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
.contact-row .v a:hover { color: var(--accent); }
.contact-cta {
  margin-top: 28px; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: var(--accent); color: var(--bg);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background .25s ease, transform .25s ease;
}
.contact-cta:hover { background: var(--ink); transform: translateY(-2px); }

/* ===== Footer ===== */
footer { padding: 60px 0 32px; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-about { max-width: 360px; }
.footer-about img { height: 44px; margin-bottom: 20px; display: block; }
.footer-about p { font-size: 14px; line-height: 1.6; color: var(--ink-dim); margin: 0; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px; font-weight: 500;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--ink-dim);
  text-decoration: none; margin-bottom: 10px; transition: color .2s ease;
}
.footer-col a:hover { color: var(--ink); }
.legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
  padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
}
.legal .licenses { display: flex; gap: 28px; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-sidebar { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .invest-section { padding: 96px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .programs-head { display: none; }
  .programs-row { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .program-gallery { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: none; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .legal { flex-direction: column; gap: 12px; }
}
