/* Container Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Background Ambient Orbs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  max-width: 100vw;
  overflow: hidden;
}

.glow-top-right {
  top: -10%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(143, 212, 248, 0.12) 0%, rgba(21, 94, 239, 0.04) 60%, transparent 80%);
}

.glow-mid-left {
  top: 40%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(186, 157, 101, 0.08) 0%, rgba(14, 24, 44, 0.02) 60%, transparent 80%);
}

@media (max-width: 768px) {
  .ambient-glow {
    display: none !important;
  }
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 900;
  background: rgba(8, 9, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(8, 9, 15, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(143, 212, 248, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: var(--transition);
}

.brand-logo:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

.brand-logo img,
.brand-logo svg {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.nav-item {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-main);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-ice), var(--accent-gold));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--nav-height));
  background: rgba(5, 7, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 850;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.35s;
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 0 24px;
  gap: 0;
}

.mobile-drawer .nav-item {
  display: flex;
  align-items: center;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-drawer .nav-item:last-child {
  border-bottom: none;
}

.mobile-drawer .nav-item:hover,
.mobile-drawer .nav-item.active {
  color: var(--text-main);
  padding-left: 8px;
}

.mobile-drawer .nav-item.active {
  color: var(--accent-gold-light);
}

.mobile-drawer .btn {
  margin: 24px;
  padding: 16px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Section Common Styles */
section {
  position: relative;
  padding: 110px 0;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Short sections (CTA banners, metric strips) don't need full viewport height */
#bottom-cta-section,
#metrics-section {
  min-height: auto;
}

.section-header {
  margin-bottom: 56px;
  max-width: 720px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-section {
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* Background Slideshow */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.8s ease-in-out, transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(5, 7, 10, 0.82) 0%, rgba(5, 7, 10, 0.88) 50%, var(--bg-primary) 100%),
    radial-gradient(circle at 75% 35%, rgba(197, 160, 89, 0.10) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  color: var(--text-main);
  word-break: normal;
  overflow-wrap: normal;
}

.hero-title .highlight-blue {
  color: var(--accent-ice);
  font-style: italic;
}

.hero-title .highlight-gold {
  color: var(--accent-gold-light);
  font-style: italic;
}

.hero-description {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-ice);
  box-shadow: 0 0 10px var(--accent-ice);
}

/* Card Stack Scene (Hero Graphic) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  padding: 40px 0;
}

.card-stage {
  position: relative;
  width: 380px;
  height: 480px;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px dashed rgba(143, 212, 248, 0.16);
  pointer-events: none;
  animation: rotateOrbit 40s linear infinite;
}

.orbit-ring-outer {
  width: 540px;
  height: 540px;
  border: 1px solid rgba(186, 157, 101, 0.09);
  animation: rotateOrbitReverse 60s linear infinite;
}

.fin-card {
  position: absolute;
  width: 320px;
  height: 196px;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  user-select: none;
}

.fin-card:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(143, 212, 248, 0.25) !important;
}

/* Card 1 - Corporate (Deep Blue/Glass) */
.fin-card.c-blue {
  top: 20px;
  left: 20px;
  z-index: 1;
  background: linear-gradient(135deg, rgba(14, 28, 56, 0.92) 0%, rgba(9, 17, 33, 0.95) 100%);
  border-color: rgba(143, 212, 248, 0.25);
  transform: rotate(-7deg);
}

/* Card 2 - Private Wealth (Champagne Obsidian) */
.fin-card.c-gold {
  top: 130px;
  left: 50px;
  z-index: 2;
  background: linear-gradient(135deg, rgba(28, 24, 18, 0.94) 0%, rgba(13, 14, 18, 0.96) 100%);
  border-color: rgba(186, 157, 101, 0.35);
  transform: rotate(3deg);
}

/* Card 3 - Signature Desk (Obsidian Mirror) */
.fin-card.c-obsidian {
  top: 240px;
  left: 30px;
  z-index: 3;
  background: linear-gradient(135deg, rgba(18, 23, 36, 0.97) 0%, rgba(6, 8, 14, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(-2deg);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ice);
}

.c-gold .card-top-title {
  color: var(--accent-gold-light);
}

.card-chip {
  width: 36px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e4c787, #9b7a3a);
  position: relative;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.c-blue .card-chip {
  background: linear-gradient(135deg, #8FD4F8, #2a73a6);
}

.card-mid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.card-digits {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.16em;
  color: var(--text-main);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-brand-logo {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

/* Metrics Strip */
.metrics-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 17, 24, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 16px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--accent-ice);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

/* Thesis Section */
.thesis-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-primary) 100%);
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.thesis-quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  color: var(--text-main);
  font-style: italic;
  border-left: 3px solid var(--accent-ice);
  padding-left: 28px;
}

.thesis-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Global Presence Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* CTA Consultation Strip */
.consultation-cta-card {
  background: 
    linear-gradient(135deg, rgba(14, 20, 36, 0.90) 0%, rgba(8, 12, 22, 0.95) 100%),
    url('/images/financial-district-wide.jpg') center center / cover no-repeat;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(143, 212, 248, 0.08);
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 600px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 12px;
}

.cta-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: #05060a;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

#footer-brand-logo-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

#footer-brand-logo-link img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-ice);
  transform: translateX(3px);
}

.footer-disclaimer-card {
  padding: 24px;
  background: rgba(14, 17, 24, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.footer-disclaimer-card strong {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid rgba(238, 242, 247, 0.04);
}

/* Responsive Breakpoints */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-meta-strip {
    justify-content: center;
  }
  .qualifier-funnel-card {
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(24px, 3.8vw, 36px);
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-meta-strip {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .thesis-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .consultation-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
    min-height: calc(100vh - var(--nav-height));
  }
  .hero-section {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 30px);
    padding-bottom: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
  }
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .qualifier-funnel-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .hero-title {
    font-size: clamp(21px, 5vw, 28px) !important;
    line-height: 1.25;
  }
  .brand-logo img {
    height: 38px;
    max-height: 38px;
  }
  .nav-links, .nav-actions .btn-consultation {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .card-stage {
    width: 290px;
    height: 380px;
    transform: scale(0.85);
  }
  /* Form grids mobile stacking */
  [id^="step1-row-"], [id^="step2-row-"], [id^="step3-row-"], [id^="step4-row-"],
  [id^="modal-contact-grid"], [id^="modal-options-grid"],
  [id^="contact-row-"], [id^="contact-layout-grid"],
  [id^="prod-grid-"], [id^="sim-lead-inputs-grid"], [id^="sim-lead-sub-grid"],
  [id^="sim-output-breakdown-grid"], [id^="sim-output-gains-grid"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  #apply-card-wrapper {
    padding: 24px 16px !important;
  }
  #contact-form-column, #contact-direct-card {
    padding: 28px 18px !important;
  }
  [id^="strategy-card-"] {
    padding: 28px 18px !important;
  }
  .modal-dialog {
    padding: 26px 18px !important;
    margin: 16px;
    max-width: 94% !important;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(19px, 5.6vw, 24px) !important;
    line-height: 1.28;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-meta-strip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto 24px auto;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
  }
  .meta-pill {
    font-size: 12.5px;
    gap: 8px;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
