/* ===================================
   Midwood Asset Management
   Premium Design System
   =================================== */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  /* Navy Blue Color Palette - Matching Logo */
  --color-navy: #0a1929;
  --color-navy-light: #1a3a54;
  --color-gold: #c9a961;
  --color-gold-light: #d9b76f;
  --color-bronze: #8b7355;
  --color-charcoal: #1e2a38;
  --color-gray: #5a6d7a;
  --color-gray-light: #e2e8f0;
  --color-white: #ffffff;
  --color-off-white: #fafbfc;

  /* Typography */
  --font-serif: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, 'Big Caslon', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 5rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Premium Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 8px 20px rgba(201, 169, 97, 0.15);
}

/* ===================================
   Global Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  line-height: 1.7;
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-gold-light);
}

/* ===================================
   Header & Navigation
   =================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
  overflow: visible;
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.99);
  border-bottom-color: rgba(201, 169, 97, 0.15);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
}

.logo {
  height: 160%;
  width: auto;
  margin: -20% 0;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  height: 100%;
  overflow: hidden;
}

.company-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-gold);
  font-family: var(--font-serif);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-link:hover .company-name {
  color: var(--color-gold-light);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-gold);
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 600px;
  margin-top: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(26, 58, 84, 0.88) 50%, rgba(30, 42, 56, 0.85) 100%),
    url('assets/images/hero-walkup-clean.webp') center/cover no-repeat;
  background-color: #0a1929;
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(196, 149, 106, 0.12) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 25, 41, 0.5) 50%, #0a1929 100%);
  pointer-events: none;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Section Styling for Multi-Page Layout */
.page-section {
  padding-top: 120px;
  padding-bottom: 50px;
  min-height: calc(100vh - 200px);
}

/* Page-specific header backgrounds with walkup images */
#about.page-section {
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(26, 58, 84, 0.88) 100%),
    url('assets/images/walkup-bg-1.webp') center/cover no-repeat;
  background-attachment: fixed;
}

#team.page-section {
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(26, 58, 84, 0.88) 100%),
    url('assets/images/walkup-bg-2.webp') center/cover no-repeat;
  background-attachment: fixed;
}

#portfolio-featured.page-section {
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(26, 58, 84, 0.88) 100%),
    url('assets/images/walkup-bg-3.webp') center/cover no-repeat;
  background-attachment: fixed;
}

#contact.page-section {
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(26, 58, 84, 0.88) 100%),
    url('assets/images/walkup-bg-4.webp') center/cover no-repeat;
  background-attachment: fixed;
}

.page-section .section-header .section-title,
.page-section .section-header .section-subtitle {
  color: var(--color-white);
}

.page-section .section-header .section-subtitle {
  opacity: 0.9;
}

/* Override text colors on dark page backgrounds */
.page-section .thesis,
.page-section .about-content p,
.page-section .team-bio,
.page-section .principle-card p,
.page-section .credentials-list li {
  color: rgba(255, 255, 255, 0.9);
}

.page-section .principle-card h3,
.page-section .credentials-section h3,
.page-section .team-name {
  color: var(--color-white);
}

.page-section .team-title {
  color: var(--color-gold);
}


.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--color-gray-light);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
  filter: brightness(1.05);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-gray-light);
  stroke-width: 2;
}

/* ===================================
   Section Styles
   =================================== */
section {
  padding: var(--spacing-2xl) 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-gold);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   Home Page Sections
   =================================== */

/* Home Stats Section */
.home-stats-section {
  background: linear-gradient(180deg, #0a1929 0%, #0d2137 50%, #1a3a54 100%);
  padding: var(--spacing-md) 2rem var(--spacing-lg);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
}

.home-stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(201,169,97,0.03)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23grid)' /%3E%3C/svg%3E");
  pointer-events: none;
}

.home-stats-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 25, 41, 0.94) 100%);
  pointer-events: none;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-stat-card {
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(201, 169, 97, 0.15);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.home-stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.home-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.home-stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Why Midwood Section */
.why-midwood-section {
  background: linear-gradient(180deg, #1a3a54 0%, rgba(10, 25, 41, 0.94) 15%, rgba(10, 25, 41, 0.94) 100%),
    url('assets/images/walkup-bg-5.webp') center/cover no-repeat;
  background-attachment: fixed;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.why-midwood-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(201,169,97,0.04)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)' /%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.why-midwood-section .section-title,
.why-midwood-section .section-subtitle {
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.why-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(201, 169, 97, 0.2);
  backdrop-filter: blur(10px);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 1);
}

.why-card h3 {
  color: var(--color-navy);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.why-card p {
  color: var(--color-gray);
  line-height: 1.7;
  font-size: 1rem;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
  background: var(--color-off-white);
  padding: var(--spacing-2xl) 2rem;
  position: relative;
}

.testimonials-section .section-title {
  color: var(--color-navy);
}

.testimonials-section .section-subtitle {
  color: var(--color-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 169, 97, 0.1);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 97, 0.2);
}

.testimonial-quote {
  position: relative;
  padding-left: 1rem;
}

.quote-icon {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: -5px;
}

.testimonial-quote p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(201, 169, 97, 0.15);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
}

.author-title {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 500;
}


/* ===================================
   About Section
   =================================== */
#about {
  background: var(--color-off-white);
}

.about-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.about-content>.thesis {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thesis {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-gray);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.thesis:last-of-type {
  margin-bottom: calc(var(--spacing-xl) + 1rem);
}

/* Metrics Section */
.metrics-section {
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  padding: 0 var(--spacing-lg);
}

.metric-card {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: rgba(201, 169, 97, 0.3);
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Credentials Section */
.credentials-section {
  padding: var(--spacing-lg) var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  background: var(--color-charcoal);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.credentials-section h3 {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-gold);
  font-size: 1.75rem;
  font-family: var(--font-serif);
}

.credentials-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-sm);
  padding: 0;
}

.credentials-list li {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--color-gold);
  border-radius: 4px;
  color: var(--color-gray-light);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.credentials-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
}


.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.principle-card {
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(201, 169, 97, 0.08);
}

.principle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 97, 0.2);
}

.principle-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.principle-card h3 {
  color: var(--color-navy);
  margin-bottom: var(--spacing-xs);
}

.principle-card p {
  font-size: 0.95rem;
}

/* ===================================
   Team Section
   =================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.team-member {
  text-align: center;
  transition: var(--transition-smooth);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.team-member:nth-child(1) {
  animation-delay: 0.1s;
}

.team-member:nth-child(2) {
  animation-delay: 0.2s;
}

.team-member:nth-child(3) {
  animation-delay: 0.3s;
}

.team-photo-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto var(--spacing-md);
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 2px solid rgba(201, 169, 97, 0.1);
}

.team-photo-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.team-member:hover .team-photo-wrapper::before {
  opacity: 1;
}

.team-member:hover .team-photo-wrapper {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(201, 169, 97, 0.25);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-smooth);
}

.team-member:hover .team-photo {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: var(--spacing-xs);
}

.team-title {
  font-size: 1rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-bio {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.7;
  text-align: center;
}

/* ===================================
   Portfolio Section
   =================================== */
#portfolio {
  background: var(--color-navy);
  color: var(--color-white);
}

#portfolio .section-title {
  color: var(--color-white);
}

#portfolio .section-subtitle {
  color: var(--color-gray-light);
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: var(--transition-smooth);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 12px 30px rgba(201, 169, 97, 0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-serif);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
  text-align: center;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Portfolio Featured Investments */
.portfolio-featured {
  margin-top: var(--spacing-2xl);
}

.portfolio-featured-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-navy);
  margin-bottom: var(--spacing-sm);
  margin-top: calc(var(--spacing-xl) + 1rem);
  text-align: center;
  font-family: var(--font-serif);
  color: var(--color-gold);
  letter-spacing: 1px;
}

.portfolio-featured-subtitle {
  text-align: center;
  color: var(--color-gray-light);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  align-items: stretch;
}

.property-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.property-card:nth-child(1) {
  animation-delay: 0.1s;
}

.property-card:nth-child(2) {
  animation-delay: 0.2s;
}

.property-card:nth-child(3) {
  animation-delay: 0.3s;
}

.property-card:nth-child(4) {
  animation-delay: 0.4s;
}

.property-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(201, 169, 97, 0.1);
}

.property-image-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.property-card:hover .property-image {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: var(--color-white);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.property-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-status.exited {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.property-status.current {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.property-content {
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
}

.property-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.35rem;
}

.property-location {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.property-description {
  color: var(--color-gray-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.property-metrics {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.property-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.metric-value {
  color: var(--color-gold);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
}

.metric-label {
  color: var(--color-gray);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================
   Contact Section
   =================================== */
#contact {
  background: var(--color-off-white);
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Form Styles */
.hidden {
  display: none;
}

.contact-form-wrapper {
  background: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 169, 97, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid rgba(27, 49, 71, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-smooth);
  background: var(--color-background);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

/* Form Validation States */
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.form-group.error input:focus,
.form-group.error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.valid input,
.form-group.valid textarea {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.form-group.valid input:focus,
.form-group.valid textarea:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message::before {
  content: '⚠';
  font-size: 0.75rem;
}

.form-group.valid::after {
  content: '✓';
  position: absolute;
  right: 12px;
  top: 50%;
  color: #22c55e;
  font-weight: bold;
}

.form-group {
  position: relative;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* SMS consent checkbox */
.sms-consent {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #d9b76f;
  cursor: pointer;
}

.checkbox-text {
  color: #94a3b8;
  font-size: 0.78rem;
}

.checkbox-text a {
  color: #d9b76f;
  text-decoration: underline;
}

.checkbox-text strong {
  color: #e2e8f0;
}

.contact-form .cta-button {
  margin-top: var(--spacing-sm);
  width: 100%;
  justify-content: center;
}

/* Contact Info Styles */
.contact-info {
  margin-top: 0;
  text-align: left;
}

.contact-item {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(201, 169, 97, 0.08);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(201, 169, 97, 0.15);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.contact-value {
  font-size: 1.125rem;
  color: var(--color-navy);
  font-weight: 500;
}

.contact-value a {
  color: var(--color-navy);
  transition: var(--transition-smooth);
}

.contact-value a:hover {
  color: var(--color-gold);
}

/* ===================================
   Footer
   =================================== */
footer {
  background: var(--color-navy);
  color: var(--color-gray-light);
  padding: var(--spacing-lg) 2rem var(--spacing-md);
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  height: 50px;
  margin-bottom: var(--spacing-md);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--color-gray-light);
}

/* Expanded Footer Styles */
.footer-content-expanded {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-logo-expanded {
  width: 220px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--color-gray-light);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Newsletter Styles */
.newsletter-text {
  color: var(--color-gray-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group input:focus {
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  padding: 0.75rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-navy);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--color-gold-light);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-gray-light);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-contact {
  color: var(--color-gray-light);
  font-size: 0.9rem;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--color-gray-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-address {
  margin-bottom: 1rem;
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
}


/* ===================================
   Scroll Animations
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Enhanced Micro-Interactions
   =================================== */

/* Button Glow Effect */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Enhanced Card Hover Effects */
.why-card,
.home-stat-card,
.contact-item {
  position: relative;
  overflow: hidden;
}

.why-card::after,
.home-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.why-card:hover::after,
.home-stat-card:hover::after {
  transform: scaleX(1);
}

.why-card:hover,
.home-stat-card:hover,
.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Skeleton Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Image Loading Placeholder */
.property-image {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  transition: opacity 0.3s ease;
}

/* Enhanced Link Underline Animation */
.footer-links a,
.contact-value a {
  position: relative;
  display: inline-block;
}

.footer-links a::after,
.contact-value a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.footer-links a:hover::after,
.contact-value a:hover::after {
  width: 100%;
}

/* Pulse Animation for Stats */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.home-stat-number,
.stat-number {
  transition: transform 0.3s ease, color 0.3s ease;
}

.home-stat-card:hover .home-stat-number,
.stat-card:hover .stat-number {
  color: var(--color-gold-light);
  animation: pulse 0.6s ease;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {

  /* Lock viewport to prevent horizontal sliding */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }

  :root {
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
  }

  nav {
    padding: 1rem 1.5rem;
  }

  .logo {
    height: 70px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-smooth);
    padding: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Force all sections to fit viewport */
  section {
    padding: var(--spacing-xl) 0.75rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Header/nav mobile constraints - FORCE overflow visible for hamburger menu */
  header {
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  nav {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.75rem !important;
    overflow: visible !important;
  }

  .logo-link {
    gap: 0.5rem !important;
    max-width: 200px !important;
  }

  /* Show company name on mobile with compact styling */
  .company-name {
    display: block !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 150px !important;
  }

  /* Fix hero section spacing - prevent header overlap */
  .hero {
    padding-top: 5rem;
  }

  /* Fix portfolio stats size on mobile */
  .stat-number {
    font-size: 3.5rem !important;
    line-height: 1.1;
  }

  /* Fix section headers to account for fixed header */
  .section-header,
  .portfolio-header,
  .team-header,
  .about-header {
    padding-top: 6rem;
  }

  .team-photo-wrapper {
    width: 240px;
    height: 240px;
  }

  .portfolio-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .property-image-wrapper {
    height: 200px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  /* Reduce container padding on mobile */
  .container {
    padding: 0 1rem !important;
  }

  /* Force stats section full width on mobile */
  .home-stats-section {
    padding: var(--spacing-xl) 0.5rem !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Mobile styles for new sections */
  .metric-number {
    font-size: 2.5rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 var(--spacing-md);
  }

  .credentials-list {
    grid-template-columns: 1fr;
  }

  /* Home page mobile styles - CRITICAL for mobile fit */
  .home-stats-section .container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .home-stats-section .home-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    padding: 0 0.5rem !important;
    width: 100% !important;
    max-width: calc(100vw - 1rem) !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .home-stats-section .home-stat-card {
    padding: 0.75rem 0.25rem !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .home-stats-section .home-stat-number {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }

  .home-stats-section .home-stat-label {
    font-size: 0.6rem !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile stacking */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 1.5rem;
  }

  .footer-logo-expanded {
    width: 160px;
  }

  .footer-description {
    font-size: 0.85rem;
  }

  /* Contact form mobile styles */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: var(--spacing-lg);
  }

  .contact-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.125rem;
  }

  .footer-disclaimer {
    max-width: 900px;
    margin: 1rem auto 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-gray);
    text-align: center;
    opacity: 0.7;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Insights / Blog Styles — Ultra Premium
   =================================== */

/* Page background — deep layered gradient with parallax */
#insights.page-section {
  background: linear-gradient(160deg, rgba(6, 17, 30, 0.96) 0%, rgba(14, 35, 55, 0.94) 35%, rgba(20, 45, 68, 0.90) 65%, rgba(10, 25, 41, 0.95) 100%),
    url('assets/images/walkup-bg-5.webp') center/cover no-repeat;
  background-attachment: fixed;
  padding-bottom: 5rem;
  position: relative;
}

/* Insights category filter pills */
.insights-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: rgba(201, 169, 97, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.2) 0%, rgba(201, 169, 97, 0.1) 100%);
  border-color: rgba(201, 169, 97, 0.4);
  color: var(--color-gold);
  font-weight: 600;
}

/* Card filter transition */
.insight-card.filter-hidden {
  display: none;
}

/* Subtle top-edge glow */
#insights.page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 97, 0.3) 30%, rgba(201, 169, 97, 0.5) 50%, rgba(201, 169, 97, 0.3) 70%, transparent 100%);
}

/* Section header refinements */
#insights .section-title {
  font-size: 3.2rem;
  letter-spacing: -0.01em;
}

#insights .section-subtitle {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Article count badge */
.insights-count {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(201, 169, 97, 0.7);
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin: 1.5rem auto 0;
  text-align: center;
}

/* Insights listing grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

/* Featured hero card — first article spans full width */

/* Insight card — frosted glass */
.insight-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    background 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Subtle top edge on every card */
.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: background 0.4s ease;
}

.insight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(201, 169, 97, 0.08);
  border-color: rgba(201, 169, 97, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.insight-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.4), transparent);
}

.insight-card-body {
  padding: 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category pill — refined with subtle gradient */
.insight-category {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.14) 0%, rgba(201, 169, 97, 0.06) 100%);
  border: 1px solid rgba(201, 169, 97, 0.12);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
  width: fit-content;
  transition: all 0.3s ease;
}

.insight-card:hover .insight-category {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.22) 0%, rgba(201, 169, 97, 0.10) 100%);
  border-color: rgba(201, 169, 97, 0.25);
}

.insight-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.insight-card h3 a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.insight-card:hover h3 a {
  color: rgba(255, 255, 255, 0.95);
}

.insight-card h3 a:hover {
  color: var(--color-gold);
}

.insight-excerpt {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.insight-card:hover .insight-excerpt {
  color: rgba(255, 255, 255, 0.72);
}

/* Meta — date and read time */
.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  letter-spacing: 0.01em;
}

.insight-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Read more link */
.insight-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: auto;
  letter-spacing: 0.02em;
}

.insight-read-more:hover {
  gap: 0.8rem;
  color: var(--color-gold-light);
}

.insight-read-more::after {
  content: '→';
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 1rem;
}

.insight-read-more:hover::after {
  transform: translateX(3px);
}

/* Staggered fade-in animation for cards */
.insights-grid .insight-card {
  opacity: 0;
  transform: translateY(24px);
  animation: insightCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes insightCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.insights-grid .insight-card:nth-child(1) {
  animation-delay: 0.1s;
}

.insights-grid .insight-card:nth-child(2) {
  animation-delay: 0.2s;
}

.insights-grid .insight-card:nth-child(3) {
  animation-delay: 0.28s;
}

.insights-grid .insight-card:nth-child(4) {
  animation-delay: 0.36s;
}

.insights-grid .insight-card:nth-child(5) {
  animation-delay: 0.42s;
}

.insights-grid .insight-card:nth-child(6) {
  animation-delay: 0.48s;
}

.insights-grid .insight-card:nth-child(n+7) {
  animation-delay: 0.54s;
}

/* Latest Insights section gradient background */
#latest-insights {
  background: linear-gradient(180deg, #ede8df 0%, #f2efe9 30%, #f9f7f4 65%, #ffffff 100%);
}

#latest-insights .section-title {
  color: var(--color-navy) !important;
}

#latest-insights .section-subtitle {
  color: var(--color-gray) !important;
}

/* Insight cards on light backgrounds (e.g. homepage) */
#latest-insights .insight-card {
  background: var(--color-off-white);
  border: 1px solid rgba(10, 25, 41, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#latest-insights .insight-card::before {
  display: none;
}

#latest-insights .insight-card:hover {
  background: var(--color-white);
  border-color: rgba(201, 169, 97, 0.3);
  box-shadow: 0 12px 40px rgba(10, 25, 41, 0.08);
}

#latest-insights .insight-card h3 {
  color: var(--color-navy);
}

#latest-insights .insight-card h3 a {
  color: var(--color-navy);
}

#latest-insights .insight-card h3 a:hover {
  color: var(--color-gold);
}

#latest-insights .insight-excerpt {
  color: var(--color-gray);
  opacity: 1;
}

#latest-insights .insight-meta {
  color: var(--color-gray);
  border-top-color: rgba(10, 25, 41, 0.08);
}

#latest-insights .insight-card .insight-category {
  border-color: rgba(201, 169, 97, 0.15);
}

/* Reset the stagger animation on homepage cards */
#latest-insights .insight-card {
  opacity: 1;
  transform: none;
  animation: none;
}

/* ===================================
   Article Page Styles
   =================================== */

/* Article page background */
#article.page-section {
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.95) 0%, rgba(26, 58, 84, 0.92) 100%);
  padding-bottom: 4rem;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-header .insight-category {
  margin: 0 auto 1.25rem;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-header .article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-gray);
}

.article-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 2rem auto;
  border: none;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-gray-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-white);
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-gold-light);
  margin: 2rem 0 0.75rem;
}

.article-content ul,
.article-content ol {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-gray-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  opacity: 0.9;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--color-white);
  font-weight: 600;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--color-gold);
  padding: 1.25rem 0 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: rgba(201, 169, 97, 0.05);
  border-radius: 0 8px 8px 0;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-white);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0 !important;
  opacity: 1 !important;
}

/* Data tables inside articles */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-content thead th {
  background: rgba(201, 169, 97, 0.12);
  color: var(--color-gold);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(201, 169, 97, 0.3);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-content tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: top;
}

.article-content tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.article-content tbody td:first-child {
  font-weight: 500;
  color: var(--color-white);
}

.article-content .table-source {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.article-content .table-source a {
  color: rgba(201, 169, 97, 0.6);
  text-decoration: underline;
}

/* Worked example / calculation callout */
.worked-example {
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.worked-example h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.worked-example p,
.worked-example li {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.worked-example .calc-line {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  color: var(--color-white);
}

.worked-example .calc-result {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  margin-top: 0.5rem;
}

/* ===================================
   Interactive Article Components
   =================================== */

/* Capital Stack Visualizer */
.stack-visualizer {
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 10px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.stack-visualizer h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.stack-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.stack-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
}

.stack-bar:hover {
  filter: brightness(1.15);
  padding-left: 1.5rem;
}

.stack-bar-label {
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stack-bar-value {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
}

.stack-bar.senior-debt {
  background: linear-gradient(135deg, #2c5f8a 0%, #1a4a6e 100%);
}

.stack-bar.mezzanine {
  background: linear-gradient(135deg, #8a6d2c 0%, #6e5520 100%);
}

.stack-bar.preferred-equity {
  background: linear-gradient(135deg, #5a3d7a 0%, #432d5e 100%);
}

.stack-bar.common-equity {
  background: linear-gradient(135deg, #2c8a5a 0%, #1e6b43 100%);
}

.stack-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stack-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.stack-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Expandable / Collapsible Deep Dive Sections */
.deep-dive {
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.deep-dive-toggle {
  width: 100%;
  background: rgba(10, 25, 47, 0.5);
  border: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.3s ease;
}

.deep-dive-toggle:hover {
  background: rgba(10, 25, 47, 0.7);
}

.deep-dive-toggle span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.deep-dive-toggle .toggle-icon {
  color: var(--color-gold);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  font-weight: 300;
}

.deep-dive.open .deep-dive-toggle .toggle-icon {
  transform: rotate(45deg);
}

.deep-dive-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.deep-dive.open .deep-dive-content {
  max-height: 2000px;
}

.deep-dive-content-inner {
  padding: 1.25rem 1.5rem;
  background: rgba(10, 25, 47, 0.3);
}

.deep-dive-content-inner p,
.deep-dive-content-inner li {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.deep-dive-content-inner p {
  margin-bottom: 0.8rem;
}

.deep-dive-content-inner p:last-child {
  margin-bottom: 0;
}

/* Interactive Calculator */
.interactive-calc {
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-top: 3px solid var(--color-gold);
  border-radius: 0 0 10px 10px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.interactive-calc h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.calc-input-group label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.calc-input-group input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  color: var(--color-white);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.calc-input-group input:focus {
  outline: none;
  border-color: rgba(201, 169, 97, 0.5);
}

.calc-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
}

.calc-output-item {
  text-align: center;
}

.calc-output-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 0.3rem;
}

.calc-output-value {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* Data highlights / stat callout */
.data-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.75rem;
  background: rgba(10, 25, 47, 0.5);
  border: 1px solid rgba(201, 169, 97, 0.12);
  border-radius: 10px;
}

.data-highlight-item {
  text-align: center;
}

.data-highlight-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
  display: block;
}

.data-highlight-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.35rem;
  display: block;
}

/* Info tooltip inline */
.info-tip {
  position: relative;
  display: inline;
  border-bottom: 1px dotted rgba(201, 169, 97, 0.5);
  cursor: help;
}

.info-tip .tip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 25, 47, 0.97);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  width: 250px;
  text-align: left;
  z-index: 100;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-tip:hover .tip-text {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  .stack-legend {
    grid-template-columns: 1fr;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
  }

  .calc-outputs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .data-highlight {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Key takeaway box */
.key-takeaways {
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-top: 3px solid var(--color-gold);
  border-radius: 0 0 8px 8px;
  padding: 1.5rem 1.75rem 1.25rem;
  margin-bottom: 2.5rem;
}

.key-takeaways h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-takeaways li {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
}

.key-takeaways li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-content table {
    font-size: 0.85rem;
  }

  .article-content thead th,
  .article-content tbody td {
    padding: 0.5rem 0.6rem;
  }

  .worked-example {
    padding: 1.25rem;
  }
}

/* Article navigation */
.article-nav {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-nav-link:hover {
  color: var(--color-gold-light);
}

.article-nav-link.back::before {
  content: '←';
}

.article-nav-link.next::after {
  content: '→';
}

/* Responsive: insights grid — tablet */
@media (max-width: 900px) {
  .insights-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

}

/* Responsive: insights grid — mobile */
@media (max-width: 600px) {
  #insights .section-title {
    font-size: 2.4rem;
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }


  .insight-card {
    border-radius: 12px;
  }

  .insight-card-body {
    padding: 1.5rem;
  }

  .insight-card h3 {
    font-size: 1.1rem;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-content p,
  .article-content ul,
  .article-content ol {
    font-size: 0.95rem;
  }

  .article-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .pull-quote p {
    font-size: 1.05rem;
  }

  /* Disable stagger animation on mobile for performance */
  .insights-grid .insight-card {
    animation-delay: 0s !important;
  }
}

/* ===================================
   Article Disclaimers
   =================================== */
.article-disclaimer {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.25rem;
  background: rgba(201, 169, 97, 0.06);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.01em;
}

.article-disclaimer strong {
  color: rgba(201, 169, 97, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* ===================================
   Interactive Calculators — Shared
   =================================== */
.interactive-block {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.interactive-block:hover {
  border-color: rgba(201, 169, 97, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.interactive-block h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.interactive-block .interactive-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-field.full-width {
  grid-column: 1 / -1;
}

.calc-field label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-field input[type="number"],
.calc-field input[type="text"] {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-field input::-webkit-outer-spin-button,
.calc-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-field input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.calc-submit {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

/* Calculator Results */
.calc-result-box {
  padding: 0;
  transition: all 0.4s ease;
}

.calc-result-box.visible {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-result-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-result-item.highlight {
  border-color: rgba(201, 169, 97, 0.3);
  background: rgba(201, 169, 97, 0.08);
}

.calc-result-item.savings {
  grid-column: 1 / -1;
  border-color: rgba(76, 175, 80, 0.25);
  background: rgba(76, 175, 80, 0.06);
}

.calc-result-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
}

.calc-result-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.calc-result-item.highlight .calc-result-value {
  color: var(--color-gold);
}

.calc-result-item.savings .calc-result-value {
  color: #66bb6a;
}

.calc-insight {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  padding: 1rem;
  background: rgba(201, 169, 97, 0.04);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 6px 6px 0;
}

.calc-insight strong {
  color: var(--color-gold-light);
}

.calc-placeholder {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
}

.calc-disclaimer {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* ===================================
   GC Cost Savings Slider
   =================================== */
.slider-container {
  margin: 1.5rem 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slider-label-row span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.slider-label-row .slider-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold);
  font-weight: 500;
}

input[type="range"].gc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  margin: 0.5rem 0 1.5rem;
}

input[type="range"].gc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
  transition: transform 0.2s ease;
}

input[type="range"].gc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"].gc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  cursor: pointer;
  border: none;
}

.slider-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.slider-comparison-item {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.slider-comparison-item.outsourced {
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.15);
}

.slider-comparison-item.inhouse {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.15);
}

.slider-comparison-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
}

.slider-comparison-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.slider-comparison-item.outsourced .slider-comparison-value {
  color: #ef5350;
}

.slider-comparison-item.inhouse .slider-comparison-value {
  color: #66bb6a;
}

.savings-highlight {
  text-align: center;
  padding: 1rem;
  background: rgba(201, 169, 97, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 97, 0.15);
}

.savings-highlight-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 0.3rem;
}

.savings-highlight-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* ===================================
   Comparison Table (Garden-Style)
   =================================== */
.comparison-table-wrapper {
  max-width: 720px;
  margin: 3rem auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table thead th {
  background: rgba(201, 169, 97, 0.1);
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.comparison-table tbody td {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--color-text-light);
}

.comparison-table .advantage {
  color: var(--color-gold);
  font-weight: 600;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

#comparisonTable .comparison-table tbody tr {
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#comparisonTable.animate-in .comparison-table tbody tr {
  opacity: 1;
  transform: translateX(0);
}

#comparisonTable.animate-in .comparison-table tbody tr:nth-child(1) {
  transition-delay: 0.05s;
}

#comparisonTable.animate-in .comparison-table tbody tr:nth-child(2) {
  transition-delay: 0.1s;
}

#comparisonTable.animate-in .comparison-table tbody tr:nth-child(3) {
  transition-delay: 0.15s;
}

#comparisonTable.animate-in .comparison-table tbody tr:nth-child(4) {
  transition-delay: 0.2s;
}

#comparisonTable.animate-in .comparison-table tbody tr:nth-child(5) {
  transition-delay: 0.25s;
}

#comparisonTable.animate-in .comparison-table tbody tr:nth-child(6) {
  transition-delay: 0.3s;
}

/* ===================================
   Operator Scorecard
   =================================== */
.scorecard-table {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.scorecard-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scorecard-row:last-child {
  border-bottom: none;
}

.scorecard-row.scorecard-header {
  background: rgba(201, 169, 97, 0.1);
}

.scorecard-cell {
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.scorecard-header .scorecard-cell {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

.scorecard-cell.metric-label {
  font-weight: 500;
  color: var(--color-text-light);
}

.scorecard-cell.winner {
  color: var(--color-gold);
  font-weight: 600;
}

.scorecard-cell.allocator-col {
  color: rgba(255, 255, 255, 0.4);
}

#operatorScorecard .scorecard-row:not(.scorecard-header) {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#operatorScorecard.animate-in .scorecard-row:not(.scorecard-header) {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Investment Quiz
   =================================== */
.quiz-progress {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.quiz-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-option {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--color-gold);
  background: rgba(201, 169, 97, 0.08);
  color: var(--color-text-light);
  transform: translateX(4px);
}

.quiz-result {
  text-align: center;
  padding: 1rem 0;
}

.quiz-score-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  line-height: 60px;
  margin-bottom: 1rem;
}

.quiz-result-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.quiz-result-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-smooth);
}

.quiz-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

/* ===================================
   Interactive Mobile Responsive
   =================================== */
@media (max-width: 600px) {
  .interactive-block {
    padding: 1.25rem;
    margin: 2rem auto;
  }

  .interactive-block h3 {
    font-size: 1.15rem;
  }

  .calc-form {
    grid-template-columns: 1fr;
  }

  .calc-results-grid {
    grid-template-columns: 1fr;
  }

  .calc-result-item.savings {
    grid-column: 1;
  }

  .slider-comparison {
    grid-template-columns: 1fr;
  }

  .scorecard-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .scorecard-header {
    display: none;
  }

  .scorecard-row:not(.scorecard-header) {
    padding: 0.75rem 0;
  }

  .scorecard-cell {
    padding: 0.3rem 1rem;
  }

  .scorecard-cell.metric-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
  }

  .scorecard-cell.operator-col::before {
    content: 'Operator: ';
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
  }

  .scorecard-cell.allocator-col::before {
    content: 'Allocator: ';
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.78rem;
  }

  .quiz-option {
    padding: 0.85rem 1rem;
  }

  .article-disclaimer {
    font-size: 0.68rem;
    padding: 0.85rem 1rem;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

  header,
  footer,
  .scroll-indicator,
  .cta-button {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}