/* ============================================================================
   MGR Ventures - Luxury Editorial Theme
   Cream & charcoal, Playfair Display serif, gold accents, magazine layout
   ============================================================================ */

/* CSS Custom Properties */
:root {
  /* Colors - Warm Luxury Palette */
  --primary-dark: #1a1714;
  --primary-charcoal: #2a2520;
  --secondary-dark: #3a342e;
  --accent-gold: #c9a84c;
  --accent-gold-light: #dfc06e;
  --accent-gold-dim: #a08335;
  --accent-gold-glow: rgba(201, 168, 76, 0.3);

  /* Cream & Warm Tones */
  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --cream-dark: #ede6d8;
  --warm-white: #fdfbf7;

  /* Grays - warm-tinted */
  --gray-50: #faf8f5;
  --gray-100: #f0ece5;
  --gray-200: #e0d9cf;
  --gray-300: #c5bdb0;
  --gray-400: #9e9486;
  --gray-500: #7a7064;
  --gray-600: #5c544a;
  --gray-700: #443d35;
  --gray-800: #2e2822;
  --gray-900: #1a1714;

  /* Semantic Colors */
  --text-primary: #1a1714;
  --text-secondary: #5c544a;
  --text-muted: #9e9486;
  --text-on-dark: #f5f0e8;
  --bg-primary: var(--cream-light);
  --bg-secondary: var(--cream);

  /* Typography */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-primary: "Outfit", "Helvetica Neue", sans-serif;
  --font-accent: "Cormorant Garamond", "Georgia", serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Spacing */
  --section-padding: 140px;
  --container-padding: 24px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 23, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 23, 20, 0.06);
  --shadow-lg: 0 12px 32px rgba(26, 23, 20, 0.08);
  --shadow-xl: 0 24px 48px rgba(26, 23, 20, 0.1);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================================
   Base Styles
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal overflow without creating weird scroll containers */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

a {
  text-decoration: none !important;
  color: var(--accent-gold);
}

/* ============================================================================
   Navigation
   ============================================================================ */

.navbar {
  padding: 1.5rem 0;
  transition: all var(--transition-base);
  background: transparent !important;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(253, 251, 247, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
}

.brand-logo {
  font-family: var(--font-display);
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.brand-accent {
  color: var(--accent-gold) !important;
  -webkit-text-fill-color: var(--accent-gold) !important;
  font-style: italic;
}

.navbar-toggler-icon {
  filter: invert(0);
}

.navbar.scrolled .navbar-toggler-icon {
  filter: invert(0);
}

/* Dark hero nav */
.hero-section .navbar-toggler-icon {
  filter: invert(1);
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: var(--font-weight-regular);
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  position: relative;
  transition: color var(--transition-fast);
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-gold) !important;
}

.navbar-nav .nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.cta-link {
  color: var(--accent-gold) !important;
  font-weight: var(--font-weight-medium) !important;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
  }

  .navbar-collapse .nav-link {
    color: var(--text-primary) !important;
  }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    160deg,
    var(--primary-dark) 0%,
    var(--primary-charcoal) 40%,
    var(--secondary-dark) 100%
  );
  overflow: hidden;
}

.hero-section .nav-link {
  color: var(--cream) !important;
}

.hero-section .nav-link:hover {
  color: var(--accent-gold-light) !important;
}

.hero-section .brand-logo {
  color: var(--cream) !important;
  -webkit-text-fill-color: var(--cream) !important;
}

.hero-section .cta-link {
  color: var(--accent-gold-light) !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  animation: float 25s infinite ease-in-out;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-gold);
  top: -15%;
  right: -10%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #8a6e2f;
  bottom: -15%;
  left: -10%;
  animation-delay: 8s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-gold-light);
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  animation-delay: 16s;
  opacity: 0.04;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.badge-line {
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
}

.hero-badge span {
  color: var(--accent-gold-light);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
  font-family: var(--font-display);
}

.gradient-text {
  color: var(--accent-gold-light);
  font-style: italic;
  -webkit-text-fill-color: var(--accent-gold-light);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-300);
  margin-bottom: 3rem;
  max-width: 540px;
  font-family: var(--font-primary);
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Primary CTA */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.btn-primary-glow::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.6s;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  background: var(--accent-gold-light);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
  color: var(--primary-dark);
}

.btn-primary-glow:hover::before {
  left: 100%;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--cream);
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
}

.btn-outline-white:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.hero-trust-line {
  margin-top: 0;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.5px;
}

.trust-item i {
  color: var(--accent-gold-dim);
  font-size: 1rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease-in 1.5s forwards;
}

.ventures-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  z-index: 2;
}

.ventures-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.1);
  transform: translateX(-6px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-logo-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  filter: brightness(1.1);
}

/* Hero Parallax Letter Group */
.parallax-logo-group {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.parallax-letter {
  --f: 0.1;
  --r: 8px;

  --_f: calc(100% * var(--f) / (1 + var(--f)));
  --_a: calc(90deg * var(--f));
  width: 160px;
  aspect-ratio: calc(1 + var(--f));
  object-fit: cover;
  clip-path: inset(0 0 0 var(--_f) round var(--r));
  transform: perspective(400px)
    var(--_t, translateX(calc(-1 * var(--_f))) rotateY(calc(-1 * var(--_a))));
  transition: 0.5s;
  cursor: pointer;
  border: solid 2px rgba(201, 168, 76, 0.15);
  filter: brightness(1.1);
}

.parallax-letter:hover {
  clip-path: inset(0 var(--_f) 0 0 round var(--r));
  --_t: rotateY(var(--_a));
}

.hero-deco-frame {
  position: absolute;
  top: 15%;
  left: 10%;
  right: 10%;
  bottom: 15%;
  border: 1px solid rgba(252, 185, 0, 0.15);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.hero-deco-accent {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 60px;
  height: 60px;
  border-top: 2px solid var(--accent-gold);
  border-right: 2px solid var(--accent-gold);
  opacity: 0.3;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-gold), transparent);
  animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }
}

.scroll-text {
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

/* Keep .mouse for JS compatibility */
.mouse {
  display: none;
}

/* ============================================================================
   Section Divider
   ============================================================================ */

.section-divider {
  padding: 2rem 0;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ornament-line {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.3;
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  transform: rotate(45deg);
  opacity: 0.5;
}

/* ============================================================================
   Section Common Styles
   ============================================================================ */

section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  margin-bottom: 5rem;
}

.section-label {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
  font-family: var(--font-primary);
  position: relative;
  padding-left: 3rem;
}

.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--accent-gold);
}

.text-center .section-label {
  padding-left: 0;
}

.text-center .section-label::before {
  display: none;
}

.section-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  font-family: var(--font-display);
}

.section-title em {
  font-style: italic;
  color: var(--accent-gold);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
}

/* ============================================================================
   Tech Stack Section
   ============================================================================ */

.tech-logos-section {
  padding: 80px 0;
  background: var(--cream);
  overflow: hidden;
}

.tech-logos-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.tech-logos-wrapper .section-label {
  margin-bottom: 1rem;
  padding-left: 0;
}

.tech-logos-wrapper .section-label::before {
  display: none;
}

.tech-logos-wrapper h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
}

.tech-category-row {
  margin-bottom: 2rem;
  text-align: center;
}

.tech-category-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--accent-gold);
  font-family: var(--font-primary);
  opacity: 0.8;
}

.tech-stack-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto;
}

.badge-large {
  background-color: var(--warm-white);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  min-width: 80px;
  text-align: center;
  font-family: var(--font-primary);
  letter-spacing: 0.3px;
}

.badge-large:hover {
  background-color: var(--primary-dark);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-dark);
}

/* Badge morph */
.badge-large.tech-badge-morphable {
  min-width: 100px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-large .badge-text {
  display: inline-block;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.badge-large .badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-large .badge-icon i {
  font-size: 1.4rem;
  color: var(--accent-gold-light);
}

.badge-large .badge-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.badge-large.tech-badge-morphable:hover .badge-text {
  opacity: 0;
  transform: scale(0.8);
}

.badge-large.tech-badge-morphable:hover .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.badge-large.tech-badge-morphable:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.badge-large.tech-badge-morphable:focus .badge-text {
  opacity: 0;
  transform: scale(0.8);
}

.badge-large.tech-badge-morphable:focus .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================================================
   Services Section
   ============================================================================ */

.services-section {
  background: var(--bg-primary);
}

.service-card {
  height: 100%;
  padding: 2.5rem;
  background: var(--warm-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-200);
  line-height: 1;
  opacity: 0.5;
  transition: all var(--transition-base);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.service-card:hover .service-number {
  color: var(--accent-gold);
  opacity: 0.3;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
}

.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(201, 168, 76, 0.08);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.service-card:hover .icon-bg {
  background: rgba(201, 168, 76, 0.15);
}

.service-icon-wrapper i {
  position: relative;
  font-size: 1.75rem;
  color: var(--accent-gold);
  -webkit-text-fill-color: var(--accent-gold);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tags span {
  padding: 0.3rem 0.7rem;
  background: var(--cream);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  letter-spacing: 0.3px;
}

/* ============================================================================
   Process Section
   ============================================================================ */

.process-section {
  background: var(--primary-dark);
  color: var(--cream);
}

.process-section .section-title {
  color: var(--cream);
}

.process-section .section-title em {
  color: var(--accent-gold-light);
}

.process-section .section-desc {
  color: var(--gray-400);
}

.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:not(:last-child) .timeline-connector {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 2rem);
  background: linear-gradient(180deg, var(--accent-gold), transparent);
  z-index: 1;
  opacity: 0.2;
}

.timeline-content {
  flex: 1;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 2;
}

.timeline-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  background: var(--primary-dark);
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold);
  font-family: var(--font-display);
}

.timeline-item:nth-child(odd) .timeline-number {
  right: -36px;
}

.timeline-item:nth-child(even) .timeline-number {
  left: -36px;
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.timeline-content p {
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ============================================================================
   Case Studies Section
   ============================================================================ */

.case-studies-section {
  background: var(--bg-primary);
}

.case-study-card {
  height: 100%;
  padding: 2.5rem;
  background: var(--warm-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-study-header {
  margin-bottom: 1.5rem;
}

.case-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(201, 168, 76, 0.08);
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-primary);
}

.case-study-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.case-study-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.75rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  -webkit-text-fill-color: var(--accent-gold);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.tech-badge {
  padding: 0.3rem 0.7rem;
  background: var(--cream);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

/* Coming Soon Card */
.case-study-card.coming-soon {
  background: var(--cream);
  border: 1px dashed var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.coming-soon-content {
  text-align: center;
}

.coming-soon-content i {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  opacity: 0.35;
}

.coming-soon-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.coming-soon-content p {
  color: var(--text-secondary);
  font-weight: 300;
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-base);
  margin-top: 1rem;
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
}

.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.25);
  color: var(--primary-dark);
  background: var(--accent-gold-light);
}

/* ============================================================================
   About Section
   ============================================================================ */

.about-section {
  background: var(--cream);
}

.about-image {
  position: relative;
  height: 600px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  border-radius: var(--radius-md);
  display: flex;
  /* align-items: center; */
  justify-content: center;
  overflow: hidden;
}

.image-placeholder i {
  font-size: 8rem;
  color: rgba(201, 168, 76, 0.1);
}

/* Insert portrait into luxury frame */
.image-placeholder img.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: contrast(1.04) saturate(1.04);
  transition:
    transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 300ms ease;
}

.about-image:hover img.about-photo {
  transform: scale(1.035);
  filter: contrast(1.08) saturate(1.06);
}

/* Warm editorial fade so text card stays legible */
.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(26, 23, 20, 0) 45%,
    rgba(26, 23, 20, 0.55) 100%
  );
}

.about-frame {
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0.2;
}

.image-decoration {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--warm-white);
  backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.deco-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.deco-card i {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.deco-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.deco-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-content {
  padding-left: 3rem;
}

.about-content .section-label {
  margin-bottom: 1.5rem;
}
.about-content .section-title {
  margin-bottom: 2rem;
}

.about-lead {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-box {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--warm-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  -webkit-text-fill-color: var(--accent-gold);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
}

/* ============================================================================
   Contact Section
   ============================================================================ */

.contact-section {
  background: var(--bg-primary);
}

.contact-form-wrapper {
  padding: 3rem;
  background: var(--warm-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background: var(--cream-light);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-control.is-invalid {
  border-color: #c53030;
}

.invalid-feedback {
  display: none;
  color: #c53030;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-control option {
  background: var(--cream-light);
  color: var(--text-primary);
}

/* Form Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  padding: 3rem 0;
  background: var(--primary-dark);
  color: var(--cream);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.footer-brand .brand-accent {
  color: var(--accent-gold-light) !important;
  -webkit-text-fill-color: var(--accent-gold-light) !important;
}

.footer-left p {
  color: var(--gray-500);
  margin: 0;
  font-size: 0.85rem;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 0.85rem;
}

.footer-link:hover {
  color: var(--accent-gold-light);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 1399px) {
  .hero-visual {
    height: 500px;
    width: 500px;
    transform: translateX(10%);
  }
  .ventures-logo {
    width: 95%;
  }
  .parallax-letter {
    width: 140px;
  }
}

@media (max-width: 1199px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .section-title {
    font-size: 2.75rem;
  }
  .hero-visual {
    height: 500px;
    width: 500px;
    transform: translateX(-3%);
  }
  .ventures-logo {
    width: 87%;
  }
  .parallax-letter {
    width: 130px;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 100px;
  }

  .hero-title {
    font-size: 2.75rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-visual {
    height: 400px;
    margin-top: 0px;
    transform: translateY(-50%);
  }
  .parallax-letter {
    width: 110px;
  }
  .section-title {
    font-size: 2.25rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .timeline-item .timeline-number,
  .timeline-item:nth-child(even) .timeline-number {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    margin-bottom: 1.5rem;
  }

  .timeline-item:not(:last-child) .timeline-connector {
    display: none;
  }
  .about-content {
    padding-left: 0;
    margin-top: 3rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .ventures-logo {
    width: 370px;
  }
}

@media (max-width: 767px) {
  .partner-callout::after {
    background-position: center 1.25rem;
    background-size: min(340px, 70%);
    opacity: 0.07;
  }

  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary-glow,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .parallax-letter {
    width: 90px;
  }
  .parallax-logo-group {
    gap: 16px;
  }

  .ventures-logo {
    max-width: 300px;
  }

  .trust-logos {
    flex-direction: row;
    transform: translateX(9%);
  }
  .section-title {
    font-size: 2rem;
  }
  .case-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }

  .tech-logos-section {
    padding: 60px 0;
  }
  .tech-category-row {
    margin-bottom: 1.5rem;
  }

  .badge-large {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    min-width: 70px;
  }

  .badge-large.tech-badge-morphable {
    min-width: 85px;
    min-height: 38px;
  }
  .badge-large .badge-icon i {
    font-size: 1.2rem;
  }
  .badge-large .badge-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (max-width: 450px) {
  .hero-visual {
    height: 320px;
    transform: translateX(-12%);
  }
  .parallax-letter {
    width: 70px;
  }
  .parallax-logo-group {
    gap: 10px;
  }
  .ventures-logo {
    max-width: 225px;
    transform: translateX(-3px);
  }
  .trust-logos {
    flex-direction: row;
    transform: translateX(4%);
    flex-wrap: nowrap;
    margin-top: -10%;
    margin-bottom: -50%;
    opacity: 0;
  }
}
/* ============================================================================
   Utility Classes
   ============================================================================ */

.w-100 {
  width: 100%;
}
.text-center {
  text-align: center;
}
.d-none {
  display: none;
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}

.float-card {
  opacity: 1;
}

/* ================================
   Theme Switcher Floating Button
================================ */
.theme-switcher-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;
  border: 1px solid var(--accent-gold);
  padding: 14px 22px;
  border-radius: var(--radius-xl);
  font-weight: 500;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--cream), var(--warm-white));
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(201, 168, 76, 0.1);
  transition: all var(--transition-base);
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.theme-switcher-btn i {
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.theme-switcher-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px var(--accent-gold),
    0 8px 24px rgba(201, 168, 76, 0.2);
  border-color: var(--accent-gold-light);
}

/* ================================
   Theme Panel
================================ */
.theme-panel {
  background: var(--cream-light);
  border-left: 1px solid var(--gray-200);
}

.theme-panel .offcanvas-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 32px;
}

.theme-panel .offcanvas-title {
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.theme-panel .btn-close {
  opacity: 0.5;
}

.theme-panel .btn-close:hover {
  opacity: 1;
}

.theme-panel .offcanvas-body {
  padding: 32px;
}

.theme-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.theme-list a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--warm-white);
  font-family: var(--font-primary);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-list a .theme-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.theme-list a .theme-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.theme-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-gold),
    var(--accent-gold-dim)
  );
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.theme-list a:hover {
  background: var(--cream);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.theme-list a:hover::before {
  opacity: 1;
}

.theme-list a:hover .theme-name {
  color: var(--accent-gold-dim);
}

/* ================================
   Page Transition
================================ */
.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 5000;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(201, 168, 76, 0.05),
      transparent 70%
    ),
    linear-gradient(180deg, var(--cream-light), var(--cream));
  backdrop-filter: blur(0px);
  transition:
    opacity 0.4s ease,
    backdrop-filter 0.5s ease;
}

body.is-transitioning .page-transition {
  opacity: 1;
  backdrop-filter: blur(8px);
}

/* ============================================================================
   MAIN parity helpers
   ============================================================================ */

.visually-hidden-focusable {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden-focusable:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--primary-dark);
  color: var(--cream);
  z-index: 1200;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: rgba(245, 240, 232, 0.08);
  backdrop-filter: blur(10px);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--accent-gold),
    var(--accent-gold-light)
  );
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.35);
  transform-origin: left;
  transition: width 0.08s linear;
}

.brand-cta {
  position: relative;
  overflow: hidden;
}

.brand-cta .cta-texts {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 15rem;
}

.brand-cta .cta-text {
  grid-area: 1 / 1;
  display: inline-block;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease;
  text-align: center;
}

.brand-cta .cta-hover {
  transform: translateY(12px);
  opacity: 0;
}

.brand-cta:hover .cta-default,
.brand-cta:focus-visible .cta-default {
  transform: translateY(-12px);
  opacity: 0;
}

.brand-cta:hover .cta-hover,
.brand-cta:focus-visible .cta-hover {
  transform: translateY(0);
  opacity: 1;
}

.service-learn-more {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: var(--font-weight-medium);
}

.service-learn-more:hover {
  color: var(--accent-gold-light);
}

.partner-section {
  background: var(--cream);
}

.partner-callout {
  padding: 2.5rem;
  background: var(--warm-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.partner-callout > * {
  position: relative;
  z-index: 2;
}

.partner-callout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../../assets/images/SavorySuiteLogoNoBG.png");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: min(420px, 46%);
  opacity: 0.09;
  pointer-events: none;
  filter: saturate(0) brightness(0.72) sepia(0.35) hue-rotate(355deg);
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partner-title {
  font-size: 2.25rem;
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.partner-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 64ch;
}

.partner-desc a {
  color: var(--accent-gold);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

.partner-desc a:hover {
  color: var(--accent-gold-light);
}

.partner-btn {
  width: 100%;
  justify-content: center;
}

.partner-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (min-width: 992px) {
  .partner-btn {
    width: auto;
  }
}

@media (max-width: 576px) {
  .partner-callout {
    padding: 2rem;
  }

  .partner-title {
    font-size: 1.85rem;
  }
}
