/* Global Styles */

/* Font Awesome Performance Overrides */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src:
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2"),
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.ttf") format("truetype");
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"),
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.ttf") format("truetype");
}

:root {
  --primary-red: #ea1d24;
  --hover-red: #c61218;
  --dark-bg: #121212;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --gradient-red: linear-gradient(135deg,
      #ea1d24 0%,
      #d41b22 100%);
  /* Subtle gradient */

  /* FLUID SIZING ENGINE VARIABLES */
  --fluid-base-text: clamp(1rem, 0.9vw + 0.5rem, 1.15rem);
  --fluid-padding: clamp(1rem, 3vw, 2.5rem);
  --fluid-gap: clamp(1rem, 2vw, 2rem);
  --fluid-radius: clamp(12px, 2vw, 28px);
  --fluid-h1: clamp(1.8rem, 5vw, 3rem);
  --fluid-h2: clamp(1.5rem, 4.5vw, 2.5rem);
  --fluid-h3: clamp(1.2rem, 3vw, 1.6rem);

  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease-out;
  --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Master Engine for Automatic Resizing */
html {
  /* 1rem fluidly shifts between 12px (mobile) and 16px (desktop/laptop) */
  /* Ensures everything using 'rem' naturally scales perfectly proportionally */
  font-size: clamp(12px, 0.4vw + 10px, 16px);
}

/* Device specific resizing (iPhone XR / SE) without changing CSS layout */
@media screen and (max-width: 414px) {
  body {
    zoom: 0.9;
  }
}

@media screen and (max-width: 375px) {
  body {
    zoom: 0.85;
  }
}

@media screen and (max-width: 320px) {
  body {
    zoom: 0.75;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

/* Accessibility Focus Ring */
*:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #f8f9fa;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Sharper text */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  /* width: 100%; removed */
  /* Optimized background overlay - Removed unused im.avif */
  background: url("im.avif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

/* Abstract shapes - Animated Background */
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  /* Slightly sharper for movement visibility */
  z-index: 0;
  opacity: 0.4;
  /* Optimized for performance */
  will-change: transform;
  backface-visibility: hidden;
  animation: floatShape 20s infinite alternate ease-in-out;
}

/* ... existing animations ... */

/* ... (End of file, adding Marquee Styles) ... */

/* =========================================
   PERFORMANCE MARQUEE (GPU ACCELERATED)
   ========================================= */
.marquee-container-optimized {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Mask edges for smooth fade */
  mask-image: linear-gradient(to right,
      transparent,
      black 5%,
      black 95%,
      transparent);
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black 5%,
      black 95%,
      transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  /* Fit content exactly */
  gap: 2rem;
  /* Restore gap */
  /* Remove transition delays from children inside */
  animation: marquee-scroll var(--scroll-duration, 30s) linear infinite;
  will-change: transform;
  /* Hint to browser for optimization */
  min-width: 100%;
  /* Ensure it takes space */
}

dotlottie-player {
  display: block;
  /* Custom element needs display block */
  width: 70px;
  height: 70px;
  min-width: 70px;
  /* Prevent collapse */
  min-height: 70px;
}

/* Pause on hover if desired (optional for performance, but good for UX) */
.marquee-container-optimized:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Move half the length (one full set) */
}

/* Adjust original scroll containers to be hidden overflow by default if needed */
.interior-scroll-container,
.construction-scroll-container,
.architect-scroll-container {
  overflow-x: hidden;
  /* Hide scrollbars for the new implementation */
  /* Ensure flex context for measuring children width initially */
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(to right,
      rgba(234, 29, 36, 0.3),
      rgba(255, 100, 100, 0.2));
  top: -150px;
  right: -150px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(to left,
      rgba(40, 40, 255, 0.2),
      rgba(0, 200, 255, 0.2));
  bottom: -100px;
  left: -100px;
  animation-delay: -10s;
  /* Start halfway */
  animation-duration: 25s;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, 50px) rotate(10deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* The Glass Card - Refined & Animated */
.referral-card {
  background: rgba(255, 255, 255, 0.25);
  /* Very high transparency */
  backdrop-filter: blur(20px) saturate(180%);
  /* Stronger blur & saturation */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  width: 100%;
  max-width: 1100px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  /* Glass edge */
  border-right-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  /* Inner glow */
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* For the shine effect */
  contain: content;
  /* Isolate layout repaints */
}

/* Shine Effect */
.referral-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  transform: skewX(-25deg);
  animation: shine 8s infinite;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  /* Optimize animation */
}

@keyframes shine {
  0% {
    left: -150%;
  }

  20% {
    left: 150%;
  }

  /* Fast pass */
  100% {
    left: 150%;
  }

  /* Long pause */
}

/* Typography & Content */
.content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #111;
  letter-spacing: -1.5px;
  /* Tighter tracking for modern look */
  font-weight: 700;
}

/* Static Gradient Text - More Professional */
.text-gradient {
  color: var(--primary-red);
  /* Gradient text can cause accessibility issues or look cheap if not perfect. 
       Using a solid brand color relies less on browser rendering quirks. 
       If gradient is desired, keep it subtle and static. */
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.content p {
  color: white;
  font-size: 1.125rem;
  /* 18px */
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 95%;
}

.link-label {
  font-size: 0.85rem;
  color: white;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Referral Box */
.referral-box {
  display: flex;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
}

.referral-box:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(234, 29, 36, 0.1);
}

.referral-box input {
  flex-grow: 1;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  color: #333;
  outline: none;
  background: transparent;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
}

/* Primary Action Button */
.btn-copy {
  background: #111;
  color: white;
  border: none;
  padding: 0 2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  transition: all 0.2s ease;
}

.btn-copy:active {
  transform: translateY(0);
}

/* Social Icons - Clean & Minimal */
.share-options h3 {
  font-size: 0.75rem;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.social-share {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* Circle for more standard look */
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  border: none;
  /* Removed border */
  cursor: pointer;
}

.social-btn.whatsapp:hover {
  background: #25d366;
}

.social-btn.instagram:hover {
  background: #f09433;
  background: -moz-linear-gradient(45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%);
  background: -webkit-linear-gradient(45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%);
  background: linear-gradient(45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%);
  color: white;
  /* Ensure icon turns white */
}

.social-btn.facebook:hover {
  background: #1877f2;
}

/* =========================================
   HERO REGISTRY FORM (GLASSMORPHISM)
   ========================================= */
.registry-wrapper-glass {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
  padding: 1rem;
}

.registry-intro-glass h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: black;
  /* Updated to black per user request */
}

.registry-intro-glass p {
  font-size: 0.9rem;
  color: white;
  /* Updated to white per user request */
  margin-bottom: 1.5rem;
}

.registry-form-glass .fieldset-clean {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Make second fieldset full width or stacked if needed, 
   but for compact design let's keep inputs clean */
.registry-form-glass .input-group {
  width: 100%;
}

.registry-form-glass input,
.registry-form-glass select {
  width: 100%;
  padding: 12px 16px;
  /* Reduced padding */
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  /* Increased opacity for inputs */
  backdrop-filter: blur(4px);
  border-radius: 8px;
  font-size: 0.8rem;
  outline: none;
  transition: all 0.3s;
}

.registry-form-glass input:focus,
.registry-form-glass select:focus {
  background: white;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(234, 29, 36, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  /* Ensure legibility on glass */
}

.registry-form-glass .mt-2 {
  margin-top: 1rem;
}

/* Full width grid item */
.full-width-col {
  grid-column: 1 / -1;
  width: 100%;
}

#projectTypeHero {
  width: 100%;
  /* max-width and min-width handled by parent now */
  box-sizing: border-box;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: white;
  /* Updated to pure white */
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  width: auto;
}

.btn-register-hero {
  width: 100%;
  padding: 12px;
  background: var(--gradient-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn-register-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(234, 29, 36, 0.3);
}

/* Phone Number Input Styling */
.phone-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.country-code {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
  pointer-events: none;
  /* Let clicks pass through to input */
  z-index: 2;
  padding-right: 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  height: 60%;
  display: flex;
  align-items: center;
}

.phone-wrapper input {
  padding-left: 50px !important;
  /* Adjusted for +91 prefix */
  width: 100%;
  /* Ensure full width */
}

/* Right Visual Steps - Clean List */
/* Adjust Visual Section container to fit form */
.visual {
  display: block;
  /* Override previous grid step layout */
  padding-left: 2rem;
}

.step-card {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-left: 3px solid transparent;
}

.step-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-red);
  line-height: 1;
}

/* .step-card:hover .step-number removed */

.step-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #111;
}

.step-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.step-icon-large {
  font-size: 4rem;
  color: var(--primary-red);
  opacity: 0.2;
  /* Subtler to not overpower, but still red */
  display: flex;
  justify-content: center;
  width: 100%;
  /* Static for professionalism */
  transition: color 0.3s ease;
}

/* .step-card:hover .step-icon-large removed */

/* Success Overlay (Used in Hero Registry) */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  animation: overlayFadeIn 0.4s ease-out;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.success-content {
  text-align: center;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.success-overlay.active .success-content {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

/* Paytm Animation Icon */
.paytm-animation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  display: block;
  position: relative;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.anim-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 4;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #ea1d24;
  animation:
    fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.anim-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #ea1d24;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.anim-checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 50px #ea1d24;
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.success-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.success-content p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

.success-content button {
  background: var(--primary-red);
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.success-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(234, 29, 36, 0.3);
}

/* Hero Responsive */
@media (max-width: 1024px) {
  .shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
  }

  .shape-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    left: -80px;
  }
}

@media (max-width: 900px) {
  .referral-card {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 3rem;
  }

  .content h1 {
    font-size: 2.5rem;
  }

  .hero-section {
    padding: 4rem 0;
  }

  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 414px) {
  .shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
  }

  .shape-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
  }
}

@media (max-width: 375px) {
  .shape-1 {
    width: 250px;
    height: 250px;
    top: -40px;
    right: -40px;
  }

  .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -40px;
  }
}

/* =========================================
   ARCHITECTURE PLANS
   ========================================= */
.architecture-section {
  padding: 7rem 0;
  background: #fff;
  position: relative;
  background: #fff;
  position: relative;
  /* content-visibility removed for stability */
  contain-intrinsic-size: 1px 800px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
  letter-spacing: -1px;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Architect Scroll Override */
.architect-scroll-container {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 2rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  /* For JS calculations */
}

.architect-scroll-container::-webkit-scrollbar {
  display: none;
}

/* =========================================
   SPLIT EXPERTISE SECTION (CREATIVE MODE)
   ========================================= */
.split-expertise-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* Force single screen height on desktop */
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Center Divider Line */
.split-expertise-section::after {
  display: none;
}

.split-pane {
  flex: 1;
  min-width: 300px;

  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  height: 100%;
  overflow: hidden;
  /* 3D Perspective Context */
  perspective: 1500px;
}

/* --- Architect Pane (Blueprint aesthetic) --- */
.architect-pane {
  background-color: #050505;
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.88), rgba(10, 10, 15, 0.95)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2000&auto=format&fit=crop");
  /* Modern architectural exterior */
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
  /* Strong vignette */
  position: relative;
  z-index: 1;
}

.architect-pane::before {
  /* Tech scanline effect */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 1px,
      rgba(234, 29, 36, 0.03) 1px,
      rgba(234, 29, 36, 0.03) 2px);
  z-index: -1;
  pointer-events: none;
}

/* --- Interior Pane (Luxury aesthetic) --- */
.interior-pane {
  background-color: #fcf9f2;
  background-image:
    linear-gradient(rgba(252, 249, 242, 0.88), rgba(252, 249, 242, 0.95)),
    url("https://images.unsplash.com/photo-1618221195710-dd6b14668b2c?q=80&w=2000&auto=format&fit=crop");
  /* Interior living room */
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(212, 175, 55, 0.1);
}

/* Organic Flow Pattern */
.interior-pane::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* Subtle geometric pattern */
  background-image: radial-gradient(rgba(212, 175, 55, 0.1) 1px,
      transparent 1px);
  background-size: 30px 30px;
  transform: rotate(15deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* Headers with Depth */
.pane-header {
  margin-bottom: 2rem;
  max-width: 500px;
  flex-shrink: 0;
  z-index: 10;
  transform: translateZ(20px);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(234, 29, 36, 0.1);
  color: #ea1d24;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(234, 29, 36, 0.2);
  transition: all 0.3s ease;
}

.icon-box.light {
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.2);
}

.icon-box:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-red);
  color: white;
}

.icon-box.light:hover {
  background: #d4af37;
  color: white;
}

/* Vertical Scroll Styling (Creative 3D) */
/* 1. Wrapper */
.architect-scroll-wrapper,
.interior-scroll-wrapper {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0 1rem;
  /* 3D Transform Container */
  transform-style: preserve-3d;
}

/* Masks */
.architect-scroll-wrapper {
  mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
}

.interior-scroll-wrapper {
  mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
}

/* 2. Scrolling Track */
.architect-scroll-track,
.interior-scroll-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  will-change: transform;
  transform: translateZ(0);
  /* Force GPU compositing */
  backface-visibility: hidden;
  perspective: 1000px;
  -webkit-font-smoothing: antialiased;
}

/* 
   CREATIVE ROTATION:
   Rotate tracks slightly to create V-shape or Parallel lines
*/
.architect-scroll-track {
  --rotation: 0deg;
  /* Neutralized for clarity */
  --scale: 1;
  animation: verticalScrollLoop 40s linear infinite;
  transform-origin: center center;
}

.interior-scroll-track {
  --rotation: 0deg;
  /* Neutralized for clarity */
  --scale: 1;
  animation: verticalScrollLoop 50s linear infinite;
  transform-origin: center center;
}

/* Pause on hover and touch */
.architect-scroll-wrapper:hover .architect-scroll-track,
.interior-scroll-wrapper:hover .interior-scroll-track,
.construction-scroll-wrapper:hover .construction-scroll-track {
  animation-play-state: paused;
}

@keyframes verticalScrollLoop {
  0% {
    transform: translateZ(0) translateY(0);
  }

  100% {
    transform: translateZ(0) translateY(-50%);
  }
}

/* Reset Grid */
.pane-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  overflow: hidden;
  perspective: 1000px;
}

/* =========================================
   CREATIVE CARD STYLING
   ========================================= */

/* Base Card */
.split-card {
  width: 75%;
  /* Decreased width */
  margin: 0 auto 3rem;
  /* Added 3rem bottom margin for loop alignment */
  background: transparent;
  border-radius: 20px;
  /* Softer rounded corners */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  backface-visibility: hidden;
  /* Fix flickering */
  /* Soften the card edges */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);

  /* COUNTER ROTATION per card to keep content mostly straight but layout diagonal */
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Image Styling --- */
.split-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  /* Match natural image dimensions */
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1),
    filter 0.5s ease;
  will-change: transform;
}

/* --- Architects (Dark Theme) Creative Twist --- */
.architect-pane .split-card {
  background: rgba(30, 30, 30, 0.6);
  /* Glassy dark */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(3deg) scale(0.95);
  /* Slightly smaller default scale */
  overflow: hidden;
  /* For sheen */
}

/* Tech Overlay + Sheen Container */
.architect-pane .split-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(30, 30, 30, 0.9) 90%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

/* Sheen Swipe */
.architect-pane .split-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(234, 29, 36, 0.4),
      transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.architect-pane .split-card:hover {
  transform: rotate(3deg) scale(1.02) translateY(-10px);
  /* Reduced scale lift */
  border-color: #ea1d24;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(234, 29, 36, 0.2);
  /* Outer Glow */
  z-index: 100;
  /* Ensure on top */
  background: #1a1a1a;
}

.architect-pane .split-card:hover::after {
  left: 150%;
  /* Swipe sheen across */
  transition: left 0.6s ease;
}

.architect-pane .split-card:hover .split-card-img {
  transform: scale(1.1);
  filter: contrast(1.2) brightness(1.1);
}

.architect-pane .split-card:hover::before {
  opacity: 0.4;
  /* Lighten overlay to show detail */
}

/* --- Interior (Light Theme) Creative Twist --- */
.interior-pane .split-card {
  background: rgba(255, 255, 255, 0.7);
  /* Glassy light */
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transform: rotate(-3deg) scale(0.95);
  /* Slightly smaller default scale */
  overflow: hidden;
}

/* Sheen Swipe (Gold) */
.interior-pane .split-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(212, 175, 55, 0.4),
      transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.interior-pane .split-card:hover {
  transform: rotate(-3deg) scale(1.02) translateY(-10px);
  /* Reduced scale */
  box-shadow:
    0 30px 60px rgba(212, 175, 55, 0.25),
    0 0 30px rgba(255, 255, 255, 0.8);
  z-index: 100;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.interior-pane .split-card:hover::after {
  left: 150%;
}

.interior-pane .split-card:hover .split-card-img {
  transform: scale(1.1);
}

/* --- Content Typography Interactions --- */
.split-card-body {
  padding: 0.8rem 1rem;
  /* Reduced padding further */
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.architect-pane .split-card-body {
  margin-top: -15px;
  /* Adjusted overlapping */
}

.interior-pane .split-card-body {
  padding-top: 0.5rem;
}

/* Reduce font sizes */
.split-card h3 {
  font-size: 1.1rem;
  /* Compact Heading */
  margin-bottom: 0;
  /* Remove margin since no description */
  width: 100%;
}

.split-card p {
  display: none;
  /* Ensure any remnant p is hidden */
}

.interior-pane .split-card-img {
  height: auto;
  aspect-ratio: auto;
  /* "Soft Frame" effect */
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.architect-pane .split-card:hover h3 {
  color: #ea1d24;
  transform: translateX(5px);
}

.interior-pane .split-card:hover h3 {
  color: #bfa15f;
  /* Darker Gold */
  transform: translateX(5px);
}

.split-card:hover p {
  opacity: 1;
}

.split-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.split-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Feature Badge Polish */
.split-card .badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(234, 29, 36, 0.95);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(234, 29, 36, 0.3);
  z-index: 10;
}

/* Legacy card styles removed for creative update */

/* Image Zoom */
.dark-card:hover .split-card-img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Text Shift */
.dark-card .split-card-body h3,
.dark-card .split-card-body p,
.dark-card .split-details {
  transition: transform 0.4s ease-out;
}

.dark-card:hover .split-card-body h3 {
  color: #ea1d24;
  transform: translateX(5px);
}

.dark-card:hover .split-card-body p {
  color: #ddd;
  transform: translateX(5px);
}

.dark-card:hover .split-details li i {
  transform: scale(1.2);
  text-shadow: 0 0 5px rgba(234, 29, 36, 0.6);
}

.split-card.featured .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ea1d24;
  color: white;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

/* Light Card Styles */
.light-card {
  background: #f8f9fa;
  border: 1px solid #eee;
}

.light-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #d4af37;
}

/* Images */
.split-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.split-card:hover .split-card-img {
  transform: scale(1.08);
}

.split-card-body {
  padding: 1.5rem;
}

.split-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: "Montserrat", sans-serif;
}

.dark-card h3 {
  color: white;
}

.light-card h3 {
  color: #1a1a1a;
}

.split-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.dark-card p {
  color: #aaa;
}

.light-card p {
  color: #555;
}

/* --- Construction Pane (Slate aesthetic) --- */
.text-gradient-construction {
  background: linear-gradient(135deg, #ea1d24 0%, #ff4d4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.construction-pane {
  background-color: #140505;
  background-image:
    linear-gradient(rgba(20, 5, 5, 0.94), rgba(20, 5, 5, 0.97)),
    url("https://images.unsplash.com/photo-1590674823295-814a0808246d?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
}

.construction-pane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(234, 29, 36, 0.03) 10px,
      rgba(234, 29, 36, 0.03) 20px);
  z-index: -1;
  pointer-events: none;
}

.construction-scroll-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0 1rem;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.construction-scroll-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  will-change: transform;
  transform: translateZ(0);
  /* Force GPU compositing */
  animation: verticalScrollLoop 45s linear infinite;
  transform-origin: center center;
  backface-visibility: hidden;
}

.construction-scroll-wrapper:hover .construction-scroll-track,
.construction-scroll-wrapper:active .construction-scroll-track {
  animation-play-state: paused;
}

.construction-pane .split-card {
  background: rgba(40, 20, 20, 0.85);
  /* Dark red-tinted card */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(234, 29, 36, 0.3);
  transform: rotate(0deg) scale(0.95);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.construction-pane .split-card-img {
  height: 220px !important;
  /* Restored fixed height for stability */
  width: 100% !important;
  display: block !important;
  object-fit: cover;
  position: relative;
  z-index: 2;
  background-color: #222;
  /* Fallback while loading */
}

.construction-pane .split-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(234, 29, 36, 0.4),
      transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.construction-pane .split-card:hover {
  transform: rotate(0deg) scale(1.02) translateY(-10px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(234, 29, 36, 0.2);
  z-index: 100;
  background: #2a0e0f;
}

.construction-pane .split-card:hover::after {
  left: 150%;
}

.construction-pane .split-card:hover .split-card-img {
  transform: scale(1.1);
}

.construction-pane .split-card-body {
  padding-top: 0.5rem;
}

.construction-pane .split-card:hover h3 {
  color: #ea1d24;
  transform: translateX(5px);
}

/* Adaptive Mobile Responsive using Clamp & Min */
@media (max-width: 1024px) {
  .split-expertise-section {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .split-pane {
    width: 100%;
    /* Adaptive padding scales naturally down to 320px screens */
    padding: clamp(2rem, 5vw, 4rem) clamp(0.5rem, 3vw, 1.5rem);
    /* Height shrinks gracefully without aggressive breaks */
    height: clamp(450px, 80vh, 600px);
  }

  .pane-header h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .split-card {
    /* Widens elegantly as screen shrinks */
    width: clamp(280px, 90%, 400px);
  }

  .split-card-img {
    height: auto;
    max-height: 250px;
  }

  .split-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
  }

  /* Performance: Reduce heavy blur overlays on small screens */
  .architect-pane .split-card,
  .interior-pane .split-card,
  .construction-pane .split-card {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  /* Remove central divider line on mobile */
  .split-expertise-section::after {
    display: none;
  }
}

/* Removed unnecessary hardcoded layout breaks for SE/XR due to fluid clamp functions handling it gracefully. Kept only necessary tightest constraints */
@media (max-width: 414px) {

  .architect-scroll-wrapper,
  .interior-scroll-wrapper,
  .construction-scroll-wrapper {
    padding: 0 0.5rem;
  }

  .split-card-body {
    padding: 0.8rem;
  }
}

.plan-card {
  background: white;
  padding: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.plan-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.plan-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Subtle lift on hover */
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.plan-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  background: rgba(234, 29, 36, 0.05);
  border-radius: 12px;
}

.plan-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.plan-desc {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.plan-details {
  margin-top: auto;
  border-top: 1px solid #f5f5f5;
  padding-top: 1.5rem;
}

.plan-details li {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.plan-details li i {
  color: var(--primary-red);
  font-size: 0.8rem;
}

/* Featured Card Styles */
.plan-card.featured {
  background: #111;
  color: white;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.plan-card.featured .plan-icon {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.plan-card.featured h3,
.plan-card.featured p {
  color: white;
}

.plan-card.featured .plan-desc {
  color: #aaa;
}

.plan-card.featured .plan-details {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.plan-card.featured .plan-details li {
  color: #ccc;
}

.badge {
  display: inline-block;
  background: var(--primary-red);
  color: white;
  padding: 0.25rem 0.8rem;
  font-size: 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Old Registry Section Removed */
/* Success Overlay styles moved to Hero Section */

/* =========================================
   GLOBAL ANIMATIONS & UTILITIES
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 200;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Interior Section Merged Below */

/* =========================================
   INTERIOR DESIGN PORTFOLIO - HORIZONTAL SCROLL
   ========================================= */
.interior-section {
  padding: 6rem 0;
  background: #fcfcfc;
  overflow: hidden;
}

.interior-section .section-header {
  margin-bottom: 3rem;
  text-align: center;
}

/* Horizontal Scroll Container */
.interior-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 1rem;
  /* Padding for shadow clearance */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.interior-scroll-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Scrollable Cards */
.interior-card {
  flex: 0 0 320px;
  /* Fixed width */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 400px;
  /* Fixed height for consistency */
}

.interior-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Ensure card takes space */
.interior-card {
  min-height: 400px;
  contain: strict;
  /* Improve performance and isolation */
}

.interior-card .card-image {
  width: 100%;
  height: 100%;
  /* Full height image */
  position: relative;
  overflow: hidden;
}

.interior-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.interior-card:hover .card-image img {
  transform: scale(1.1);
}

/* Overlay Content */
.interior-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
  transform: translateY(0);
  transition: all 0.3s;
}

.interior-card .card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.interior-card .card-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

/* Hover reveal adjustment */
.interior-card:hover .card-content {
  padding-bottom: 2rem;
}

/* =========================================
   CONSTRUCTION PARTNER SECTION
   ========================================= */
.construction-section {
  padding: 7rem 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.construction-section .section-header p {
  color: #4a4a4a;
}

.construction-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  margin-top: 1rem;
}

.construction-scroll-container::-webkit-scrollbar {
  display: none;
}

.construction-card {
  flex: 0 0 280px;
  /* Slightly narrower than interior cards */
  background: #fdfdfd;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.construction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-red);
}

.construction-card .card-icon {
  width: 70px;
  height: 70px;
  background: rgba(234, 29, 36, 0.08);
  /* Light red tint */
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.construction-card:hover .card-icon {
  background: var(--primary-red);
  color: white;
  transform: scale(1.1);
}

.construction-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.construction-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* =========================================
   ROADMAP SECTION - WAVY GRID DESIGN
   ========================================= */
.roadmap-section {
  padding: 3rem 0;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.roadmap-section .section-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.roadmap-section .section-header h2 {
  color: #333;
}

.roadmap-section .section-header p {
  color: #555;
}

/* Container for the wavy roadmap */
.roadmap-wavy-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  padding: 1rem 0;
}

/* SVG Line Container */
.road-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.road-path {
  fill: none;
  stroke: url(#roadGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: drawLine 4s ease-out forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Float Animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Milestone Item */
.milestone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger Delays */
/* Row 1: 1 -> 5 */
.m1 {
  animation-delay: 0.2s;
  grid-area: 1 / 1;
}

.m2 {
  animation-delay: 0.6s;
  grid-area: 1 / 2;
}

.m3 {
  animation-delay: 1s;
  grid-area: 1 / 3;
}

.m4 {
  animation-delay: 1.4s;
  grid-area: 1 / 4;
}

.m5 {
  animation-delay: 1.8s;
  grid-area: 1 / 5;
}

/* Row 2: 9 <- 6 */
.m6 {
  animation-delay: 2.2s;
  grid-area: 2 / 5;
}

.m7 {
  animation-delay: 2.6s;
  grid-area: 2 / 4;
}

.m8 {
  animation-delay: 3s;
  grid-area: 2 / 3;
}

.m9 {
  animation-delay: 3.4s;
  grid-area: 2 / 2;
}

.m10 {
  animation-delay: 3.8s;
  grid-area: 2 / 1;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Milestone Point */
.milestone-point {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-black);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
  /* Float animation */
  animation: float 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* Stagger float */
.m1 .milestone-point {
  animation-delay: 0s;
}

.m2 .milestone-point {
  animation-delay: 0.5s;
}

.m3 .milestone-point {
  animation-delay: 1s;
}

.m4 .milestone-point {
  animation-delay: 1.5s;
}

.m5 .milestone-point {
  animation-delay: 2s;
}

.m6 .milestone-point {
  animation-delay: 2.5s;
}

.m7 .milestone-point {
  animation-delay: 3s;
}

.m8 .milestone-point {
  animation-delay: 3.5s;
}

.m9 .milestone-point {
  animation-delay: 4s;
}

.m10 .milestone-point {
  animation-delay: 4.5s;
}

.milestone:hover .milestone-point {
  transform: scale(1.1) translateY(-10px);
  border-color: var(--primary-red);
  box-shadow: 0 15px 35px rgba(234, 29, 36, 0.2);
}

.milestone .step-number {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-black);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
  transition: background 0.3s ease;
}

.milestone:hover .step-number {
  background: var(--primary-red);
}

.milestone h3 {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin-bottom: 5px;
  color: var(--primary-black);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.milestone p {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  color: var(--text-gray);
  max-width: 160px;
  line-height: 1.4;
  font-weight: 500;
}

.sub-text {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 3px;
  color: var(--primary-red);
}

/* Mobile Responsive Stack for Tablets and Below using Adaptive Scaling */
@media (max-width: 1024px) {
  .roadmap-wavy-container {
    display: flex;
    flex-direction: column;
    /* Padding scales automatically based on viewport size */
    padding: clamp(1.5rem, 5vw, 2.5rem) clamp(0.5rem, 4vw, 1.5rem);
    gap: clamp(1.5rem, 6vw, 3rem);
    min-height: auto;
  }

  .road-svg-container {
    display: none;
  }

  .roadmap-wavy-container::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 4px;
    height: calc(100% - 80px);
    background: linear-gradient(180deg,
        var(--primary-black),
        var(--primary-red));
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.1;
  }

  .milestone {
    background: #fff;
    padding: clamp(1rem, 4vw, 1.5rem);
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: none;
    opacity: 1;
    transform: none;
    flex-direction: row;
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: flex-start;
    text-align: left;
  }

  .milestone-point {
    animation: none;
    /* Node circle shrinks intelligently */
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    min-width: clamp(50px, 12vw, 70px);
    min-height: clamp(50px, 12vw, 70px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-width: 2px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .roadmap-section .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .milestone .step-number {
    width: clamp(20px, 5vw, 28px);
    height: clamp(20px, 5vw, 28px);
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    top: -3px;
    right: -3px;
  }

  .milestone h3 {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
  }

  .milestone p {
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    max-width: 100%;
  }
}

/* MOBILE PHONES (375px - 768px) */
@media (max-width: 768px) {
  .roadmap-section {
    padding: clamp(2rem, 5vw, 3rem) 0;
  }

  .roadmap-section .section-header {
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }

  .roadmap-section .section-header h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .roadmap-wavy-container {
    width: 95%;
    max-width: 100%;
    padding: clamp(1rem, 4vw, 1.5rem) clamp(0.5rem, 3vw, 1rem);
    gap: clamp(1rem, 5vw, 1.5rem);
  }

  .milestone {
    padding: clamp(0.9rem, 3.5vw, 1.3rem);
    border-radius: clamp(12px, 3vw, 16px);
    flex-direction: row;
    gap: clamp(0.8rem, 2.5vw, 1.2rem);
    align-items: flex-start;
    text-align: left;
  }

  .milestone-point {
    width: clamp(45px, 11vw, 65px);
    height: clamp(45px, 11vw, 65px);
    min-width: clamp(45px, 11vw, 65px);
    min-height: clamp(45px, 11vw, 65px);
  }

  .milestone h3 {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
  }

  .milestone p {
    font-size: clamp(0.78rem, 2vw, 0.88rem);
  }

  .milestone .step-number {
    width: clamp(18px, 4.5vw, 26px);
    height: clamp(18px, 4.5vw, 26px);
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  }

  .roadmap-wavy-container::before {
    top: 30px;
    height: calc(100% - 60px);
    width: 3px;
  }
}

/* SMALL PHONES (320px - 375px) */
@media (max-width: 375px) {
  .roadmap-section {
    padding: 1.5rem 0;
  }

  .roadmap-section .section-header {
    margin-bottom: 1.2rem;
  }

  .roadmap-section .section-header h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  }

  .roadmap-section .section-header p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .roadmap-wavy-container {
    width: 97%;
    padding: 0.8rem 0.4rem;
    gap: clamp(0.8rem, 4vw, 1.2rem);
  }

  .milestone {
    padding: clamp(0.8rem, 3vw, 1.1rem);
    border-radius: 12px;
    gap: clamp(0.7rem, 2vw, 1rem);
  }

  .milestone-point {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    min-width: clamp(40px, 10vw, 60px);
    min-height: clamp(40px, 10vw, 60px);
    border-width: 2px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  }

  .milestone h3 {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    margin-bottom: 0.25rem;
  }

  .milestone p {
    font-size: clamp(0.75rem, 1.8vw, 0.83rem);
    line-height: 1.35;
  }

  .milestone .step-number {
    width: clamp(16px, 4vw, 24px);
    height: clamp(16px, 4vw, 24px);
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    border: 1px solid #fff;
    top: -2px;
    right: -2px;
  }

  .roadmap-wavy-container::before {
    top: 20px;
    height: calc(100% - 40px);
    width: 2px;
  }
}

/* ULTRA SMALL (iPhone SE - 320px and below) */
@media (max-width: 320px) {
  .roadmap-section {
    padding: 1.2rem 0;
  }

  .roadmap-section .section-header h2 {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
  }

  .roadmap-section .section-header p {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  }

  .roadmap-wavy-container {
    width: 98%;
    padding: 0.6rem 0.3rem;
    gap: 0.7rem;
  }

  .milestone {
    padding: 0.7rem;
    border-radius: 10px;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .milestone-point {
    width: clamp(35px, 9vw, 55px);
    height: clamp(35px, 9vw, 55px);
    min-width: clamp(35px, 9vw, 55px);
    min-height: clamp(35px, 9vw, 55px);
  }

  .milestone h3 {
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    margin-bottom: 0.2rem;
  }

  .milestone p {
    font-size: clamp(0.7rem, 1.5vw, 0.78rem);
    line-height: 1.3;
  }

  .milestone .step-number {
    width: clamp(14px, 3.5vw, 22px);
    height: clamp(14px, 3.5vw, 22px);
    font-size: clamp(0.55rem, 1.2vw, 0.7rem);
  }

  .roadmap-wavy-container::before {
    width: 2px;
  }
}

/* Roadmap Staggered Quote */
.section-header .quote-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-header .quote-line {
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.section-header .quote-line-staggered {
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  align-self: flex-end;
  margin-top: 5px;
}

@media (max-width: 768px) {

  .section-header .quote-line,
  .section-header .quote-line-staggered {
    font-size: 0.95rem;
    text-align: center;
    align-self: center;
  }
}

/* =========================================
   RESPONSIVE INFINITE EXPERTISE SECTION
   ========================================= */

/* MAIN SECTION - Infinite Expertise Triptych */
.infinite-expertise-triptych {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* EXPERTISE PILLARS - Base Styles */
.expertise-pillar-architects,
.expertise-pillar-builders,
.expertise-pillar-designers {
  flex: 1;
  min-width: 300px;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  height: 100%;
  overflow: hidden;
  perspective: 1500px;
}

/* Architects Pillar - Dark Theme */
.expertise-pillar-architects {
  background-color: #050505;
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.88), rgba(10, 10, 15, 0.95)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.expertise-pillar-architects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 1px,
      rgba(234, 29, 36, 0.03) 1px,
      rgba(234, 29, 36, 0.03) 2px);
  z-index: -1;
  pointer-events: none;
}

/* Builders Pillar - Slate Theme */
.expertise-pillar-builders {
  background-color: #1a1a1e;
  background-image:
    linear-gradient(rgba(26, 26, 30, 0.88), rgba(26, 26, 30, 0.95)),
    url("https://images.unsplash.com/photo-1581094271901-8022df4466f9?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.expertise-pillar-builders::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(234, 29, 36, 0.02) 10px,
      rgba(234, 29, 36, 0.02) 12px);
  z-index: -1;
  pointer-events: none;
}

/* Designers Pillar - Light Theme */
.expertise-pillar-designers {
  background-color: #fcf9f2;
  background-image:
    linear-gradient(rgba(252, 249, 242, 0.88), rgba(252, 249, 242, 0.95)),
    url("https://images.unsplash.com/photo-1618221195710-dd6b14668b2c?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(212, 175, 55, 0.1);
}

.expertise-pillar-designers::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(rgba(212, 175, 55, 0.1) 1px,
      transparent 1px);
  background-size: 30px 30px;
  transform: rotate(15deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* RESPONSIVE SCROLL WRAPPERS */
.architect-scroll-wrapper-responsive,
.construction-scroll-wrapper-responsive,
.interior-scroll-wrapper-responsive {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0 1rem;
  transform-style: preserve-3d;
}

.architect-scroll-wrapper-responsive,
.construction-scroll-wrapper-responsive {
  mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
}

.interior-scroll-wrapper-responsive {
  mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent);
}

/* RESPONSIVE SCROLL TRACKS */
.architect-scroll-track-responsive,
.construction-scroll-track-responsive,
.interior-scroll-track-responsive {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  -webkit-font-smoothing: antialiased;
}

.architect-scroll-track-responsive {
  animation: verticalScrollLoop 40s linear infinite;
  transform-origin: center center;
}

.construction-scroll-track-responsive {
  animation: verticalScrollLoop 45s linear infinite;
  transform-origin: center center;
}

.interior-scroll-track-responsive {
  animation: verticalScrollLoop 50s linear infinite;
  transform-origin: center center;
}

/* Pause on hover */
.architect-scroll-wrapper-responsive:hover .architect-scroll-track-responsive,
.construction-scroll-wrapper-responsive:hover .construction-scroll-track-responsive,
.interior-scroll-wrapper-responsive:hover .interior-scroll-track-responsive {
  animation-play-state: paused;
}

/* =========================================
   MOBILE/TABLET RESPONSIVE OVERRIDES
   ========================================= */

/* TABLETS (768px - 1024px) */
@media (max-width: 1024px) {
  .infinite-expertise-triptych {
    height: auto;
    min-height: auto;
    flex-direction: column;
  }

  .expertise-pillar-architects,
  .expertise-pillar-builders,
  .expertise-pillar-designers {
    min-width: 100%;
    width: 100%;
    height: 500px;
    min-height: 500px;
    padding: 2rem 1.5rem;
    flex: none;
  }

  .pane-header {
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .architect-scroll-wrapper-responsive,
  .construction-scroll-wrapper-responsive,
  .interior-scroll-wrapper-responsive {
    padding: 0 0.5rem;
  }
}

/* MOBILE - iPhone XR / SE / Standard (375px - 768px) */
@media (max-width: 768px) {
  .infinite-expertise-triptych {
    height: auto;
    min-height: auto;
    flex-direction: column;
  }

  .expertise-pillar-architects,
  .expertise-pillar-builders,
  .expertise-pillar-designers {
    min-width: 100%;
    width: 100%;
    height: 450px;
    min-height: 450px;
    padding: clamp(1.5rem, 5vw, 2rem) clamp(1rem, 4vw, 1.5rem);
    gap: clamp(1rem, 3vw, 1.5rem);
    flex: none;
  }

  .pane-header {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    max-width: 100%;
  }

  .pane-header h2 {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }

  .pane-header p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  }

  .icon-box {
    width: clamp(45px, 12vw, 60px);
    height: clamp(45px, 12vw, 60px);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
  }

  /* NEVER-ENDING EFFECT ON MOBILE */
  .architect-scroll-track-responsive,
  .construction-scroll-track-responsive,
  .interior-scroll-track-responsive {
    animation-duration: 30s;
    animation-timing-function: linear;
  }

  .architect-scroll-wrapper-responsive,
  .construction-scroll-wrapper-responsive,
  .interior-scroll-wrapper-responsive {
    mask-image: linear-gradient(to bottom,
        transparent,
        black 10%,
        black 90%,
        transparent);
    -webkit-mask-image: linear-gradient(to bottom,
        transparent,
        black 10%,
        black 90%,
        transparent);
  }
}

/* SMALL PHONES (320px - 375px) */
@media (max-width: 375px) {
  .infinite-expertise-triptych {
    height: auto;
    min-height: auto;
  }

  .expertise-pillar-architects,
  .expertise-pillar-builders,
  .expertise-pillar-designers {
    height: 380px;
    min-height: 380px;
    padding: 1.2rem 0.8rem;
    gap: 0.8rem;
  }

  .pane-header {
    margin-bottom: 0.8rem;
  }

  .pane-header h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }

  .pane-header p {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    line-height: 1.4;
  }

  .icon-box {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
  }

  /* EXTREME NEVER-ENDING EFFECT - Faster scroll for small phones */
  .architect-scroll-track-responsive,
  .construction-scroll-track-responsive,
  .interior-scroll-track-responsive {
    animation-duration: 25s;
  }
}

/* ULTRA SMALL (iPhone SE - 320px) */
@media (max-width: 320px) {
  .infinite-expertise-triptych {
    height: auto;
    min-height: auto;
  }

  .expertise-pillar-architects,
  .expertise-pillar-builders,
  .expertise-pillar-designers {
    height: 350px;
    min-height: 350px;
    padding: 1rem 0.6rem;
    gap: 0.6rem;
  }

  .pane-header {
    margin-bottom: 0.6rem;
  }

  .pane-header h2 {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .pane-header p {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    line-height: 1.3;
  }

  .icon-box {
    width: clamp(35px, 9vw, 45px);
    height: clamp(35px, 9vw, 45px);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 0.5rem;
  }

  /* Maximum speed for ultra-small screens */
  .architect-scroll-track-responsive,
  .construction-scroll-track-responsive,
  .interior-scroll-track-responsive {
    animation-duration: 22s;
  }
}