/* ============================================
   v2 Opening — water hero + institutional partners
   Scoped with .v2- prefix to avoid clashing with style.css
   ============================================ */

.v2-opening {
  --v2-ink: #0a0a0a;
  --v2-cream: #f7f3ea;
  --v2-gold: #c9a84c;
  --v2-gold-light: #e0c874;
  --v2-gold-warm: #a8882f;
  --v2-line: rgba(201,168,76,0.18);
  --v2-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --v2-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: block;
  background: var(--v2-ink);
  color: #fff;
}

.v2-top {
  position: relative;
  overflow: hidden;
  background: var(--v2-ink);
  color: #fff;
}

.v2-top__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.v2-top__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.25) 40%, rgba(10,10,10,0.7) 88%, rgba(10,10,10,0.92) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.4) 85%);
  z-index: 1;
}

.v2-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.v2-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 980px;
}

.v2-hero__eyebrow {
  font-family: var(--v2-sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--v2-gold-light);
  margin: 0 0 28px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0;
  animation: v2FadeUp 1s var(--v2-ease) 0.3s forwards;
}

.v2-hero__title {
  font-family: var(--v2-serif);
  font-weight: 500;
  font-size: clamp(54px, 8vw, 120px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  opacity: 0;
  animation: v2FadeUp 1.4s var(--v2-ease) 0.5s forwards;
}
.v2-hero__title em {
  font-style: italic;
  background: linear-gradient(110deg, var(--v2-gold-warm) 0%, var(--v2-gold) 30%, var(--v2-gold-light) 50%, var(--v2-gold) 70%, var(--v2-gold-warm) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: v2Shimmer 7s ease-in-out 2s infinite;
}
@keyframes v2Shimmer {
  0%, 15%   { background-position: 100% 0; }
  50%       { background-position: 0% 0; }
  85%, 100% { background-position: -100% 0; }
}

.v2-hero__sub {
  font-family: var(--v2-sans);
  margin: 28px auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: #8a8a8a;
  font-weight: 300;
  opacity: 0;
  animation: v2FadeUp 1s var(--v2-ease) 0.9s forwards;
}

.v2-hero__locations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 40px 0 0;
  opacity: 0;
  animation: v2FadeUp 1s var(--v2-ease) 1.1s forwards;
}
.v2-hero__pill {
  display: inline-block;
  padding: 10px 26px;
  border: 1.5px solid rgba(201,168,76,0.55);
  border-radius: 999px;
  font-family: var(--v2-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v2-gold-light);
  background: rgba(10,10,10,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: default;
}
.v2-hero__pill:hover {
  border-color: var(--v2-gold-light);
  color: #fff;
  background: rgba(201,168,76,0.12);
}

.v2-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  opacity: 0;
  animation: v2FadeUp 1s var(--v2-ease) 1.3s forwards;
}
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 38px;
  font-family: var(--v2-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  border-radius: 10px;
  transition: transform 0.3s var(--v2-ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
  text-decoration: none;
}
.v2-btn--primary {
  background: linear-gradient(180deg, var(--v2-gold-light) 0%, var(--v2-gold) 100%);
  color: #141414;
  box-shadow: 0 10px 28px rgba(201,168,76,0.28);
}
.v2-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201,168,76,0.4);
}
.v2-btn--ghost {
  background: rgba(10,10,10,0.3);
  color: var(--v2-cream);
  border-color: rgba(247,243,234,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.v2-btn--ghost:hover {
  border-color: var(--v2-gold-light);
  color: var(--v2-gold-light);
}

@keyframes v2FadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Institutional Partners (water continues behind) ---- */
.v2-partners {
  position: relative;
  z-index: 2;
  padding: 48px 0 72px;
  border-top: 1px solid rgba(201,168,76,0.18);
}
.v2-partners__label {
  text-align: center;
  font-family: var(--v2-sans);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--v2-gold-light);
  margin: 0 0 32px;
  font-weight: 500;
}
.v2-partners__marquee {
  display: flex;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.v2-partners__track {
  display: flex;
  gap: 48px;
  flex-shrink: 0;
  animation: v2PartnerScroll 55s linear infinite;
  padding-right: 48px;
  align-items: center;
}
@keyframes v2PartnerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.v2-partner {
  flex-shrink: 0;
  font-family: var(--v2-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(247,243,234,0.7);
  white-space: nowrap;
  transition: color 0.3s;
}
.v2-partner:hover { color: var(--v2-gold-light); }
.v2-partner--serif { font-family: var(--v2-serif); font-weight: 500; font-size: 22px; letter-spacing: 0.04em; }
.v2-partner--italic { font-style: italic; font-weight: 700; }
.v2-partner--thin { font-weight: 300; letter-spacing: 0.22em; }
.v2-partner--logo {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.v2-partner--logo svg,
.v2-partner--logo img {
  height: 48px;
  width: auto;
  display: block;
}
.v2-partner--logo:hover { opacity: 1; }

/* ---- V2 Services ---- */
.v2-services-section {
  --v2-ink: #0a0a0a;
  --v2-cream: #f7f3ea;
  --v2-gold: #c9a84c;
  --v2-gold-light: #e0c874;
  --v2-gold-warm: #a8882f;
  --v2-line: rgba(201,168,76,0.18);
  --v2-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --v2-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding: 140px 0;
  background: var(--v2-cream);
  color: var(--v2-ink);
  position: relative;
}
.v2-services-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.v2-services-eyebrow {
  font-family: var(--v2-sans);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--v2-gold);
  margin: 0 0 20px;
  font-weight: 500;
}
.v2-services-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  max-width: 900px;
  color: var(--v2-ink);
}
.v2-services-title em {
  font-style: italic;
  color: var(--v2-gold);
  font-weight: 600;
}
.v2-services {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(10,10,10,0.12);
  border: 1px solid rgba(10,10,10,0.12);
}
.v2-service {
  background: var(--v2-cream);
  padding: 48px 40px;
  position: relative;
  transition: background 0.4s var(--v2-ease), color 0.4s var(--v2-ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.v2-service:hover {
  background: var(--v2-ink);
  color: var(--v2-cream);
}
.v2-service__num {
  font-family: var(--v2-serif);
  font-size: 40px;
  letter-spacing: 0.04em;
  color: #8a6e1f;
  font-weight: 700;
  display: block;
  margin-bottom: 28px;
  opacity: 1;
  line-height: 1;
}
.v2-service:hover .v2-service__num { color: var(--v2-gold); }
.v2-service h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
  min-height: 60px;
}
.v2-service p {
  font-family: var(--v2-sans);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(10,10,10,0.65);
  margin: 0 0 24px;
  font-weight: 300;
}
.v2-service:hover p { color: rgba(247,243,234,0.7); }
.v2-service__entity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  margin: 0 0 22px;
  border-top: 1px solid rgba(10,10,10,0.09);
  border-bottom: 1px solid rgba(10,10,10,0.09);
  transition: border-color 0.4s var(--v2-ease);
  margin-top: auto;
}
.v2-service:hover .v2-service__entity {
  border-top-color: rgba(247,243,234,0.16);
  border-bottom-color: rgba(247,243,234,0.16);
}
.v2-service__entity-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(10,10,10,0.82);
  letter-spacing: 0.005em;
  transition: color 0.4s var(--v2-ease);
}
.v2-service:hover .v2-service__entity-name {
  color: rgba(247,243,234,0.95);
}
.v2-service__entity-reg {
  font-family: var(--v2-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6e1f;
  transition: color 0.4s var(--v2-ease);
}
.v2-service:hover .v2-service__entity-reg {
  color: var(--v2-gold);
}

.v2-service__link {
  font-family: var(--v2-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v2-gold);
  font-weight: 500;
}

@media (max-width: 800px) {
  .v2-hero { min-height: 560px; }
  .v2-services-section { padding: 80px 0; }
  .v2-services-container { padding: 0 24px; }
}


@media (prefers-reduced-motion: reduce) {
  .v2-opening *, .v2-opening *::before, .v2-opening *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- V2R Offices (dark theme offices block in redesign) ---- */
.v2r-offices {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  padding-bottom: 96px;
  margin-bottom: 96px;
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
.v2r-office {
  border-top: 1px solid rgba(201,168,76,0.22);
  padding-top: 28px;
  text-align: center;
}
.v2r-office__label {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #e0c874;
  font-weight: 600;
  margin-bottom: 18px;
}
.v2r-office h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}
.v2r-office p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247,243,234,0.55);
  font-weight: 300;
  margin: 0;
}

/* Group diagram adjustments on dark background (children cards) */
.group-diagram--dark { margin-top: 0; }
.group-diagram--dark .group-children > .group-card {
  background: linear-gradient(180deg, rgba(20,20,20,0.92) 0%, rgba(14,14,14,0.96) 100%);
  border: 1px solid rgba(201,168,76,0.22);
  color: #f7f3ea;
}
.group-diagram--dark .group-children > .group-card h4 { color: #fff; }
.group-diagram--dark .group-children > .group-card p { color: rgba(247,243,234,0.62); }
.group-diagram--dark .group-children > .group-card .group-card__num { color: rgba(201,168,76,0.8); }
.group-diagram--dark .group-children > .group-card .group-card__loc { color: #fff; }
.group-diagram--dark .group-children > .group-card .group-card__reg { color: #e0c874; }
.group-diagram--dark .group-children > .group-card .group-card__cta { color: #e0c874; }
.group-diagram--dark .group-children > .group-card:hover .group-card__cta,
.group-diagram--dark .group-children > .group-card:hover .group-card__reg { color: #f0dc9a; }
.group-diagram--dark .group-children > .group-card:hover {
  border-color: rgba(224,200,116,0.55);
}

.group-diagram--dark .group-children > a.group-card.group-card--external,
.group-diagram--dark .group-children > .group-card.group-card--external {
  background: linear-gradient(160deg, #d4b45a 0%, #a88a44 45%, #5a4820 100%) !important;
  border: 1px solid rgba(20,20,20,0.35) !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35) !important;
  color: #141414 !important;
}
.group-diagram--dark .group-children > .group-card.group-card--external h4 { color: #141414 !important; }
.group-diagram--dark .group-children > .group-card.group-card--external p { color: rgba(20,20,20,0.82) !important; }
.group-diagram--dark .group-children > .group-card.group-card--external .group-card__num { color: rgba(20,20,20,0.55) !important; }
.group-diagram--dark .group-children > .group-card.group-card--external .group-card__meta { border-top-color: rgba(20,20,20,0.25) !important; }
.group-diagram--dark .group-children > .group-card.group-card--external .group-card__loc { color: #141414 !important; }
.group-diagram--dark .group-children > .group-card.group-card--external .group-card__reg { color: #141414 !important; background: rgba(20,20,20,0.1) !important; border-color: rgba(20,20,20,0.45) !important; font-style: normal !important; font-weight: 700 !important; }
.group-diagram--dark .group-children > .group-card.group-card--external .group-card__cta { color: #141414 !important; font-weight: 700 !important; }
.group-diagram--dark .group-children > .group-card.group-card--external:hover {
  border-color: rgba(20,20,20,0.6) !important;
  box-shadow: 0 0 0 1px rgba(20,20,20,0.35), 0 18px 40px rgba(0,0,0,0.4) !important;
}

/* ---- About intro (Valeur-style chapter intro on pure black) ---- */
.about-intro {
  position: relative;
  background: #000;
  color: #f7f3ea;
  padding: 110px 24px 50px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.about-intro__line {
  position: absolute;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(224,200,116,0.25) 20%, rgba(224,200,116,0.25) 80%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
.about-intro__line--left {
  left: 18%;
  transform: rotate(-12deg);
  transform-origin: top left;
}
.about-intro__line--right {
  right: 18%;
  transform: rotate(12deg);
  transform-origin: top right;
}
.about-intro__inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}
.about-intro__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  filter: drop-shadow(0 0 32px rgba(201,168,76,0.35));
}
.about-intro__logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}
.about-intro__num {
  position: absolute;
  top: -18px;
  right: -26px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c9a84c;
  opacity: 0.85;
}
.about-intro__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 0 0 28px;
  color: #fff;
}
.about-intro__line-wrap { display: inline-block; white-space: nowrap; }
.about-intro__title em {
  font-style: italic;
  display: inline-block;
  padding: 0.05em 0.12em 0.05em 0;
  background: linear-gradient(110deg, #a8882f 0%, #c9a84c 30%, #e0c874 50%, #c9a84c 70%, #a8882f 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}
.about-intro__body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(247,243,234,0.72);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto;
}
.about-intro__body strong {
  color: #fff;
  font-weight: 500;
}
.about-intro__accent {
  color: #e0c874;
  font-weight: 400;
}

@media (max-width: 800px) {
  .about-intro { padding: 80px 20px; }
  .about-intro__line { display: none; }
  .about-intro__logo { width: 100px; height: 100px; }
  .about-intro__body { font-size: 16px; }
}

/* ---- Mobile overflow + layout fixes (640px and below) ---- */
@media (max-width: 640px) {
  /* prevent horizontal bleed from any wide child */
  .v2-opening, .v2-top, .v2-partners, .v2-partners__marquee { max-width: 100vw; overflow-x: hidden; }
  .v2-partners__track { min-width: 0; }

  /* Hero: bigger title, smaller buttons on mobile */
  .v2-hero { padding: 24px; }
  .v2-hero__title { font-size: clamp(48px, 14vw, 68px); line-height: 1.05; }
  .v2-hero__locations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 24px auto 0; max-width: 280px; }
  .v2-hero__locations .v2-hero__pill:nth-child(5) { grid-column: 1 / -1; justify-self: center; min-width: calc(50% - 5px); }
  .v2-hero__pill { font-size: 10px; padding: 7px 10px; text-align: center; }
  .v2-hero__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
  .v2-hero__actions .v2-btn { padding: 12px 20px; font-size: 11px; letter-spacing: 0.12em; width: auto; }

  /* Group parent card ("Run Capital Partners — Group Holding") — allow wrap + smaller */
  .group-card--parent h3 { white-space: normal !important; font-size: 16px !important; letter-spacing: 0.04em; word-break: break-word; }
  .group-card__lockup { flex-wrap: wrap; justify-content: center; text-align: center; }
  .group-card__lockup-text { max-width: 100%; }

  /* "By the numbers" — stack title above stats, full-width stats */
  .numbers-section .numbers-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .numbers-section .numbers-grid > div:last-child { grid-template-columns: 1fr 1fr !important; }

  /* About intro even tighter */
  .about-intro { padding: 64px 20px; }
  .about-intro__mark { margin-bottom: 24px; }
  .about-intro__title { font-size: clamp(26px, 7vw, 34px); }

  /* Offices: single column */
  .v2r-offices { grid-template-columns: 1fr; gap: 24px; padding-bottom: 56px; margin-bottom: 56px; }

  /* Services grid safety */
  .v2-services { grid-template-columns: 1fr; }

  /* Footer: hide redundant Services + Company columns on mobile (already in nav) */
  .footer { padding: 48px 0 24px !important; }
  .footer__grid { gap: 32px !important; }
  .footer__col:nth-child(2),
  .footer__col:nth-child(3) { display: none; }
  .footer__brand { margin-bottom: 0; }
  .footer__legal { font-size: 12px; line-height: 1.5; }
  .footer__col h4 { font-size: 13px; margin-bottom: 12px; }
  .footer__col ul { gap: 8px; }
  .footer__col ul li { font-size: 13px; }
  .footer__bottom { margin-top: 24px !important; padding-top: 16px !important; font-size: 11px; gap: 10px !important; flex-direction: column; text-align: center; }
  .footer__bottom > div { justify-content: center; flex-wrap: wrap; gap: 14px !important; }
}
