﻿/* ============================================================
   Regency Analytics LLC -- Homepage Styles
   Hero, sections, insights, services, about, features,
   contact, modals, reveal, and responsive overrides.
   Requires: tokens.css, base.css loaded first.
   ============================================================ */

/* Reduced motion: pause video, show poster via background fallback */
@media (prefers-reduced-motion: reduce) {
  #heroVideo {
    display: none;
  }
  .hero-media {
    background: var(--navy-900) url('../images/hero-poster.jpg') center 50% / cover no-repeat;
  }
}

/* HERO — full-bleed video banner, consistent height with all inner-page banners */
.hero.hero-split {
  position: relative;
  width: 100%;
  height: clamp(520px, 62vh, 660px);
  overflow: hidden;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
}
.hero-split-inner {
  min-height: 0;
  flex: 1;
  display: flex;
}
.hero-media {
  position: relative;
  flex: 1;
  z-index: 1;
  min-height: 200px;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-video-wrapper .hero-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-video-wrapper.hero-fade-short .hero-video-layer {
  transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-video-wrapper.hero-fade-long .hero-video-layer {
  transition: opacity 2s cubic-bezier(0.42, 0, 0.45, 1);
}
.hero-video-wrapper .hero-video-layer.is-front {
  opacity: 1;
  z-index: 2;
}
.hero-video-wrapper .hero-video-layer.is-back {
  opacity: 0;
  z-index: 1;
}
.hero-media .hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Video fills the full hero — object-position shows the logo and key visual area */
.hero-media .hero-video-layer {
  object-fit: cover;
  object-position: 65% 50%;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  background: var(--navy-900);
}
/* Full-bleed gradient: dark panel left (text readable) → transparent right (logo/video visible) */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(8, 18, 37, 0.94) 0%,
    rgba(8, 18, 37, 0.84) 30%,
    rgba(8, 18, 37, 0.42) 56%,
    rgba(8, 18, 37, 0.08) 76%,
    transparent 100%
  );
}
/* Keep a subtle bottom vignette so the accent bar blends in */
.hero-media::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8,18,37,0.45) 0%, transparent 100%);
}
/* Thin left edge accent — kept for design continuity */
.hero-media-edge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--gold-500), var(--blue-600));
  opacity: 0.6;
}
.hero-accent-bar {
  position: relative;
  flex-shrink: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--blue-600), var(--navy-900));
  z-index: 5;
}
/* Hero copy — sits on the dark left gradient panel, inset to match nav rhythm */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 28px 48px 44px clamp(56px, 5.5vw, 88px);
  max-width: 660px;
  pointer-events: none;
}
.hero-copy * { pointer-events: auto; }
.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 14px;
}
.hero-copy p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 22px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-ctas a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.hero-cta-primary:hover { transform: translateY(-1px); }
.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-cta-secondary:hover { background: rgba(255, 255, 255, 0.18); }
@media (max-width: 900px) {
  .hero-copy { padding: 22px 24px 32px 32px; max-width: 100%; }
}
/* SECTIONS */
.section { padding: 96px 48px; position: relative; }
.section-inner { max-width: 1440px; margin: 0 auto; }
.placeholder-section {
  min-height: 50vh;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.placeholder-content { text-align: center; opacity: 0.25; }
.placeholder-content i { font-size: 48px; margin-bottom: 16px; display: block; color: var(--blue-600); }
.placeholder-content h2 { font-family: var(--font-display); font-size: 24px; color: var(--navy-900); margin-bottom: 8px; }
.placeholder-content p { font-size: 14px; color: var(--gray-400); }



/* INSIGHTS SECTION */
.insight-tab {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}
.insight-tab:hover { border-color: var(--blue-600); color: var(--blue-600); }
.insight-tab.active { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: rgba(0,51,141,0.2);
}
.insight-card.hidden { display: none; }
.insight-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.insight-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 10px;
}
.insight-card-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.insight-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.insight-card-link i { font-size: 11px; transition: transform 0.2s; }
.insight-card:hover .insight-card-link i { transform: translateX(4px); }

/* INSIGHT MODAL */
.insight-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10,17,33,0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
  overflow-y: auto;
}
.insight-modal.active { display: flex; }
.insight-modal-content {
  background: var(--white);
  max-width: 760px;
  width: 100%;
  border-radius: 16px;
  padding: 48px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.insight-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: var(--gray-400);
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
  transition: color 0.2s;
}
.insight-modal-close:hover { color: var(--navy-900); }
.insight-modal-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.insight-modal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 24px;
}
.insight-modal-body {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insight-modal-content { padding: 32px 24px; }
}

/* APP FEATURES SECTION */
.app-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.app-feature-row.reverse { direction: rtl; }
.app-feature-row.reverse > * { direction: ltr; }
.app-feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-900); color: var(--gold-500);
  font-size: 14px; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px;
}
.app-feature-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--navy-900); line-height: 1.25; margin-bottom: 16px;
}
.app-feature-desc {
  font-size: 16px; color: var(--gray-500); line-height: 1.75; margin-bottom: 20px;
}
.app-feature-highlights {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.app-feature-highlights span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy-900);
  background: var(--white); border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 16px; border-radius: 100px;
}
.app-feature-highlights span i { color: var(--blue-600); font-size: 12px; }
.app-feature-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--blue-600);
  text-decoration: none; transition: gap 0.2s;
}
.app-feature-cta:hover { gap: 12px; }
.app-feature-cta i { font-size: 12px; }

.app-feature-visual { display: flex; justify-content: center; align-items: center; }

.phone-mockup-sm {
  width: 260px;
}
.phone-mockup-sm::before { display: none; }
.phone-mockup-sm img {
  width: 100%; height: auto; display: block;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Voice animation */
.voice-visual { padding: 40px; display: flex; flex-direction: column; align-items: center; }
.voice-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--navy-900); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.voice-circle-inner { color: var(--white); font-size: 36px; z-index: 2; }
.voice-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(59,111,232,0.3); animation: voicePulse 2s ease-out infinite;
}
.ring2 { inset: -24px; animation-delay: 0.4s; }
.ring3 { inset: -38px; animation-delay: 0.8s; }
@keyframes voicePulse { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }

/* Compliance cards */
.compliance-visual { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; margin: 0 auto; }
.comp-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s;
}
.comp-card:hover { transform: translateX(4px); }
.comp-card strong { display: block; font-size: 14px; color: var(--navy-900); }
.comp-card span { font-size: 12px; color: var(--gray-400); }

/* Integration hub */
.integration-visual { position: relative; width: 280px; height: 280px; margin: 0 auto; }
.int-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue-600);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; box-shadow: 0 4px 20px rgba(59,111,232,0.15); z-index: 2;
}
.int-hub span { font-size: 9px; font-weight: 700; color: var(--blue-600); letter-spacing: 0.5px; }
.int-spokes { position: absolute; inset: 0; }
.int-spoke {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px;
  margin: -28px; border-radius: 50%; background: var(--white);
  border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; transform: rotate(var(--angle)) translateY(-110px) rotate(calc(-1 * var(--angle)));
  transition: transform 0.3s, box-shadow 0.3s;
}
.int-spoke:hover { box-shadow: 0 4px 16px rgba(59,111,232,0.15); transform: rotate(var(--angle)) translateY(-115px) rotate(calc(-1 * var(--angle))); }
.int-spoke i { font-size: 16px; color: var(--blue-600); }
.int-spoke span { font-size: 8px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 1024px) {
  .app-feature-row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .app-feature-row.reverse { direction: ltr; }
  .app-feature-highlights { justify-content: center; }
  .phone-mockup-sm { width: 220px; }
}
@media (max-width: 640px) {
  .app-feature-title { font-size: 24px; }
  .phone-mockup-sm { width: 200px; }
}

/* MAP MODAL */
.map-modal {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,17,33,0.75); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.map-modal.active { display: flex; }
.map-modal-content {
  background: var(--white); max-width: 860px; width: 100%;
  border-radius: 16px; padding: 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2); position: relative;
}
.map-modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 28px; color: var(--gray-400); cursor: pointer;
  border: none; background: none; line-height: 1; transition: color 0.2s;
}
.map-modal-close:hover { color: var(--navy-900); }
@media (max-width: 640px) {
  .map-modal-content { padding: 24px; }
}

/* CONTACT FORM */
#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: var(--gray-300);
  font-weight: 400;
}
@media (max-width: 768px) {
  #contact .section-inner > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* RESPONSIVE */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-contact { display: inline-flex; }
  .nav-search-btn span { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: var(--white); z-index: 999;
    justify-content: center; align-items: center;
    gap: 8px; height: auto; padding-top: 80px;
  }
  .nav-links.mobile-open li { height: auto; }
  .nav-links.mobile-open a {
    font-size: 20px; padding: 14px; height: auto;
    color: var(--navy-900); justify-content: center;
  }
  .nav-links.mobile-open a::after { display: none; }
  .top-bar { padding: 7px 24px; }
  .nav-inner { padding: 0 24px; }
  .hero-media { min-height: 26vh; }
  .hero-media .hero-video-layer { object-position: 60% 50%; }
  .section { padding: 80px 24px; }
  .footer { padding: 48px 24px 28px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .hero.hero-split { height: auto; min-height: 0; max-height: none; }
  .hero-split-inner { min-height: 0; }
  .hero-media { min-height: 24vh; }
  .hero-media .hero-video-layer { object-position: 55% 50%; }
  .nav-inner { height: 60px; }
  .nav-logo-img { height: 48px; }
  .nav-logo-name { font-size: 13px; letter-spacing: 1px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-media { min-height: 22vh; }
  .nav-logo { min-width: 0; align-items: center; }
  .nav-logo-text { max-width: min(200px, 46vw); }
  .nav-logo-name { font-size: 11px; letter-spacing: 0.06em; line-height: 1.2; white-space: normal; }
  .nav-logo-sub { font-size: 7px; letter-spacing: 0.12em; }
  .nav-logo-img { height: 40px; flex-shrink: 0; }
}
/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 28px 22px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  border-color: rgba(0,51,141,0.15);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-num {
  font-size: 18px; font-weight: 700; color: var(--gold-600);
  letter-spacing: 1px; margin-bottom: 16px;
}
.service-card-icon {
  width: 68px; height: 68px; border-radius: 16px;
  background: var(--gray-50); border: 1px solid rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card-icon i { font-size: 32px; color: var(--blue-600); }
.service-card-title {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--navy-900); line-height: 1.3; margin-bottom: auto;
  padding-bottom: 16px;
}
.service-card-link {
  font-size: 13px; font-weight: 600; color: var(--blue-600);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
}
.service-card-link i { font-size: 11px; transition: transform 0.2s; }
.service-card:hover .service-card-link i { transform: translateX(4px); }

/* Service Modal */
.service-modal {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,17,33,0.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 40px 24px;
}
.service-modal-content {
  background: var(--white); max-width: 640px; width: 100%;
  border-radius: 16px; padding: 48px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2); position: relative;
}
.service-modal-num {
  font-size: 20px; font-weight: 700; color: var(--gold-600);
  letter-spacing: 1px; margin-bottom: 12px;
}
.service-modal-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gray-50); border: 1px solid rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-modal-icon i { font-size: 24px; color: var(--blue-600); }
.service-modal-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--navy-900); line-height: 1.25; margin-bottom: 20px;
}
.service-modal-body {
  font-size: 16px; color: var(--gray-500); line-height: 1.8; margin-bottom: 28px;
}
.service-modal-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-600); color: var(--white);
  font-size: 14px; font-weight: 700; padding: 14px 28px;
  border-radius: 8px; text-decoration: none; transition: all 0.3s;
}
.service-modal-cta:hover { background: #002766; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,51,141,0.3); }

@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-card { padding: 20px 16px; }
  .service-card-title { font-size: 14px; }
  .service-card-icon { width: 58px; height: 58px; }
  .service-card-icon i { font-size: 26px; }
  .service-modal-content { padding: 32px 24px; }
  .service-modal-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-card { padding: 16px 12px; }
  .service-card-title { font-size: 13px; line-height: 1.25; }
  .service-card-icon { width: 48px; height: 48px; }
  .service-card-icon i { font-size: 22px; }
}

/* ABOUT SECTION */
@media (max-width: 768px) {
  .about-mv-grid { grid-template-columns: 1fr !important; }
  .about-values-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-approach-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-partners-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-research-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-founder-grid { grid-template-columns: 1fr !important; text-align: center; padding: 32px 24px !important; }
  .about-founder-grid .about-founder-photo-wrap { margin-left: auto; margin-right: auto; }
  .about-partners-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .about-values-grid { grid-template-columns: 1fr !important; }
  .about-approach-grid { grid-template-columns: 1fr !important; }
  .about-partners-grid { grid-template-columns: 1fr !important; }
  .about-research-grid { grid-template-columns: 1fr !important; }
  .about-partners-grid { grid-template-columns: 1fr !important; }
}

.about-founder-photo-wrap {
  flex-shrink: 0;
  width: min(399px, calc(100vw - 48px));
  height: min(399px, calc(100vw - 48px));
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 6px 24px rgba(10, 17, 33, 0.14);
  background: var(--navy-900);
}
.about-founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
@media (max-width: 768px) {
  .about-founder-photo-wrap {
    width: min(365px, calc(100vw - 40px));
    height: min(365px, calc(100vw - 40px));
  }
}
@media (max-width: 480px) {
  .about-founder-photo-wrap {
    width: min(338px, calc(100vw - 32px));
    height: min(338px, calc(100vw - 32px));
    border-width: 2px;
  }
}

/* SILVER BACKGROUND CARD FIXES */
.insight-card, .service-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}
.service-modal-content, .insight-modal-content {
  background: rgba(255,255,255,0.97);
}
#contactForm input, #contactForm textarea {
  background: rgba(255,255,255,0.9);
}
.nav { background: rgba(245,245,245,0.97); backdrop-filter: blur(12px); }
.footer { background: var(--navy-900); }
.app-feature-highlights span { background: rgba(255,255,255,0.85); }
.comp-card { background: rgba(255,255,255,0.85); }

/* MOBILE RESPONSIVENESS FIXES */
@media (max-width: 768px) {
  /* Top bar */
  .top-bar { padding: 6px 16px; gap: 12px; font-size: 11px; }
  
  /* Nav */
  .nav-inner { padding: 0 16px; height: 56px; }
  .nav-logo { margin-right: 0; gap: 10px; }
  .nav-logo-img { height: 40px; }
  .nav-logo-name { font-size: 11px; letter-spacing: 1px; }
  .nav-logo-sub { font-size: 7px; letter-spacing: 1.5px; }
  .nav-right { gap: 8px; }
  .nav-search-btn span { display: none; }
  
  /* Dropdown on mobile - full width overlay */
  .nav-dropdown-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    border-radius: 0;
    padding: 60px 24px 24px;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-dropdown-menu a { padding: 14px 16px; font-size: 15px; }
  .dd-num { min-width: 32px; height: 32px; font-size: 12px; }
  
  /* Mobile hamburger menu */
  .nav-links.mobile-open {
    padding: 80px 24px 24px;
  }
  .nav-links.mobile-open a { font-size: 18px; padding: 12px 0; }
  
  /* Hero */
  .hero.hero-split { height: auto; max-height: none; }
  .hero-media { min-height: 24vh; }
  
  /* Sections general */
  .section { padding: 60px 20px; }
  .section-inner { max-width: 100%; }
  
  /* Insights section */
  .insights-grid { grid-template-columns: 1fr; gap: 16px; }
  .insight-card { padding: 20px; }
  .insight-card-title { font-size: 16px; }
  
  /* Featured insight */
  .section-inner > div[onclick] { padding: 28px 20px; }
  .section-inner > div[onclick] h3 { font-size: 22px; }
  .section-inner > div[onclick] > div > div:last-child { flex-direction: column; gap: 12px; }
  
  /* App features section */
  .app-feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
    text-align: center;
  }
  .app-feature-row.reverse { direction: ltr; }
  .app-feature-title { font-size: 22px; }
  .app-feature-desc { font-size: 15px; }
  .app-feature-highlights { justify-content: center; }
  .app-feature-highlights span { font-size: 12px; padding: 6px 12px; }
  .phone-mockup-sm { width: 220px; margin: 0 auto; }
  .voice-visual { padding: 20px; }
  .voice-circle { width: 90px; height: 90px; }
  .voice-circle-inner { font-size: 28px; }
  .compliance-visual { max-width: 100%; }
  .integration-visual { width: 240px; height: 240px; }
  .int-hub { width: 70px; height: 70px; }
  .int-hub span { font-size: 8px; }
  .int-hub i { font-size: 24px; }
  .int-spoke { width: 46px; height: 46px; margin: -23px; transform: rotate(var(--angle)) translateY(-90px) rotate(calc(-1 * var(--angle))); }
  .int-spoke i { font-size: 14px; }
  .int-spoke span { font-size: 7px; }
  
  /* Contact section */
  #contact .section-inner > div:first-child {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  /* Insight modal */
  .insight-modal-content { padding: 28px 20px; }
  .insight-modal-title { font-size: 22px; }
  .insight-modal-body { font-size: 15px; }
  
  /* Footer */
  .footer { padding: 40px 20px 24px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }
  .footer-logo-wrap .f-name { font-size: 14px; }
  
  /* Placeholder sections */
  .placeholder-section { min-height: 30vh; }
}

@media (max-width: 480px) {
  .top-bar { display: none; }
  .nav-logo { min-width: 0; }
  .nav-logo-text { max-width: min(190px, 44vw); }
  .nav-logo-name { font-size: 10px; letter-spacing: 0.05em; line-height: 1.15; white-space: normal; }
  .nav-logo-sub { font-size: 6.5px; letter-spacing: 0.1em; }
  .nav-logo-img { height: 36px; flex-shrink: 0; }
  .hero-media { min-height: 20vh; }
  .section { padding: 48px 16px; }
  .app-feature-title { font-size: 20px; }
  .phone-mockup-sm { width: 200px; }
  .insight-card-title { font-size: 15px; }
}

/* Contact grid mobile */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ============================================================
   HERO → MIDDLE TRANSITION
   ============================================================ */
.home-hero-transition {
  position: relative;
  height: 0;
  overflow: visible;
  z-index: 10;
  pointer-events: none;
}
.home-hero-transition-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,169,110,0.55) 20%,
    rgba(201,169,110,0.85) 50%,
    rgba(201,169,110,0.55) 80%,
    transparent 100%
  );
  box-shadow: 0 0 18px 2px rgba(201,169,110,0.28);
}

/* ── Home page wallpaper ─────────────────────────────────────────────────────
   Layout handled by artwork-page.css (.artwork-page + .artwork-page--home).
   This block only keeps the section/content overrides.                    */


/* ============================================================
   SECTION SPACING — tighter, more intentional
   ============================================================ */
.artwork-page--home .section {
  padding: 80px 48px;
}
.artwork-page--home #about-preview .section-inner {
  padding: 0 !important; /* override inline style; outer .section handles padding */
}
.artwork-page--home #common-problem .section-inner {
  max-width: 860px;
}

@media (max-width: 1024px) {
  .artwork-page--home .section { padding: 64px 32px; }
}
@media (max-width: 768px) {
  .artwork-page--home .section { padding: 52px 20px; }
}
@media (max-width: 480px) {
  .artwork-page--home .section { padding: 44px 16px; }
}

/* ============================================================
   CARDS — premium ivory treatment on wallpaper
   ============================================================ */
.artwork-page--home .insight-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(201,169,110,0.18);
  box-shadow: 0 2px 14px rgba(10,17,33,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.artwork-page--home .insight-card:hover {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 32px rgba(10,17,33,0.10);
  border-color: rgba(201,169,110,0.35);
}

.artwork-page--home .service-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(201,169,110,0.18);
  box-shadow: 0 2px 14px rgba(10,17,33,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.artwork-page--home .service-card:hover {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 36px rgba(10,17,33,0.10);
  border-color: rgba(0,51,141,0.18);
}

/* About preview cards on wallpaper */
.artwork-page--home #about-preview [style*="background:rgba(255,255,255"] {
  background: rgba(255, 253, 248, 0.92) !important;
  border: 1px solid rgba(201,169,110,0.20) !important;
  box-shadow: 0 2px 14px rgba(10,17,33,0.06) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Common problem gold border section */
.artwork-page--home #common-problem [style*="border-left"] {
  background: rgba(255,253,248,0.70);
  border-radius: 0 12px 12px 0;
  padding: 32px 28px;
}

/* Section max-width refinement */
.artwork-page--home .section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* ---------- Homepage responsive grid classes (moved from inline) */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ai-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1024px) {
  .about-preview-grid { gap: 40px; }
  .ai-preview-grid    { gap: 36px; }
}
@media (max-width: 768px) {
  .about-preview-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-preview-grid    { grid-template-columns: 1fr; gap: 28px; }
}

