/* FONT IMPORTS */
/* Cabinet Grotesk font removed - not used in current design */

@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/Inria_Serif/InriaSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/Inria_Serif/InriaSerif-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/Inria_Serif/InriaSerif-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/Inria_Serif/InriaSerif-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/Inria_Serif/InriaSerif-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/Inria_Serif/InriaSerif-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* GeneralSans font removed - file not found */

/* ====== GAMBARINO ====== */
@font-face {
  font-family: 'Gambarino';
  src: url('/assets/fonts/Gambarino-Regular/TTF/Gambarino-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ====== SPECTRAL ====== */
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/Spectral/Spectral-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/Spectral/Spectral-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ====== ZODIAK - REMOVED (Replaced with Inria Serif) ====== */

/* BASE STYLING */
:root {
  --scrollbar-width: 8px; /* Standard scrollbar width for most browsers */
}

body {
  margin: 0;
  padding: 0;
  background-color: #f9efdc;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f9efdc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-corner {
  background: #f9efdc;
}

/* Firefox scrollbar styling */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) #f9efdc;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus States */
:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 88px; /* Reduced from 143px to 88px (11 × 8px grid) for better screen real estate */
  padding: 20px 40px 0 40px; /* Increased horizontal padding to 40px to align with content sections */
  background-color: #f9efdc;
  position: relative; /* Allow absolute positioning of nav-links */
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none; /* Remove underline from link */
  color: #000;
  margin: 0;
  transition: opacity 0.2s ease; /* Smooth hover effect */
}

.logo-svg {
  width: auto;
  height: 22px; /* Reduced from 26px for better proportion */
  display: block;
}

.logo-svg path {
  fill: currentColor; /* Ensure paths use currentColor for CSS control */
}

.logo:hover {
  opacity: 0.7; /* Subtle hover feedback */
}

.logo:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 40px;
  position: absolute;
  left: 50%; /* True center positioning */
  transform: translateX(calc(-50% - var(--scrollbar-width) / 2)); /* Compensate for scrollbar to maintain perfect visual center */
  margin-top: 8px; /* Adjusted for reduced header height */
}

.navbar .nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  color: #000;
  font-family: 'Inria Serif', serif;
  font-weight: 400;
  font-style: normal;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #000;
  transition: width 0.3s ease;
}

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

/* ========== BUTTON STYLING ========== */

button,
.footer-btn,
.access-btn,
.hero-btn {
  font-family: 'Inria Serif', serif;
  font-size: 16px;
  font-weight: 700;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Waitlist button specific styling */
.join-waitlist-btn {
  font-weight: 700;
}

/* Hover effect — subtle scale and shadow */
button:hover {
  background-color: #222222;
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Click (active) effect — slight shrink */
button:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

/* CTA buttons spacing */
.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Secondary Buttons */
.access-btn,
.join-waitlist-btn {
  padding: 6px 16px;
  height: 35px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero button */
.hero-btn {
  padding: 14px 19px;
  width: 298px;
  height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inria Serif', serif;
  font-size: 16px;
  font-weight: 700;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
  background-color: #222;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:active {
  background-color: #111;
  transition-duration: 0.1s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 56px 0 8px 0; /* Increased to 56px for more separation from header */
  background-color: #f9efdc;
}

.hero-title {
  font-family: 'Gambarino', serif;
  font-weight: 400;
  font-size: 64px; /* Golden ratio improvement: 64px (1.618 × 40px) */
  letter-spacing: 0.02em;
  color: #000;
  margin-bottom: 16px; /* Increased breathing room (8px grid) */
  line-height: 1.1; /* Tighter line height for impact */
}

.hero-subtitle {
  font-family: 'Gambarino', serif;
  font-size: 40px; /* Golden ratio improvement: 40px (1.618 × 25px) */
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 24px 0; /* Better spacing with 8px grid system */
  color: #000;
  line-height: 1.2; /* Improved readability */
}

.hero-description {
  font-family: 'Inria Serif', serif;
  font-weight: 400;
  font-size: 20px; /* Slightly larger for better readability */
  letter-spacing: 0.02em;
  max-width: 1000px; /* Slightly narrower for better reading line length */
  margin: 0 auto 40px; /* Increased spacing for better visual rhythm */
  color: #000;
  line-height: 1.5; /* Improved readability */
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 32px; /* Reduced gap for better visual balance */
  margin-bottom: 32px; /* Shifted 8px higher while maintaining 8px grid */
}

/* HERO DIVIDER */
.hero-divider {
  border: none;
  height: 1px; /* Clean, precise line - matches hiw-sub-divider */
  background-color: rgba(0, 0, 0, 0.75); /* Increased from 0.6 for better visibility */
  width: 90%; /* Luxury editorial magazine width - spans most content */
  max-width: 1200px; /* Cap for very large screens */
  margin: 0 auto;
  transform: scaleY(1) translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  -webkit-transform: translateZ(0);
}

/* ========== CAROUSEL STRUCTURE ========== */
.carousel-wrapper {
  width: 100%;
  margin-top: -8px; /* Negative margin to shift carousel content higher */
  margin-bottom: 0; /* Removed bottom margin since dots now have their own margin */
  padding-top: 0px; /* Minimal padding - clean, tight design */
  padding-bottom: 8px; /* 8px grid compliant padding for hover effects */
}

.carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  margin-right: -32px; /* neutralize the last padding so no extra gap */
  touch-action: pan-y pinch-zoom;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 auto;
  min-width: 0;
  padding-right: 32px; /* spacing inside the track */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  opacity: 1; /* Restore normal opacity for infinite loop */
  filter: none;
  will-change: transform, opacity;
}

.carousel-slide .hero-btn {
  width: 298px; /* Keep existing button width */
}

/* ========== CAROUSEL VISUAL STATES ========== */
/* Removed unnecessary is-active styling - all slides look the same */

/* Removed hover effects - keeping buttons static while maintaining carousel transitions */

/* Premium Tesla/Apple-style cursor states */
.carousel {
  cursor: grab;
}

.carousel:active {
  cursor: grabbing;
}

/* Removed micro-interactions to preserve infinite loop behavior */

/* Focus indicator for keyboard navigation */
.carousel:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Removed slideIn animation - keeping carousel clean and simple */

/* Removed slide animation to preserve infinite loop behavior */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-track,
  .carousel-dot {
    transition: none;
    animation: none;
  }
  
  .carousel-slide {
    filter: none;
    opacity: 1;
    transform: none;
  }
}

/* ========== CAROUSEL NAVIGATION DOTS ========== */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px; /* 8px grid compliant - maintains design consistency */
  margin-bottom: 8px; /* 8px grid compliant - balanced spacing */
  padding: 0;
  box-sizing: border-box;
}

.carousel-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, background-color;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carousel-dot:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.2) translate3d(0, 0, 0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-dot.is-active {
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 4px; /* Pill shape */
  width: 20px; /* Slightly longer for better visual feedback */
  transform: scale(1.1) translate3d(0, 0, 0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-dot:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* ========== CAROUSEL ARROW NAVIGATION ========== */
.carousel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity, background-color;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  overflow: hidden;
}

.carousel-arrow:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.9);
  transform: scale(1.05) translate3d(0, 0, 0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 
              0 2px 6px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:active:not(:disabled) {
  transform: scale(0.98) translate3d(0, 0, 0);
  transition-duration: 0.1s;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.3);
}

.carousel-arrow:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 2px;
}

.carousel-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.carousel-arrow:hover:not(:disabled) svg {
  transform: scale(1.1);
}


/* SHOWCASE 1 - Side by Side Layout */
.showcase {
  background-color: #f9efdc;
  padding: 40px 40px 40px; /* Reduced to 40px for closer section spacing */
}

.showcase-content {
  display: flex;
  align-items: flex-start;
  gap: 80px; /* 8px grid compliant */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px; /* 8px grid compliant */
}

.showcase-text {
  flex: 0 0 520px;
  padding-top: 0;
  transform: translateY(-8px);
}

.showcase-text h3 {
  font-family: 'Gambarino', serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #000;
  margin-bottom: 24px;
  line-height: 1.25;
}

.showcase-caption {
  font-family: 'Gambarino', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #333;
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
}

.showcase-image {
  flex: 0 0 520px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.showcase-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* SHOWCASE 2 - Alternating Layout (Image Left, Text Right) */
.showcase-2 {
  background-color: #f9efdc;
  padding: 40px 40px 40px; /* Reduced to 40px for closer section spacing */
}

.showcase-content-alt {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.showcase-image-second {
  flex: 0 0 520px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.showcase-image-second img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.showcase-text-alt {
  flex: 1;
  padding-top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.showcase-highlight {
  font-family: 'Gambarino', serif;
  font-size: 32px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0;
  text-align: right;
  max-width: 100%;
}

.showcase-divider {
  width: 0;
  height: 1px; /* Matches hiw-sub-divider thickness */
  background-color: rgba(0, 0, 0, 0.6); /* Matches hiw-sub-divider styling */
  border: none;
  margin: 0 auto 64px;
  opacity: 0;
  transform: scaleY(1) translateZ(0); /* Matches hiw-sub-divider hardware acceleration */
  transition: width 1.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
              opacity 0.4s ease-in,
              transform 0.1s ease-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.showcase-divider.visible {
  width: 90%; /* Luxury editorial magazine width */
  max-width: 1200px; /* Cap for consistency */
  opacity: 1;
  transform: scaleY(1);
}

/* Section divider above Why Draftimate */
.showcase-section-divider {
  border: none;
  height: 1px; /* Matches hiw-sub-divider thickness */
  background-color: rgba(0, 0, 0, 0.75); /* Increased from 0.6 for better visibility */
  width: 90%; /* Luxury editorial magazine width - matches other dividers */
  max-width: 1200px; /* Cap for consistency with content containers */
  margin: 0 auto; /* Removed excessive vertical margins - section padding provides spacing */
  transform: scaleY(1) translateZ(0); /* Matches hiw-sub-divider hardware acceleration */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  -webkit-transform: translateZ(0);
}
/* SHOWCASE 3 */
.showcase-3 {
  background-color: #f9efdc;
  padding: 40px 40px 40px; /* Reduced to 40px for closer section spacing */
}

/* Initial state for GSAP animations */
.showcase-heading {
  opacity: 0;
  transform: translateY(20px); /* Reduced from 40px for subtler animation */
}

/* Introduction section initial states */
.showcase-text {
  opacity: 0;
  transform: translateX(-30px);
}

.showcase-caption {
  opacity: 0;
  transform: translateX(30px);
}

.showcase-block {
  opacity: 0;
  transform: translateX(-60px);
}

.showcase-subtitle {
  opacity: 0;
  transform: translateX(-30px);
}

.showcase-description {
  opacity: 0;
  transform: translateX(-20px);
}

.showcase-inner-divider {
  opacity: 0;
  transform: scaleX(0);
}

/* Group-specific initial states */
.showcase-block.group-1 {
  opacity: 0;
  transform: translateX(-60px);
}

.showcase-block.group-2 {
  opacity: 0;
  transform: translateX(-60px);
}

.showcase-3-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.showcase-heading {
  font-family: 'Gambarino', serif;
  font-size: 72px; /* Increased from 67px to 72px for better prominence */
  font-weight: 400;
  color: #1a1a1a; /* Slightly darker for better prominence */
  margin: 40px 0 8px 0; /* Increased top margin by 8px (32px + 8px = 40px) for better section breathing */
  text-align: left;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.showcase-sub {
  font-family: 'Gambarino', serif;
  font-size: 24px; /* Golden ratio: 24px (20% increase from original 20px base) */
  font-weight: 400;
  color: #000; /* Changed to match other text elements for consistency */
  margin: 0 0 16px 0; /* Consistent with hiw-sub: 0 0 16px 0 */
  text-align: left;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 600px; /* Optimal reading line length */
}

.showcase-sub-divider {
  width: 70%; /* Increased to 70% (L2: Subsections) for clearer hierarchy */
  height: 1px;
  background-color: rgba(0, 0, 0, 0.75); /* Increased from 0.6 for better visibility */
  border: none;
  margin: 16px 0 32px 0; /* Reduced to 32px for balanced spacing */
  /* Transform properties handled by GSAP animation */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  /* Ensure consistent rendering */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.showcase-heading-divider {
  width: 90%; /* Luxury editorial magazine width */
  max-width: 1200px; /* Cap for consistency */
  height: 1px;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  margin: 48px auto 0 auto; /* 8px grid compliant */
  /* GSAP handles animation - initial state set in JS */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.showcase-block {
  margin-bottom: 48px; /* Increased to 48px (6×8px) to create clear separation between blocks */
}

.showcase-subtitle {
  font-family: 'Gambarino', serif;
  font-size: 30px; /* Slightly reduced from 32px for better hierarchy with lighter description weight */
  font-weight: 500; /* Increased from 400 to 500 for better visual hierarchy */
  color: #000;
  margin-bottom: 16px; /* Tightened to 16px (2×8px) to show close relationship with description */
  margin-left: 20px; /* Space for refined accent line */
  text-align: left;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
}

/* Editorial-grade vertical accent lines with perfect typographic alignment */
.showcase-subtitle::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 100%);
  border-radius: 1.5px;
  opacity: 0.85;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.showcase-description {
  font-family: 'Gambarino', serif;
  font-size: 22px; /* Increased from 20px to 22px for better readability */
  font-weight: 300; /* Lighter weight for better hierarchy */
  letter-spacing: 0.01em;
  color: #333333;
  max-width: 960px; /* Optimal reading line length */
  margin-bottom: 16px; /* Tightened to 16px (2×8px) to maintain close relationship with subtitle */
  margin-left: 20px; /* Align with refined subtitle accent line spacing */
  text-align: left;
  line-height: 1.65; /* Improved from 1.5 to 1.65 for better readability */
}

.showcase-inner-divider {
  width: 50%; /* Reduced to 50% (L3: Content blocks) for clearer hierarchy */
  max-width: 600px; /* Adjusted proportionally */
  height: 1px; /* Matches hiw-sub-divider thickness */
  background-color: rgba(0, 0, 0, 0.75); /* Increased from 0.6 for consistency with other dividers */
  border: none;
  margin: 24px auto 0; /* Further reduced from 32px to 24px for tighter spacing (8px grid compliant) */
  transform: scaleY(1) translateZ(0); /* Matches hiw-sub-divider hardware acceleration */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* FINAL SECTION */
.final-section {
  padding: 100px 75px 40px;
  background-color: #f9efdc;
}

/* Desktop Footer - Professional Redesign */
.desktop-footer {
  padding: 32px 20px 24px;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Footer card - Professional styling */
.final-v2__footer {
  background: #000;
  color: #fff;
  border-radius: 16px; /* consistent with waitlist panel */
  padding: 32px 40px 24px; /* Rounded to 32px (4×8px) for 8px grid compliance */
  box-shadow: 0 -8px 24px rgba(0,0,0,.15), 0 0 0 1px rgba(255,255,255,0.05);
  max-width: clamp(1040px, 86vw, 1200px);
  width: 100%;
  position: relative;
  z-index: 10;
  overflow: hidden;
  
  /* Performance optimizations for smooth animations */
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  contain: layout style paint;
}

.final-v2__footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Inner content - Professional spacing */
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Further reduced from 20px for tighter spacing */
}

/* Header Section - Professional typography */
.footer__header {
  text-align: center;
  margin-bottom: 0;
  
  /* Performance optimizations */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Logo - Professional brand styling */
.final-v2__title {
  font-family: 'Gambarino', serif; /* brand font for logo */
  font-size: 36px; /* refined from 44px for better proportion */
  font-weight: 400; /* Gambarino only has weight 400 */
  letter-spacing: -0.02em; /* tight, professional logo spacing */
  line-height: 1.1; /* tight, professional */
  margin: 0 0 12px; /* 1.5×8px grid for tighter spacing */
  color: #fff;
}

/* Tagline - Brand consistency */
.final-v2__tagline {
  font-family: 'Gambarino', serif; /* brand font for consistency */
  font-size: 16px; /* refined from 18px */
  font-weight: 400; /* regular, complements bold logo */
  letter-spacing: 0.01em; /* slight spacing for readability */
  line-height: 1.4; /* readable */
  margin: 0;
  color: rgba(255, 255, 255, 0.95); /* Improved contrast - increased from 0.8 */
}


/* Content Grid */
.footer__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 8px;
}

/* Footer Sections */
.footer__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__section-title {
  font-family: 'Gambarino', serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-family: 'Inria Serif', serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer__link:hover {
  color: #fff;
}

/* Hover effects for sections */
.footer__section:hover .footer__section-title {
  color: rgba(255, 255, 255, 0.9);
}


/* Bottom Section - Professional layout */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px; /* Reduced from 16px for tighter spacing */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Performance optimizations */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Social section - Professional styling */
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Rounded to 8px (1×8px) for 8px grid compliance */
}

.footer__social-label {
  font-family: 'Inria Serif', serif; /* match form elements */
  font-size: 13px; /* consistent with form text */
  color: rgba(255, 255, 255, 0.95); /* Improved contrast - increased from 0.8 */
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Contact section - Professional styling */
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px; /* Reduced from 4px for tighter spacing */
}

.footer__contact-text {
  font-family: 'Inria Serif', serif; /* match form elements */
  font-size: 15px; /* consistent with form text */
  color: #fff;
  margin: 0;
  font-weight: 500; /* Improved contrast - slightly bolder for better readability */
  letter-spacing: 0.01em;
}

/* Email link styling - maintains visual consistency with footer link pattern */
.footer__email-link {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  font-weight: 500; /* Improved contrast - slightly bolder for better readability */
}

.footer__email-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f6e6d3;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer__email-link:hover {
  color: #f6e6d3 !important;
  transform: translateY(-1px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer__email-link:hover::after {
  width: 100%;
}

.footer__email-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__copyright {
  font-family: 'Inria Serif', serif; /* match form elements */
  font-size: 12px; /* consistent with form disclaimer */
  color: rgba(255, 255, 255, 0.85); /* Improved contrast - increased from 0.65 */
  margin: 0;
  letter-spacing: 0.01em;
}

/* Icons - Professional styling */
.final-v2__icons {
  display: flex;
  align-items: center;
  gap: 20px; /* refined spacing */
  justify-content: flex-start;
}

/* Optimized social icon styling - responsive with premium feel */
.social-icon,
.email-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backface-visibility: hidden;
  touch-action: manipulation;
  transition: transform .2s cubic-bezier(0.25, 0.8, 0.25, 1); /* Faster, smoother transition */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Premium hover effect with faster response */
.social-icon:hover,
.email-icon:hover {
  transform: translateY(-6px) scale(1.08);
}

/* Quick, snappy click feedback */
.social-icon:active,
.email-icon:active {
  transform: scale(.95);
  transition: transform .08s ease; /* Faster for immediate click feedback */
}

/* Essentials navigation - Professional styling */
.footer__essentials {
  display: flex;
  gap: 8px; /* reduced for more cohesive, tighter spacing */
  align-items: center;
  justify-content: center;
  margin: 0;
}

.footer__essential-link {
  font-family: 'Inria Serif', serif; /* match form elements */
  font-size: 15px; /* increased for better readability and clickability */
  color: #fff; /* Improved contrast - pure white */
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  line-height: 1.4;
  letter-spacing: 0.01em;
  padding: 4px 8px; /* added padding for better click target */
  border-radius: 4px; /* subtle rounded corners */
  position: relative;
}

.footer__essential-link:hover {
  color: #fff;
  /* removed translateY and text-shadow for smoother hover */
}

.footer__dot {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  user-select: none;
}

/* Tighten spacing since we removed the big 4-column grid */
.final-v2__footer .footer__inner {
  gap: 12px; /* Further reduced from 16px for tighter footer */
}

/* Add specific spacing between CTA and essentials navigation */
.footer-cta {
  margin-bottom: 12px; /* Professional spacing between CTA and essentials */
}

/* Slight top breathing room for the bottom row */
.footer__bottom {
  margin-top: 0; /* Removed extra margin for tighter footer */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer__bottom {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }
  
  .footer__contact {
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* Navigation responsive adjustments */
  .nav-links {
    gap: 24px; /* Reduce gap on smaller screens */
    font-size: 14px; /* Slightly smaller text */
  }
  
  .final-v2__footer {
    padding: 32px 24px 24px;
    max-width: 100%;
    margin: 0 16px;
  }
  
  
  .footer__essentials {
    flex-wrap: wrap;
    gap: 6px; /* further reduced for mobile cohesion */
    padding: 0;
    margin-top: 2px;
    justify-content: center;
  }
  
  .footer__dot {
    display: none; /* Hide dots on mobile for cleaner look */
  }
  
  .footer__inner {
    gap: 20px;
  }
  
  .final-v2__title {
    font-size: 36px;
  }
  
  .final-v2__tagline {
    font-size: 16px;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
  }
  
  .final-v2__icons {
    justify-content: center;
    gap: 20px;
  }
}

/* Icon images */
.final-v2__icons img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* --- Proper breathing room before footer --- */
.showcase-heading-divider {
  margin: 32px auto 0;  /* Balanced spacing - not too cramped, not too loose */
}

.showcase-3 {
  padding-bottom: 32px;  /* Balanced - provides separation without excessive gap */
}

.desktop-footer {
  padding-top: 24px;  /* Balanced spacing for footer integration */
  margin-top: 0;
}

/* Maintain proper spacing on ultra-wide screens */
@media (min-width: 1920px) {
  .showcase-heading-divider {
    margin: 32px auto 0 !important;  /* Maintain balanced spacing on large screens */
  }
  .desktop-footer {
    padding-top: 24px;  /* Maintain consistent spacing on large screens */
  }
}

/* Icon hit areas - removed duplicate, consolidated above */

/* === WAITLIST PANEL OVERLAY === */
.waitlist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 900;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.waitlist-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === WAITLIST SLIDE-IN PANEL === */
.waitlist-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  height: 100vh;
  background: linear-gradient(180deg, #f9efdc 0%, #f6e6d3 100%);
  padding: 64px 32px 48px 40px;
  box-shadow: -16px 0 32px rgba(0, 0, 0, 0.16), -2px 0 8px rgba(0, 0, 0, 0.06);
  transform: translate3d(100%, 0, 0);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.5s ease;
  z-index: 1000;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.waitlist-panel.active {
  transform: translate3d(0%, 0, 0);
  opacity: 1;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.18), -4px 0 12px rgba(0, 0, 0, 0.08);
}

/* === CLOSE ICON === */
.close-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-icon:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* === FORM CONTENT === */
.waitlist-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.waitlist-header {
  font-family: 'Gambarino', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 40px; /* increased from 32px for better visual separation */
  letter-spacing: -0.01em;
  color: #111;
  line-height: 1.3;
}

/* Form group container */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

/* Hide default label placement */
.waitlist-content label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Inria Serif', serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.01em;
}

/* Input upgrade */
.waitlist-content input {
  width: 90%; /* improved readability and visual balance */
  max-width: 380px; /* better utilization of 440px panel space */
  height: 36px; /* slightly taller for better clarity */
  border-radius: 8px;
  padding: 8px 14px; /* better breathing room inside */
  font-family: 'Inria Serif', serif;
  font-size: 15px;
  font-weight: 400;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* Focused input */
.waitlist-content input:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.waitlist-content input::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

/* Floating label when input not empty or focused */
.waitlist-content input:focus + label,
.waitlist-content input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #000;
  background: #f9efdc;
  padding: 0 4px;
  border-radius: 4px;
}

.waitlist-content input.error {
  border-color: #ff0000;
}

.error-message {
  color: #ff0000;
  font-size: 12px;
  font-family: 'Inria Serif', serif;
  margin-top: -8px;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.error-message.visible {
  opacity: 1;
}


/* === SUBMIT BUTTON === */
.waitlist-submit {
  height: 40px; /* slightly taller than inputs for better prominence */
  width: 90%; /* match input field width for visual consistency */
  max-width: 380px; /* same max-width as inputs for perfect alignment */
  padding: 8px 14px; /* match input padding for flush alignment */
  font-family: 'Inria Serif', serif;
  font-size: 15px;
  font-weight: 600; /* slightly reduced for better balance */
  letter-spacing: 0.01em;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  margin-top: 12px; /* increased from 8px for more breathing room */
  box-sizing: border-box; /* ensure padding is included in width calculation */
}

.waitlist-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

.waitlist-submit:active {
  transform: scale(0.98);
}

/* === FORM PRIVACY DISCLAIMER === */
.waitlist-privacy-form {
  font-family: 'Inria Serif', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.4;
  margin-top: 20px; /* increased from 16px for better visual separation */
  text-align: left; /* left-aligned for visual consistency */
  padding-left: 2px; /* slight indent to align with form elements */
}

/* === CONFIRMATION MESSAGE === */
.waitlist-confirmation {
  font-family: 'Gambarino', serif; /* match header font for perfect hierarchy */
  font-size: 22px; /* reduced for proper hierarchy below header */
  font-weight: 500; /* lighter than header's 400 for better hierarchy */
  margin-top: 24px; /* 3×8px grid for consistent spacing */
  margin-bottom: 12px; /* 1.5×8px grid for better breathing room */
  line-height: 1.4; /* consistent with form elements */
  text-align: left;
  color: #000;
  letter-spacing: 0.01em;
}

/* === PRIVACY TEXT === */
.waitlist-privacy {
  font-family: 'Inria Serif', serif;
  font-style: italic;
  font-size: 13px; /* match form disclaimer for consistency */
  color: rgba(0, 0, 0, 0.65); /* match form disclaimer opacity */
  line-height: 1.4; /* consistent with form elements */
  margin-top: 16px; /* 2×8px grid for proper spacing */
  letter-spacing: 0.01em;
  max-width: 380px; /* match form elements for visual consistency */
}

/* Group container animation */
.waitlist-thankyou-group {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Active state triggers fade-in */
.waitlist-thankyou-group.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade-out transition for form */
#waitlist-form.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* CONTAINER FOR LARGE SCREENS */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
    margin: 0 auto;
  }

  .navbar, .hero, .carousel, .showcase, .final-section, .desktop-footer {
    width: 100%;
    box-sizing: border-box;
  }

  .navbar, .hero, .carousel, .showcase, .final-section, .desktop-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* RIGHT-ALIGNED TEXT FIX */
.right-aligned-text {
  text-align: right;
  max-width: 600px; /* Adjust as needed for design */
  margin-left: auto;
}

/* RIGHT-ALIGNED TEXT CONTAINER */
.right-aligned-text-container {
  text-align: right;
  margin-left: auto;
  margin-right: 60px; /* Adjust to match nearby content spacing */
  max-width: 880px; /* Control layout */
}

/* Apply this class to the specific text container */

/* HIGHLIGHT CONTAINER */
.highlight-container {
  display: block;
  width: 100%;
  max-width: 1150px; /* same as overall container width */
  margin: 0 60px 0 auto; /* push it right while maintaining spacing */
  text-align: right;
}

/* Clean up old conflicting styles - removed */

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  /* Engine Section Mobile Adjustments */
  .hiw-engine-section {
    margin: 12px 0 16px 0;
    padding: 0;
  }
  
  .hiw-engine-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .hiw-engine-description {
    font-size: 15px;
    line-height: 1.6;
  }

  .showcase-content,
  .showcase-content-alt {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    align-items: center;
  }

  .showcase-text,
  .showcase-text-alt {
    flex: 1;
    max-width: 100%;
    padding-top: 0;
  }

  .showcase-image,
  .showcase-image-second {
    flex: 1;
    justify-content: center;
  }

  .showcase-text h3 {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .showcase-caption {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 0;
  }

  .showcase-highlight {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 0;
  }

  .showcase-image img,
  .showcase-image-second img {
    max-width: 100%;
  }

  .showcase-3-content {
    padding: 0 20px;
  }
}

/* LARGE SCREEN RESPONSIVENESS */
@media (min-width: 1920px) {
  .container {
    max-width: 1920px;
    margin: 0 auto;
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: clamp(64px, 5vw, 80px); /* Maintain golden ratio proportions */
  }

  .hero-subtitle {
    font-size: clamp(40px, 3.5vw, 50px); /* Maintain golden ratio proportions */
  }

  .hero-description {
    font-size: clamp(20px, 1.8vw, 24px); /* Maintain golden ratio proportions */
  }

  .carousel {
    margin-bottom: 80px;
  }

  .carousel-track {
    gap: 40px;
  }

  .showcase {
    padding: 72px 40px 72px;
  }

  .showcase-2 {
    padding: 72px 40px 72px;
  }

  .showcase-content,
  .showcase-content-alt {
    gap: 120px;
    max-width: 1400px;
    padding: 0 80px;
  }

  .showcase-3-content {
    max-width: 1400px;
    padding: 0 80px;
  }

  .showcase-text h3 {
    font-size: clamp(44px, 3vw, 52px);
  }

  .showcase-caption {
    font-size: clamp(24px, 2vw, 28px);
  }

  .showcase-highlight {
    font-size: clamp(32px, 2.2vw, 36px);
  }

  .showcase-text,
  .showcase-text-alt {
    flex: 0 0 640px;
  }

  .showcase-image,
  .showcase-image-second {
    flex: 0 0 640px;
  }

  .showcase-image img,
  .showcase-image-second img {
    width: 100%;
  }

  .showcase-3 {
    padding: 56px 40px 72px; /* Consistent with .hiw section responsive scaling */
  }

  .showcase-heading {
    font-size: clamp(72px, 5vw, 88px); /* Updated for better prominence */
  }

  .showcase-subtitle {
    font-size: clamp(30px, 2.3vw, 38px); /* Updated for better hierarchy with new base size */
  }

  .showcase-description {
    font-size: clamp(22px, 1.9vw, 26px); /* Updated for better hierarchy with new base size */
  }

  .desktop-footer {
    padding-top: 60px;
    padding-bottom: 50px;
  }

  .final-v2__title {
    font-size: clamp(32px, 3vw, 40px);
  }

  .final-v2__tagline {
    font-size: clamp(18px, 1.5vw, 22px);
  }

  .hero-divider,
  .showcase-divider,
  .showcase-heading-divider,
  .showcase-inner-divider,
  .showcase-section-divider {
    margin: 40px auto;
    width: 90%; /* Luxury editorial magazine width - responsive */
    max-width: 1400px; /* Generous cap for very large screens */
  }

  .hero-btn {
    width: clamp(298px, 20vw, 336px);
    height: clamp(48px, 4vw, 56px);
    font-size: clamp(16px, 1.5vw, 20px);
  }

  .access-btn {
    font-size: clamp(16px, 1.5vw, 18px);
    padding: 6px 16px;
    height: 35px;
  }

  /* How it Works responsive scaling */
  .hiw {
    padding: 40px 40px 40px;
  }

  .hiw-content {
    max-width: 1400px;
    padding: 0 80px;
  }

  .hiw-card {
    gap: 32px; /* 4×8px grid - consistent with desktop */
    grid-template-columns: 0.38fr 0.62fr;
  }

  .hiw-title {
    font-size: clamp(67px, 4.8vw, 82px); /* 20% increase: 56px→67px, 68px→82px */
  }

  .hiw-sub {
    font-size: clamp(24px, 1.8vw, 29px); /* 20% increase: 20px→24px, 24px→29px */
  }

  /* Flow responsive scaling */
  .hiw-flow-svg {
    padding: 24px;
    border-radius: 20px;
  }

  .hiw-node-text {
    font-size: clamp(15px, 1.1vw, 17px);
  }

  .hiw-node--start .hiw-node-text {
    font-size: clamp(16px, 1.2vw, 18px);
  }

  .hiw-flow-path {
    font-size: clamp(18px, 1.3vw, 20px);
  }

  .hiw-footnote {
    font-size: clamp(15px, 1.1vw, 17px);
  }
  
  /* Engine section responsive scaling */
  .hiw-engine-title {
    font-size: clamp(20px, 1.4vw, 24px);
  }
  
  .hiw-engine-description {
    font-size: clamp(16px, 1.2vw, 18px);
  }
}

/* === DIVIDER STANDARDIZATION === */
/* Standardize base properties for all dividers */
.hero-divider,
.hiw-sub-divider,
.showcase-section-divider,
.showcase-inner-divider,
.showcase-heading-divider,
.showcase-sub-divider {
  /* Standardize visual properties */
  height: 1px;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  
  /* Animation approach (standardized):
   * - GSAP ScrollTrigger with scaleX animations: .hiw-sub-divider, .showcase-sub-divider, .showcase-heading-divider, .showcase-inner-divider
   * - Static appearance (no animation): .hero-divider, .showcase-section-divider
   * - All use power2.out easing for consistent motion language
   */
}

/* === HOW IT WORKS (STATIC) === */
.hiw { padding: 40px 40px 40px; background: #f9efdc; } /* Balanced padding for good internal space */

.hiw-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hiw-title {
  font-family: 'Gambarino', serif;
  font-weight: 500;
  font-size: 72px; /* Increased from 67px to 72px for better prominence */
  line-height: 1.1;
  color: #1a1a1a; /* Slightly darker for better prominence */
  margin: 32px 0 8px; /* 4×8px grid top margin for golden ratio breathing room */
  text-align: left;
  letter-spacing: -0.02em;
}
.hiw-sub {
  font-family: 'Spectral', serif;
  font-size: 24px; /* 20% increase: 20px × 1.2 = 24px */
  font-weight: 400;
  font-style: italic;
  color: #000;
  margin: 0 0 16px; /* Reduced margin for divider */
  text-align: left;
}

/* Sleek editorial divider below subheading */
.hiw-sub-divider {
  width: 70%; /* Increased to 70% (L2: Subsections) for clearer hierarchy */
  height: 1px;
  background-color: rgba(0, 0, 0, 0.75); /* Increased from 0.6 for better visibility */
  border: none;
  margin: 16px 0 32px 0; /* Reduced to 32px for balanced spacing */
  /* Transform properties handled by GSAP animation */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  /* Ensure consistent rendering */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hiw-card {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 40px; /* Increased from 32px (5×8px grid) for better breathing room between artwork and content */
  align-items: start;
}

.hiw-left { 
  display: flex; 
  align-items: flex-start; 
  justify-content: center; 
}
.hiw-art {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hiw-right { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; /* 1×8px grid - tighter spacing for better cohesion */
  padding-left: 8px; /* 1×8px grid */
}

/* Steps strip */
.hiw-steps {
  display: flex;
  gap: 12px; /* 1.5×8px grid - tight but readable */
  padding: 0;
  margin: 0 0 4px; /* 0.5×8px grid - minimal separation for tight cohesion */
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}


/* Accessibility improvements for pills */
.hiw-steps li:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3) !important;
  outline-offset: 2px !important;
}

/* Subtle tooltip for pill interaction feedback */
.hiw-pill-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Gambarino', serif;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hiw-pill-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
.hiw-steps li {
  font-family: 'Gambarino', serif;
  font-size: 16px;
  font-weight: 400;
  background: #f6e6d3;
  border: 1px solid rgba(0,0,0,.15); /* Reduced border opacity for subtle appearance */
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); /* Reduced shadow for subtle elevation */
  cursor: pointer; /* Interactive - will scroll to and activate flow */
  transition: all 0.2s ease; /* Smooth hover feedback */
}

/* Subtle hover feedback for interactive pills */
.hiw-steps li:hover {
  background: #f4e4d1; /* Slightly lighter background on hover */
  border-color: rgba(0,0,0,.2);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transform: translateY(-1px); /* Subtle lift effect */
}
.hiw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #000; color: #fff;
  font-size: 14px; font-weight: 700;
  font-family: 'Inria Serif', serif;
}
.hiw-dotx { letter-spacing: 0.2px; }

/* === CONDITIONAL AUTOMATION FLOW === */

/* Flow Container */
.hiw-flow {
  margin: 0 0 8px; /* 1×8px grid - minimal bottom spacing */
  position: relative;
}

/* SVG Container - Responsive & Accessible */
.hiw-flow-svg {
  width: 100%;
  min-height: 220px; /* Final optimization: reduced from 240px to 220px for maximum efficiency */
  height: auto;
  display: block;
  background: rgba(249, 239, 220, 0.2);
  border-radius: 16px;
  padding: 8px; /* Further reduced from 12px for tighter spacing */
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease;
  
  /* SVG Performance Optimizations - Phase 1 */
  will-change: contents; /* Optimize for SVG content changes */
  transform: translateZ(0); /* Force hardware acceleration */
  contain: layout style paint; /* CSS containment for better performance */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hiw-flow-svg:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(249, 239, 220, 0.3);
}


/* === DOCUMENT NODES === */

/* Node Container */
.hiw-node {
  cursor: default;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* SVG Node Performance Optimizations - Phase 2 */
  will-change: transform, fill; /* Optimize for SVG animations */
  transform: translate3d(0, 0, 0); /* Hardware acceleration */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: layout style paint; /* CSS containment for better performance */
}

/* Node Background */
.hiw-node-bg {
  fill: #f6e6d3;
  stroke: rgba(0, 0, 0, 0.12);
  stroke-width: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* SVG Node Background Performance Optimizations - Phase 2 */
  will-change: fill, stroke; /* Optimize for fill/stroke changes */
  transform: translate3d(0, 0, 0); /* Hardware acceleration */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Node Text - Enhanced typography and centering */
.hiw-node-text {
  font-family: 'Gambarino', serif;
  font-size: 14px;
  font-weight: 400;
  fill: #000;
  text-anchor: middle;
  dominant-baseline: mathematical;
  pointer-events: none;
  letter-spacing: 0.01em;
}

/* === NODE STATES === */

/* Start Node - Special Styling */
.hiw-node--start .hiw-node-bg {
  fill: #f4e4d1;
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 1.5;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.1));
}

.hiw-node--start .hiw-node-text {
  font-weight: 500;
  font-size: 14px;
}

/* Active Nodes - Highlighted Path */
.hiw-node--active .hiw-node-bg {
  fill: #f2dcc6;
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.hiw-node--active .hiw-node-text {
  font-weight: 500;
  fill: #000;
}

/* === INTERACTIVE STATES === */

/* Hidden Nodes (for slider) - Fixed visibility management */
.hiw-node--hidden {
  display: none;
  pointer-events: none;
  transition: none; /* Prevent transition on hidden elements */
}

.hiw-options--hidden {
  display: none;
  pointer-events: none;
  transition: none; /* Prevent transition on hidden elements */
}

/* Enhanced visible state with smooth transitions for all pills except Start */
.hiw-node--visible {
  display: block;
  opacity: 0;
  transform: translate3d(0, 15px, 0) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hiw-node--visible.hiw-node--active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Special transition for level 2 options */
.hiw-options--visible {
  display: block;
  opacity: 0;
  transform: translate3d(0, 15px, 0) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hiw-options--visible.hiw-options--active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Level 4 options visibility management */
.hiw-level--4 .hiw-options--hidden {
  display: none;
  pointer-events: none;
  transition: none;
}

.hiw-level--4 .hiw-options--visible {
  display: block;
  opacity: 0;
  transform: translate3d(0, 15px, 0) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hiw-level--4 .hiw-options--visible.hiw-options--active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Staggered animation for multiple pills in the same group */
.hiw-options--visible .hiw-node:nth-child(1) {
  transition-delay: 0.1s;
}

.hiw-options--visible .hiw-node:nth-child(2) {
  transition-delay: 0.2s;
}

.hiw-options--visible .hiw-node:nth-child(3) {
  transition-delay: 0.3s;
}

/* Level 3 final options also get transition effects */
.hiw-level--3 .hiw-node {
  opacity: 0;
  transform: translate3d(0, 15px, 0) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hiw-level--3 .hiw-node--active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Staggered animation for level 3 options */
.hiw-level--3 .hiw-node:nth-child(1) {
  transition-delay: 0.1s;
}

.hiw-level--3 .hiw-node:nth-child(2) {
  transition-delay: 0.2s;
}

.hiw-level--3 .hiw-node:nth-child(3) {
  transition-delay: 0.3s;
}

.hiw-level--3 .hiw-node:nth-child(4) {
  transition-delay: 0.4s;
}

/* Level 4 final options also get transition effects */
.hiw-level--4 .hiw-node {
  opacity: 0;
  transform: translate3d(0, 15px, 0) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hiw-level--4 .hiw-node--active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Staggered animation for level 4 options */
.hiw-level--4 .hiw-node:nth-child(1) {
  transition-delay: 0.15s;
}

.hiw-level--4 .hiw-node:nth-child(2) {
  transition-delay: 0.25s;
}

.hiw-level--4 .hiw-node:nth-child(3) {
  transition-delay: 0.35s;
}

/* Ensure Start node doesn't have transition effects */
.hiw-node--start {
  transition: none !important;
}

.hiw-node--start .hiw-node-bg,
.hiw-node--start .hiw-node-text {
  transition: none !important;
}

/* Clickable Nodes - Enhanced with better hover effects */
.hiw-node--clickable {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hiw-node--clickable:focus {
  outline: 2px solid rgba(0, 0, 0, 0.4);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Enhanced hover effects for clickable nodes */
.hiw-node--clickable:hover .hiw-node-bg {
  fill: #f0d8c0;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transform: translate3d(0, -1px, 0);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hiw-node--clickable:hover .hiw-node-text {
  font-weight: 500;
}

/* Inactive Nodes - Completely Hidden */
.hiw-node--inactive {
  display: none;
  pointer-events: none;
}

/* Remove Hover States - Only Click Selection */
.hiw-node--clickable:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

/* Active Selection State */
.hiw-node--selected .hiw-node-bg {
  fill: #f2dcc6;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.18));
}

/* House and Apartment Node Styling */
.hiw-node--house .hiw-node-bg {
  fill: #f4e4d1;
  stroke: rgba(0, 0, 0, 0.25);
  stroke-width: 1.5;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12));
}

.hiw-node--apartment .hiw-node-bg {
  fill: #f8f0e4;
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 1.5;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12));
}

.hiw-node--house.hiw-node--active .hiw-node-bg {
  fill: #f2dcc6;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hiw-node--apartment.hiw-node--active .hiw-node-bg {
  fill: #f2dcc6;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* === NAVIGATION CONTROLS === */
.hiw-navigation {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 40px; /* Added 8px top margin (2×8px grid) for better spacing from SVG showcase */
  flex-wrap: wrap;
}

.hiw-nav-btn {
  background: #f4e4d1 !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: 'Gambarino', serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: rgba(0, 0, 0, 0.9) !important;
  position: relative;
  z-index: 1;
  min-width: 120px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Layout stability - consistent dimensions */
  transform-origin: center;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  overflow: visible !important;
  
  /* Realistic shadows with sharp contact and depth hierarchy */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25), 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Maximum magnetic attraction with realistic depth shadows */
.hiw-nav-btn:hover {
  background: #f0d8c0 !important;
  color: rgba(0, 0, 0, 0.95) !important;
  transform: scale(1.02) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

.hiw-nav-btn:focus {
  outline: none !important;
  background: #f0d8c0 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

.hiw-nav-text {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Ultra premium selected state with maximum realistic depth */
.hiw-nav-btn--selected {
  background: #e8d0b8 !important;
  color: rgba(0, 0, 0, 0.95) !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.01) !important;
}

/* Enhanced dimmed state with subtle realistic shadows */
.hiw-nav-btn--dimmed {
  opacity: 1 !important;
  background: #f2e0cc !important;
  color: rgba(0, 0, 0, 0.75) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced press feedback with realistic pressed shadows */
.hiw-nav-btn:active {
  background: #e8d0b8 !important;
  color: rgba(0, 0, 0, 0.95) !important;
  transform: scale(0.98) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Global override for any browser default outlines */
.hiw-nav-btn:focus-visible {
  outline: none;
}

.hiw-nav-btn:focus:not(:focus-visible) {
  outline: none;
}

/* === FLOW EXPLANATION === */
.hiw-flow-explanation {
  margin-top: 16px; /* 2×8px grid - consistent with other elements */
  /* Dynamic height for more compact layout */
  min-height: 3em; /* Reduced from 5em for tighter spacing */
  display: flex;
  align-items: flex-start;
  position: relative;
}

.hiw-flow-path {
  font-family: 'Gambarino', serif;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.4;
  text-align: left;

  /* GSAP handles all transitions - no manual CSS transitions needed */
  will-change: opacity;
}

/* === THE ENGINE SECTION === */
.hiw-engine-section {
  margin: 8px 0 8px 0; /* 1×8px grid - minimal spacing for tight cohesion */
  padding: 0;
  
  /* Always visible to prevent layout shifts */
  opacity: 1;
  transform: translateY(0);
}

.hiw-engine-title {
  font-family: 'Gambarino', serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin: 0 0 8px; /* 1×8px grid - tighter spacing */
  text-align: left;
  letter-spacing: 0.01em;
  
  /* Always visible to prevent layout shifts */
  opacity: 1;
  transform: translateY(0);
}

.hiw-engine-description {
  font-family: 'Gambarino', serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.5;
  margin: 0 0 8px 0; /* 1×8px grid - minimal spacing to disclaimer */
  text-align: left;
  letter-spacing: 0.01em;
  
  /* Always visible to prevent layout shifts */
  opacity: 1;
  transform: translateY(0);
}

.hiw-engine-disclaimer {
  font-family: 'Gambarino', serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  margin: 0 0 4px 0; /* Minimal spacing before SVG showcase */
  text-align: left;
  letter-spacing: 0.01em;
  font-style: italic;
  
  /* Always visible to prevent layout shifts */
  opacity: 1;
  transform: translateY(0);
}

.hiw-footnote {
  font-family: 'Gambarino', serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: rgba(0,0,0,.65);
  margin-top: 16px; /* 2×8px grid - consistent spacing */
  line-height: 1.5;
  max-width: 100%;
}

/* ===================== Footer CTA — Desktop polish ===================== */
@media (min-width: 1024px) {
  .footer-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "text btn"
      "note btn";
    align-items: center;
    gap: 8px 24px;                  /* Rounded to 8×24px for 8px grid compliance */
    padding: 24px 24px;             /* Rounded to 24px (3×8px) for 8px grid compliance */
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.09));
    border: 1px solid rgba(255,255,255,0.09); /* refined professional frame */
  }

  .footer-cta__text {
    grid-area: text;
    max-width: 760px;               /* controls line-length on desktop */
  }

  .footer-cta__title {
    font-family: 'Gambarino', serif;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #fff; /* Improved contrast - pure white */
    margin: 0;
  }

  .footer-cta__sub {
    font-family: 'Inria Serif', serif;
    font-size: 14px;                /* down-step for clearer hierarchy */
    line-height: 1.4;
    color: rgba(255,255,255,0.85); /* Improved contrast - increased from 0.66 */
    margin: 4px 0 0 0;              /* smaller, deliberate separation */
  }

  /* Hide the long disclaimer on desktop (kept in DOM for flexibility) */
  .footer-cta__note {
    grid-area: note;
    display: none;
  }

  .footer-cta-btn {
    grid-area: btn;
    height: 36px;                   /* parity with main form */
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-family: 'Inria Serif', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    inline-size: max-content;       /* intrinsic width */
    white-space: nowrap;            /* keeps label on one line */
    justify-self: end;              /* sits neatly on the right */
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  .footer-cta-btn:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
  }
  .footer-cta-btn:active { transform: translateY(0); }
  .footer-cta-btn:focus-visible {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
  }
}


/* Optional: lighten the footer CTA's perceived weight slightly */
@media (prefers-color-scheme: dark) {
  .footer-cta {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.09));
    border-color: rgba(255,255,255,0.09);
  }
}


/* === RESPONSIVE DESIGN === */

/* === FOOTER VISUAL POLISH ENHANCEMENTS === */
/* GSAP handles scroll entrance animations, CSS handles hover/interaction states */

/* Enhanced CTA Button with Professional Standards */
.footer-cta-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

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

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

.footer-cta-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.18), 
    0 0 16px rgba(246, 230, 211, 0.35);
}

.footer-cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Professional Social Icon Enhancements - removed duplicate, consolidated above */

/* Subtle Professional Background Pattern */
.final-v2__footer {
  position: relative;
  overflow: hidden;
}

/* Vertical top-edge fade for architectural depth */
.final-v2__footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px; /* Fade distance from top */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.final-v2__footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* Professional Footer Content - GSAP handles entrance animations */
.footer__inner {
  position: relative;
  z-index: 2;
}

/* Enhanced Footer Links with Professional Standards */
.footer__essential-link::after {
  content: '';
  position: absolute;
  bottom: 2px; /* adjusted for padding */
  left: 8px; /* account for padding */
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer__essential-link:hover::after {
  width: calc(100% - 16px); /* account for padding on both sides */
}

/* Professional Focus States */
.footer-cta-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.social-icon:focus-visible,
.email-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.footer__essential-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .footer-cta-btn,
  .final-v2__footer::after,
  .footer__inner,
  .footer-cta,
  .hiw-engine-section,
  .hiw-engine-title,
  .hiw-engine-description,
  .hiw-engine-disclaimer,
  .hiw-nav-btn,
  .hiw-nav-btn--active,
  .hiw-nav-btn--pulsing,
  .hiw-nav-btn--selected,
  .hiw-nav-btn--dimmed {
    animation: none;
    transition: opacity 0.15s ease !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Social icons maintain smooth transitions with reduced motion */
  .social-icon,
  .email-icon {
    animation: none;
    transition: transform .2s ease !important;
  }
  
  .social-icon:hover,
  .email-icon:hover {
    transform: none; /* Disable lift on hover for reduced motion */
  }
  
  .footer-cta-btn:hover {
    transform: none;
  }
  
  /* No hover animations needed - icons already have no hover state */
  
  /* Disable engine section animations for reduced motion */
  .hiw-engine-section,
  .hiw-engine-title,
  .hiw-engine-description,
  .hiw-engine-disclaimer {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Disable footer animations for reduced motion */
  .final-v2__footer,
  .footer__header,
  .footer__content,
  .footer__bottom {
    will-change: auto !important;
    transform: none !important;
    animation: none !important;
  }
}

/* === HOW IT WORKS: Ghost connectors === */
.hiw-connectors { 
  opacity: 1; 
}
.hiw-connector-line {
  stroke: rgba(0, 0, 0, 0.25);
  stroke-width: 1;
  vector-effect: non-scaling-stroke; /* stays hairline on zoom/scale */
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;                        /* fade in with class toggle */
  transition: opacity 0.4s ease;
}
.hiw-connectors.visible .hiw-connector-line { 
  opacity: 1; 
  animation: drawLine 1.4s ease-out forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Staggered animation delays for sequential line drawing */
.hiw-connector-line:nth-child(1) { animation-delay: 0s; }
.hiw-connector-line:nth-child(2) { animation-delay: 0.2s; }
.hiw-connector-line:nth-child(3) { animation-delay: 0.4s; }
.hiw-connector-line:nth-child(4) { animation-delay: 0.6s; }
.hiw-connector-line:nth-child(5) { animation-delay: 0.8s; }
.hiw-connector-line:nth-child(6) { animation-delay: 1s; }
.hiw-connector-line:nth-child(7) { animation-delay: 1.2s; }
.hiw-connector-line:nth-child(8) { animation-delay: 1.4s; }
.hiw-connector-line:nth-child(9) { animation-delay: 1.6s; }
.hiw-connector-line:nth-child(10) { animation-delay: 1.8s; }
.hiw-connector-line:nth-child(11) { animation-delay: 2s; }
.hiw-connector-line:nth-child(12) { animation-delay: 2.2s; }
.hiw-connector-line:nth-child(13) { animation-delay: 2.4s; }
.hiw-connector-line:nth-child(14) { animation-delay: 2.6s; }
.hiw-connector-line:nth-child(15) { animation-delay: 2.8s; }

/* === UTILITIES === */
.hidden {
  display: none;
}

/* === BFCACHE RETURN ANIMATION === */
/* Removed - focusing on clean history state management only */

/* Optional: on ultra-wide, allow a tad more reserve if your copy runs longer */
@media (min-width: 1920px) {
  .hiw-flow-explanation {
    height: 5.5em;
  }
}
