@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;
}

/* Zodiak - REMOVED (Replaced with Inria Serif) */

@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-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-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-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Universal text selection and touch prevention */
* {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection for better accessibility */
p, h1, h2, h3, h4, h5, h6, span, div {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}




/* CSS Custom Properties for Design System */
:root {
  /* Colors */
  --color-primary: #000000;
  --color-background: #F9EFDC;
  --color-accent: #EDCB6F;
  --color-white: #ffffff;
  
  /* Typography */
  --font-primary: 'Gambarino', serif;
  --font-secondary: 'Georgia', 'Times New Roman', Times, serif;
  --font-accent: 'Inria Serif', serif;
  --font-inria: 'Inria Serif', serif;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Shadows */
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-drop: 0 6px 18px rgba(0, 0, 0, 0.18);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-lg: 16px;
  
  /* Filter values for consistency */
  --base-blur: 12px;
  --base-saturation: 78%;
  --base-brightness: 85%;
  --base-contrast: 96%;
  
  /* Additional spacing for specific elements */
  --box-right-left: 236px;
  --caption-left: 11px;
}

/* ============================
   📚 FONT FACE DECLARATIONS
   ============================ */

/* ============================
   🎨 CSS CUSTOM PROPERTIES (Design System)
   ============================ */

/* ============================
   🔧 GLOBAL UTILITIES & RESETS
   ============================ */

/* ============================
   ⌨️ TYPEWRITER ANIMATION UTILITIES
   ============================ */

/* Blink animation for typewriter cursor */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Generic typewriter classes - reusable for any element */
.typewriter {
  position: relative;
}

.typewriter::after {
  content: '|';
  animation: blink 1.5s infinite;
  color: #000000;
  font-weight: bold;
}

.typewriter.visible {
  opacity: 1;
}

.typewriter.finished::after {
  /* Animation complete state - cursor continues blinking as if still typing */
  animation: blink 1.5s infinite;
}


/* ============================
   🏠 SITE HEADER & NAVIGATION
   ============================ */

/* ============================
   🦶 MINIMAL FOOTER - OUR STORY PAGE
   ============================ */

/* Footer Wrapper */
.our-story-footer {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 24px 24px 24px;
  box-sizing: border-box;
  position: relative;
}

/* Footer Card - Black Premium Design */
.our-story-footer__container {
  /* Foundation */
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  
  /* Elevation & Depth */
  box-shadow: 
    0 -8px 24px rgba(0, 0, 0, 0.15), 
    0 0 0 1px rgba(255, 255, 255, 0.05);
  
  /* Performance Optimizations */
  position: relative;
  z-index: 10;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  contain: layout style paint;
  
  /* iOS-specific optimizations */
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Mobile: Default column layout */
  display: flex;
  flex-direction: column;
}

/* Top hairline - architectural edge light */
.our-story-footer__container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Ambient glow - subtle luminosity variation */
.our-story-footer__container::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.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* Brand Header Section */
.our-story-footer__header {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  
  /* Performance */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Desktop: Header alignment */
@media (min-width: 768px) {
  .our-story-footer__header {
    text-align: left;
    margin-bottom: 0;
  }
}

/* Brand Title - Softer, more natural feel */
.our-story-footer__title {
  font-family: 'Gambarino', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
  text-align: center;
}

/* Brand Tagline - Lighter, more natural */
.our-story-footer__tagline {
  font-family: 'Gambarino', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.98);
  margin: 0;
  text-align: center;
}

/* Essential Links Navigation */
.our-story-footer__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.our-story-footer__link {
  font-family: 'Inria Serif', serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Bullet Point Separator */
.our-story-footer__dot {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1;
  margin: 0 4px;
  user-select: none;
  -webkit-user-select: none;
  display: inline-flex;
  align-items: center;
}

/* Essential Link - Underline Animation */
.our-story-footer__link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 0;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State for Desktop */
.our-story-footer__link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.our-story-footer__link:hover::after {
  width: calc(100% - 16px);
}

.our-story-footer__link:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.98);
}

.our-story-footer__link:active::after {
  width: calc(100% - 16px);
}

/* Focus States for Accessibility */
.our-story-footer__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Bottom Section - Social + Contact Layout */
.our-story-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding-top: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

/* Divider with gradient */
.our-story-footer__divider {
  width: 68%;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  margin: 0 auto 24px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
}

/* Social Section */
.our-story-footer__social {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}

.our-story-footer__social-link {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.2s ease;
}

.our-story-footer__social-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.our-story-footer__social-link:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

.our-story-footer__social-link svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

/* Focus States for Social Icons */
.our-story-footer__social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 50%;
}

/* Contact Section */
.our-story-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

.our-story-footer__contact-text {
  font-family: 'Inria Serif', serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
  display: inline-block;
}

/* Email Link */
.our-story-footer__email {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 4px;
  display: inline-block;
  opacity: 0.98;
  -webkit-tap-highlight-color: transparent;
  user-select: text;
  -webkit-user-select: text;
}

/* Email Link - Underline Animation */
.our-story-footer__email::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 4px;
  width: 0;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State for Desktop */
.our-story-footer__email:hover {
  opacity: 1;
}

.our-story-footer__email:hover::after {
  width: calc(100% - 8px);
}

.our-story-footer__email:active {
  transform: translateY(1px);
}

.our-story-footer__email:active::after {
  width: calc(100% - 8px);
}

/* Focus States for Email */
.our-story-footer__email:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Copyright Text */
.our-story-footer__copyright {
  font-family: 'Inria Serif', serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
  user-select: none;
  -webkit-user-select: none;
}

/* Responsive: Small Mobile (320px - 414px) */
@media (min-width: 320px) and (max-width: 414px) {
  .our-story-footer {
    padding: 0 12px 20px 12px;
  }

  .our-story-footer__container {
    padding: 32px 20px 32px;
  }

  .our-story-footer__title {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .our-story-footer__tagline {
    font-size: 15px;
  }

  .our-story-footer__links {
    margin-bottom: 20px;
  }

  .our-story-footer__link {
    font-size: 14px;
    padding: 10px 8px;
  }

  .our-story-footer__dot {
    font-size: 11px;
    margin: 0 3px;
  }

  .our-story-footer__social {
    gap: 20px;
  }

  .our-story-footer__social-link {
    width: 28px;
    height: 28px;
  }

  .our-story-footer__social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* Responsive: Medium Mobile (415px - 480px) */
@media (min-width: 415px) and (max-width: 480px) {
  .our-story-footer__container {
    padding: 34px 24px 36px;
  }

  .our-story-footer__title {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .our-story-footer__tagline {
    font-size: 16px;
  }

  .our-story-footer__link {
    font-size: 15px;
    padding: 12px 10px;
  }

  .our-story-footer__social {
    gap: 22px;
  }
}

/* Responsive: Extra Large Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .our-story-footer__container {
    padding: 36px 28px 40px;
  }

  .our-story-footer__title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .our-story-footer__tagline {
    font-size: 17px;
  }

  .our-story-footer__link {
    font-size: 15px;
    padding: 12px 12px;
  }

  .our-story-footer__social {
    gap: 24px;
  }

  .our-story-footer__social-link {
    width: 32px;
    height: 32px;
  }
}

/* Responsive: Tablet & Desktop */
@media (min-width: 768px) {
  .our-story-footer {
    padding: 0 32px 32px 32px;
  }

  .our-story-footer__container {
    padding: 40px 48px 48px;
    max-width: 1400px;
    /* Desktop: Grid layout for better space distribution */
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 48px;
    align-items: start;
    box-sizing: border-box;
    /* Ensure grid items align properly */
    justify-items: stretch;
  }

  /* Desktop: Horizontal layout with better space distribution */
  .our-story-footer__header {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    text-align: left;
    min-width: 280px;
    align-self: start;
  }

  .our-story-footer__title {
    font-size: 32px;
    margin-bottom: 8px;
    text-align: left;
  }

  .our-story-footer__tagline {
    font-size: 16px;
    text-align: left;
  }

  .our-story-footer__links {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    justify-content: flex-end;
    align-self: center;
    padding: 0;
  }

  .our-story-footer__link {
    font-size: 15px;
    padding: 8px 12px;
  }

  .our-story-footer__divider {
    display: none; /* Hide divider on desktop - use border-top on bottom section instead */
  }

  .our-story-footer__bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .our-story-footer__social {
    order: 2;
    gap: 20px;
    flex-shrink: 0;
    align-self: flex-end;
    max-width: fit-content;
    flex: 0 0 auto;
  }

  .our-story-footer__social-link {
    width: 36px;
    height: 36px;
  }

  .our-story-footer__social-link svg {
    width: 22px;
    height: 22px;
  }

  .our-story-footer__contact {
    order: 1;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-start;
    max-width: fit-content;
  }

  .our-story-footer__contact-text {
    margin: 0;
  }

  .our-story-footer__email {
    font-size: 15px;
    white-space: nowrap;
  }

  .our-story-footer__copyright {
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .our-story-footer {
    padding: 0 48px 48px 48px;
  }

  .our-story-footer__container {
    padding: 48px 64px 56px;
    max-width: 1400px;
    gap: 0 72px;
  }

  .our-story-footer__header {
    min-width: 320px;
  }

  .our-story-footer__links {
    padding: 0;
    justify-content: flex-end;
  }

  .our-story-footer__link {
    font-size: 16px;
    padding: 10px 14px;
  }

  .our-story-footer__bottom {
    padding-top: 32px;
    margin-top: 32px;
    gap: 48px;
  }

  .our-story-footer__title {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .our-story-footer__tagline {
    font-size: 17px;
  }

  .our-story-footer__social {
    gap: 24px;
  }

  .our-story-footer__social-link {
    width: 40px;
    height: 40px;
  }

  .our-story-footer__social-link svg {
    width: 24px;
    height: 24px;
  }

  .our-story-footer__contact {
    gap: 32px;
    justify-content: flex-start;
  }

  .our-story-footer__email {
    font-size: 16px;
  }

  .our-story-footer__copyright {
    font-size: 14px;
  }
}

/* Extra Large Desktop */
@media (min-width: 1280px) {
  .our-story-footer__container {
    max-width: 1600px;
    gap: 0 80px;
  }

  .our-story-footer__header {
    min-width: 360px;
  }

  .our-story-footer__title {
    font-size: 38px;
  }

  .our-story-footer__tagline {
    font-size: 18px;
  }

  .our-story-footer__links {
    padding: 0;
    justify-content: flex-end;
  }

  .our-story-footer__link {
    font-size: 17px;
    padding: 10px 16px;
  }

  .our-story-footer__bottom {
    padding-top: 36px;
    margin-top: 36px;
  }

  .our-story-footer__social {
    gap: 28px;
  }

  .our-story-footer__contact {
    gap: 40px;
  }
}

/* Prevent text selection on non-interactive elements */
.our-story-footer__title,
.our-story-footer__tagline,
.our-story-footer__copyright,
.our-story-footer__dot {
  user-select: none;
  -webkit-user-select: none;
}

/* Enable text selection for email (allow copy/paste) */
.our-story-footer__email {
  user-select: text;
  -webkit-user-select: text;
}

/* Prevent accidental zoom on double-tap */
.our-story-footer__container * {
  touch-action: manipulation;
}

.osm-page .logo {
  /* Logo visible by default (welcome overlay removed) */
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.osm-page .menu-toggle--inactive {
  pointer-events: none;
  opacity: 0.5;
}

/* Override desktop CSS button styles - ensure mobile header design is used */
.osm-page .site-header .menu-toggle {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  padding: 10px !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: none !important;
  transform: none !important;
  position: relative !important;
  overflow: visible !important;
}

.osm-page .site-header .menu-toggle:hover {
  background: none !important;
  background-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.osm-page .site-header .menu-toggle:active {
  background: none !important;
  background-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.osm-page .site-header .menu-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

.osm-page .site-header .menu-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body {
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  overscroll-behavior-y: contain;
  /* Body visible by default (welcome overlay removed) */
  opacity: 1;
}

html {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

/* ============================
   📖 CONSERVATIVE TYPOGRAPHY SYSTEM
   ============================ */

/* ============================
   📖 STORY OPENING SECTION - CLEAN & POLISHED
   ============================ */

.story-opening {
  padding: 0 20px 18px; /* 20px gutter to match mobile landing page, bottom padding: 18px space below typewriter for line start */
  max-width: 100%;
  margin: 160px 0 0 0; /* Shifted down more - increased from 120px to 160px */
  position: relative;
  text-align: center;
  min-height: auto;
  background: #F9EFDC;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  overflow: visible; /* Allow vertical line to extend beyond section */
}

/* Reference divider line alignment - max-width: 280px, centered */
.story-line {
  font-family: 'Gambarino', serif;
  color: #000000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 100%;
  max-width: 280px; /* Match divider line max-width for alignment */
  box-sizing: border-box;
}

/* Line 1: Small, intimate opening */
.story-line--first {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.003em;
  margin-bottom: 16px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
  max-width: 280px; /* Aligned with divider */
  text-transform: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

/* Line 2: Growing awareness */
.story-line--second {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.003em;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  max-width: 280px; /* Aligned with divider */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

/* Line 3: Problem statement - Large and impactful */
.story-line--third {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.004em;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  max-width: 280px; /* Aligned with divider */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #000000;
  text-align: center;
}

/* Line 4: Resolution - CLIMAX with typewriter */
.story-line--fourth {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.004em;
  margin-top: 0;
  margin-bottom: 0; /* No bottom margin - 18px space handled by section padding */
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  visibility: visible; /* Keep visible to reserve space */
  max-width: 280px; /* Aligned with divider */
  min-width: 0;
  width: 100%;
  position: relative;
  overflow: visible;
  word-wrap: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
  color: transparent; /* Make text transparent to reserve space - will be set by JS */
  text-align: center;
  box-sizing: border-box;
  /* Space is reserved by the original text content in HTML */
}

/* Gradient fade removed - divider now handles visual separation */

/* Typewriter state - handled by JavaScript */
.story-line--fourth.visible {
  opacity: 1;
  visibility: visible;
  color: #000000; /* Restore text color when visible */
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Clean, no decorative elements */

/* Responsive adjustments - Conservative Design */
@media (min-width: 375px) {
  .story-opening {
    margin-top: 160px; /* Shifted down - matches base */
    padding-bottom: 18px; /* 18px space below typewriter for line start */
    min-height: auto;
  }
  
  .story-connector-spacer {
    height: 240px; /* Consistent animation space */
  }
  
  .story-connector {
    max-height: calc(240px - 8px); /* Spacer height minus 8px end offset */
  }
  
  .story-connector-spacer--opening-to-pattern,
  .story-connector-spacer--pattern-to-realization,
  .story-connector-spacer--realization-to-insight,
  .story-connector-spacer--insight-to-solution,
  .story-connector-spacer--solution-to-cta {
    height: 440px;
  }
  
  .story-connector--opening-to-pattern,
  .story-connector--pattern-to-realization,
  .story-connector--realization-to-insight,
  .story-connector--insight-to-solution,
  .story-connector--solution-to-cta {
    max-height: calc(440px - 16px);
  }
  
  .story-section {
    margin-top: 0; /* Spacer handles the gap */
  }
  
  .story-problem {
    margin: 0; /* No margins - spacer handles gaps */
    padding-top: calc(8px + 20px); /* 8px space for line end + section padding */
    padding-bottom: 20px; /* Section padding - connector spacer handles gap */
    padding-left: 20px; /* 20px gutter */
    padding-right: 20px; /* 20px gutter */
  }
  
  .story-line,
  .story-line--first,
  .story-line--second,
  .story-line--third,
  .story-line--fourth {
    max-width: 300px; /* Slightly wider on larger screens, but still aligned */
  }
  
  .story-line--first {
    font-size: 19px;
    margin-bottom: 18px;
  }
  
  .story-line--second {
    font-size: 23px;
    margin-bottom: 22px;
  }
  
  .story-line--third {
    font-size: 28px;
    margin-bottom: 22px;
  }
  
  .story-line--fourth {
    font-size: 32px;
  }
  
  .story-section__title {
    font-size: 42px; /* Increased for better readability */
    max-width: 300px; /* Match opening section alignment */
  }
  
  .story-section__lead {
    font-size: 23px; /* Increased for better readability */
    max-width: 300px; /* Match opening section alignment */
  }
  
  .story-section__text {
    font-size: 20px; /* Increased for better readability */
    max-width: 300px; /* Match opening section alignment */
  }
  
  .story-section__quote {
    font-size: 20px; /* Increased for better readability */
    max-width: 300px; /* Match opening section alignment */
  }
  
  .story-section__quote--highlight {
    font-size: 26px;
    max-width: 320px;
  }
  
  .story-section__text--emphasis {
    font-size: 21px;
    max-width: 300px;
  }
  
  .story-section__text--indented {
    padding-left: 18px;
  }
  
  .story-section__text--offset {
    padding-left: 14px;
    max-width: calc(300px - 14px);
  }
  
  /* Last section spacing adjustment */
  .story-interface {
    padding-bottom: 80px; /* Extra bottom spacing to replace removed CTA section */
  }
}

@media (min-width: 415px) {
  .story-opening {
    margin-top: 160px; /* Shifted down - matches base */
    padding-bottom: 18px; /* 18px space below typewriter for line start */
    min-height: auto;
  }
  
  .story-connector-spacer {
    height: 240px; /* Consistent animation space */
  }
  
  .story-connector {
    max-height: calc(240px - 8px); /* Spacer height minus 8px end offset */
  }
  
  .story-connector-spacer--opening-to-pattern,
  .story-connector-spacer--pattern-to-realization,
  .story-connector-spacer--realization-to-insight,
  .story-connector-spacer--insight-to-solution,
  .story-connector-spacer--solution-to-cta {
    height: 480px;
  }
  
  .story-connector--opening-to-pattern,
  .story-connector--pattern-to-realization,
  .story-connector--realization-to-insight,
  .story-connector--insight-to-solution,
  .story-connector--solution-to-cta {
    max-height: calc(480px - 16px);
  }
  
  .story-section {
    margin-top: 0; /* Spacer handles the gap */
  }
  
  .story-problem {
    margin: 0; /* No margins - spacer handles gaps */
    padding-top: calc(8px + 20px); /* 8px space for line end + section padding */
    padding-bottom: 20px; /* Section padding - connector spacer handles gap */
    padding-left: 20px; /* 20px gutter */
    padding-right: 20px; /* 20px gutter */
  }
  
  .story-line,
  .story-line--first,
  .story-line--second,
  .story-line--third,
  .story-line--fourth {
    max-width: 320px; /* Slightly wider on larger screens, but still aligned */
  }
  
  .story-line--first {
    font-size: 20px;
    margin-bottom: 18px;
  }
  
  .story-line--second {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .story-line--third {
    font-size: 30px;
    margin-bottom: 24px;
  }
  
  .story-line--fourth {
    font-size: 34px;
  }
  
  .story-section__title {
    font-size: 44px; /* Increased for better readability */
    max-width: 320px; /* Match opening section alignment */
  }
  
  .story-section__lead {
    font-size: 24px; /* Increased for better readability */
    max-width: 320px; /* Match opening section alignment */
  }
  
  .story-section__text {
    font-size: 21px; /* Increased for better readability */
    max-width: 320px; /* Match opening section alignment */
  }
  
  .story-section__quote {
    font-size: 21px; /* Increased for better readability */
    max-width: 320px; /* Match opening section alignment */
  }
  
  .story-section__quote--highlight {
    font-size: 28px;
    max-width: 340px;
  }
  
  .story-section__text--emphasis {
    font-size: 22px;
    max-width: 320px;
  }
  
  .story-section__text--indented {
    padding-left: 20px;
  }
  
  .story-section__text--offset {
    padding-left: 16px;
    max-width: calc(320px - 16px);
  }
  
  /* Last section spacing adjustment */
  .story-interface {
    padding-bottom: 96px; /* Increased spacing for larger screens */
  }
}

@media (min-width: 481px) {
  .story-opening {
    margin-top: 160px; /* Shifted down - matches base */
    padding-bottom: 18px; /* 18px space below typewriter for line start */
    min-height: auto;
  }
  
  .story-connector-spacer {
    height: 240px; /* Consistent animation space */
  }
  
  .story-connector {
    max-height: calc(240px - 8px); /* Spacer height minus 8px end offset */
  }
  
  .story-connector-spacer--opening-to-pattern,
  .story-connector-spacer--pattern-to-realization,
  .story-connector-spacer--realization-to-insight,
  .story-connector-spacer--insight-to-solution,
  .story-connector-spacer--solution-to-cta {
    height: 520px;
  }
  
  .story-connector--opening-to-pattern,
  .story-connector--pattern-to-realization,
  .story-connector--realization-to-insight,
  .story-connector--insight-to-solution,
  .story-connector--solution-to-cta {
    max-height: calc(520px - 16px);
  }
  
  .story-section {
    margin-top: 0; /* Spacer handles the gap */
  }
  
  .story-problem {
    margin: 0; /* No margins - spacer handles gaps */
    padding-top: calc(8px + 20px); /* 8px space for line end + section padding */
    padding-bottom: 20px; /* Section padding - connector spacer handles gap */
    padding-left: 20px; /* 20px gutter */
    padding-right: 20px; /* 20px gutter */
  }
  
  .story-line,
  .story-line--first,
  .story-line--second,
  .story-line--third,
  .story-line--fourth {
    max-width: 340px; /* Slightly wider on largest screens, but still aligned */
  }
  
  .story-line--first {
    font-size: 21px;
    margin-bottom: 20px;
  }
  
  .story-line--second {
    font-size: 25px;
    margin-bottom: 24px;
  }
  
  .story-line--third {
    font-size: 32px;
    margin-bottom: 24px;
  }
  
  .story-line--fourth {
    font-size: 36px;
  }
  
  .story-section__title {
    font-size: 46px; /* Increased for better readability */
    max-width: 340px; /* Match opening section alignment */
  }
  
  .story-section__lead {
    font-size: 25px; /* Increased for better readability */
    max-width: 340px; /* Match opening section alignment */
  }
  
  .story-section__text {
    font-size: 22px; /* Increased for better readability */
    max-width: 340px; /* Match opening section alignment */
  }
  
  .story-section__quote {
    font-size: 22px; /* Increased for better readability */
    max-width: 340px; /* Match opening section alignment */
  }
  
  .story-section__quote--highlight {
    font-size: 30px;
    max-width: 360px;
  }
  
  .story-section__text--emphasis {
    font-size: 23px;
    max-width: 340px;
  }
  
  .story-section__text--indented {
    padding-left: 22px;
  }
  
  .story-section__text--offset {
    padding-left: 18px;
    max-width: calc(340px - 18px);
  }
  
  /* Last section spacing adjustment */
  .story-interface {
    padding-bottom: 112px; /* Increased spacing for extra large screens */
  }
}

/* ============================
   📖 STORY SECTIONS - CLEAN & CONSERVATIVE
   ============================ */

.story-section {
  padding: 24px 20px; /* 20px gutter to match mobile landing page */
  margin: 0; /* No margins - spacers handle gaps */
  max-width: 100%;
  opacity: 1;
  transform: translateY(0);
  position: relative;
  background: #F9EFDC;
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Last section (interface) - extra bottom spacing since CTA is removed */
.story-interface {
  padding-bottom: 64px; /* Base bottom spacing to replace removed CTA section */
  margin-bottom: 0;
}

/* All divider lines removed */

/* Fallback for no-JS or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .story-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

.story-section__title {
  font-family: 'Gambarino', serif;
  font-size: 40px; /* Increased for better readability */
  font-weight: 500;
  color: #000000;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
  opacity: 1;
  position: relative;
  margin: 0 auto 24px; /* Consistent spacing */
  margin-left: auto;
  margin-right: auto;
  max-width: 280px; /* Match divider line and opening section alignment */
  box-sizing: border-box;
  text-shadow: none; /* Clean, modern look */
}

.story-section__content {
  text-align: center;
  max-width: 100%;
  opacity: 1;
  margin: 0; /* No margins - content flows naturally */
  padding: 0; /* No padding - section handles spacing */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-sizing: border-box; /* Include padding in width calculation */
}

.story-section__lead {
  font-family: 'Gambarino', serif;
  font-size: 22px; /* Increased for better readability */
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  letter-spacing: -0.003em;
  text-align: center;
  margin: 0 auto 20px; /* Consistent spacing */
  margin-left: auto;
  margin-right: auto;
  max-width: 280px; /* Match divider line and opening section alignment */
  box-sizing: border-box;
}

.story-section__text {
  font-family: 'Gambarino', serif;
  font-size: 19px; /* Increased for better readability */
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.6;
  text-align: center;
  margin: 0 auto 16px; /* Consistent spacing */
  margin-left: auto;
  margin-right: auto;
  max-width: 280px; /* Match divider line and opening section alignment */
  letter-spacing: -0.002em;
  box-sizing: border-box;
}

.story-section__text:last-of-type {
  margin-bottom: 0;
}

/* Indented text - subtle left offset for visual hierarchy */
.story-section__text--indented {
  padding-left: 16px;
  position: relative;
}

/* Offset text - slight right shift for visual interest */
.story-section__text--offset {
  padding-left: 12px;
  max-width: calc(280px - 12px);
}

/* Emphasis text - slightly larger, darker for key moments */
.story-section__text--emphasis {
  font-size: 20px;
  color: #000000;
  font-weight: 400;
  margin-top: 8px;
  margin-bottom: 20px;
}

.story-section__quote {
  font-family: 'Gambarino', serif;
  font-size: 19px; /* Increased for better readability */
  font-weight: 400;
  font-style: italic;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.6;
  text-align: center;
  margin: 24px auto 0; /* Consistent spacing */
  margin-left: auto;
  margin-right: auto;
  padding: 20px 0 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  max-width: 280px; /* Match divider line and opening section alignment */
  position: relative;
  opacity: 1;
  letter-spacing: -0.002em;
  box-sizing: border-box;
}

/* Highlight quote - emphasized, larger for key moments */
.story-section__quote--highlight {
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  color: #000000;
  line-height: 1.4;
  margin: 32px auto 24px;
  padding: 24px 0 0;
  border-top: 1.5px solid rgba(0, 0, 0, 0.2);
  max-width: 300px;
  letter-spacing: -0.005em;
}

/* Problem Section Specific */
.story-problem {
  margin: 0; /* No margins - spacer handles gaps */
  padding-top: calc(8px + 20px); /* 8px space above for line end + section padding */
  padding-bottom: 20px; /* Section padding - connector spacer handles gap */
  padding-left: 20px; /* 20px gutter */
  padding-right: 20px; /* 20px gutter */
  position: relative;
}

/* Justify text in Problem section to match Vision section */
.story-problem .story-section__lead,
.story-problem .story-section__text {
  text-align: justify; /* Added for justification */
  text-align-last: left; /* Prevent last line from stretching */
  word-spacing: normal; /* Reset to normal to prevent excessive spacing */
  hyphens: auto; /* Enable hyphenation for better line breaking */
  overflow-wrap: break-word; /* Break long words if needed for better justification */
  text-justify: inter-word; /* Better word spacing for justification */
}

/* Connector spacer - dedicated element for scroll animation trigger */
.story-connector-spacer {
  position: relative;
  width: 100%;
  height: 240px; /* Total gap height for animation space - provides scroll distance */
  pointer-events: none;
  background: transparent; /* Invisible spacer */
  margin-top: 0; /* Connects directly to opening section */
}

/* Vertical connector line - prepared for scroll animation */
.story-connector {
  position: absolute;
  top: 0; /* Start at top of spacer (which is 18px below typewriter) */
  left: 50%;
  transform: translateX(-50%) scaleY(0); /* Start at 0 height, ready for vertical animation */
  width: 1px; /* Vertical line - thin */
  height: calc(100% - 8px); /* Full spacer height minus 8px (ends 8px above Problem section) */
  max-height: calc(240px - 8px); /* Maximum height: spacer height minus end offset */
  background: rgba(0, 0, 0, 0.2); /* Subtle vertical line */
  z-index: 5;
  /* Will be animated by GSAP ScrollTrigger - scaleY from 0 to 1 */
  /* Animation will progress as spacer scrolls through viewport */
  /* Line starts 18px below typewriter, ends 8px above Problem section */
  transform-origin: top center; /* Scale from top, growing downward */
  pointer-events: none; /* Don't interfere with scrolling */
}

/* Connector spacers - consistent spacing between sections */
.story-connector-spacer--opening-to-pattern,
.story-connector-spacer--pattern-to-realization,
.story-connector-spacer--realization-to-insight,
.story-connector-spacer--insight-to-solution,
.story-connector-spacer--solution-to-cta {
  height: 400px; /* Consistent spacing for smooth flow */
  margin: 0;
  padding: 0;
}

/* Connector lines - ready for animation */
.story-connector--opening-to-pattern,
.story-connector--pattern-to-realization,
.story-connector--realization-to-insight,
.story-connector--insight-to-solution,
.story-connector--solution-to-cta {
  position: absolute;
  top: 8px;
  height: calc(100% - 16px);
  max-height: calc(400px - 16px);
  background: rgba(0, 0, 0, 0.75);
  width: 1.5px;
  border-radius: 0.75px;
  transform: translateX(-50%) translateZ(0) scaleY(0);
  -webkit-transform: translateX(-50%) translateZ(0) scaleY(0);
  transform-origin: top center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Vision Section Specific */
.story-vision {
  margin: 0; /* No margins - spacer handles gap */
  padding-top: calc(8px + 20px); /* 8px space for line end + section padding */
  padding-bottom: 20px; /* Section padding - CTA handles its own spacing */
  padding-left: 20px; /* 20px gutter */
  padding-right: 20px; /* 20px gutter */
}

/* Justify text in Vision section to match Problem section */
.story-vision .story-section__lead,
.story-vision .story-section__text {
  text-align: justify; /* Added for justification */
  text-align-last: left; /* Prevent last line from stretching */
  word-spacing: normal; /* Reset to normal to prevent excessive spacing */
  hyphens: auto; /* Enable hyphenation for better line breaking */
  overflow-wrap: break-word; /* Break long words if needed for better justification */
  text-justify: inter-word; /* Better word spacing for justification */
}

/* ============================
   🎯 CTA SECTION
   ============================ */

/* Footer CTA wrapper - matches mobile landing page design */
.lp-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0; /* No top margin - Vision section padding handles spacing */
  padding: 16px 0 40px; /* Reduced padding - container fits content */
  position: relative;
  z-index: 1; /* Above gradient overlay */
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
  background: #F9EFDC; /* Match story section background */
}

/* Subtle divider line connecting Vision section to CTA */
.lp-footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  max-width: 320px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

/* Bridge text styling - matches mobile landing page */
.lp-footer-cta__bridge {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(16px, 3.8vw, 18px);
  color: rgba(27, 23, 19, 0.7);
  text-align: center;
  margin: 0 0 16px 0;
  padding: 0 min(6vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: min(360px, 92vw);
  position: relative;
  z-index: 1;
}

/* CTA button - matches mobile landing page design */
.final-v2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 252px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  font-family: 'Inria Serif', serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1) translateZ(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.final-v2__cta:hover { 
  transform: scale(1.03) translateZ(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for CTA section */
@media (min-width: 375px) {
  .lp-footer-cta__bridge {
    font-size: clamp(17px, 4vw, 18px);
  }
  
  .final-v2__cta {
    width: 268px;
    height: 48px;
    font-size: 17px;
  }
}

@media (min-width: 415px) {
  .lp-footer-cta__bridge {
    font-size: clamp(18px, 4.2vw, 19px);
  }
  
  .final-v2__cta {
    width: 284px;
    height: 52px;
    font-size: 18px;
  }
}

@media (min-width: 481px) {
  .lp-footer-cta__bridge {
    font-size: clamp(18px, 4.5vw, 19px);
    max-width: min(380px, 92vw);
  }
  
  .final-v2__cta {
    width: 300px;
    height: 56px;
    font-size: 19px;
  }
}

/* ============================
   📊 THE NUMBERS SECTION
   ============================ */

.story-numbers {
  padding: 64px 24px;
  position: relative;
}

.story-stat-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 32px;
}

.story-stat-item {
  text-align: center;
}

.story-stat-number {
  display: block;
  font-family: 'Gambarino', serif;
  font-size: 48px;
  font-weight: 400;
  color: #000000;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.story-stat-label {
  display: block;
  font-family: 'Gambarino', serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 8px;
  text-align: center;
}

/* ============================
   💬 THE PROMISE SECTION
   ============================ */

.story-promise {
  padding: 64px 24px;
  position: relative;
}

.story-manifesto {
  margin-top: 32px;
}

.story-manifesto-item {
  font-family: 'Gambarino', serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 360px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.story-manifesto-item:last-of-type {
  margin-bottom: 0;
}

/* ============================
   🗺️ THE JOURNEY SECTION
   ============================ */

.story-journey {
  padding: 64px 24px;
  position: relative;
}

.story-timeline {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.story-timeline-item {
  text-align: center;
  position: relative;
}

.story-timeline-date {
  font-family: 'Gambarino', serif;
  font-size: 32px;
  font-weight: 400;
  color: #000000;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.story-timeline-label {
  font-family: 'Gambarino', serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.8);
  display: block;
}

/* Vision Section Specific */
.story-vision {
  padding-bottom: 80px;
  margin-bottom: 96px;
}

/* Responsive adjustments for story sections - Conservative Design */
@media (min-width: 375px) {
  .story-section {
    padding: 24px 20px; /* 20px gutter to match mobile landing page */
  }
  
  .story-stat-number {
    font-size: 52px;
  }
  
  .story-manifesto-item {
    font-size: 22px;
    max-width: 380px;
  }
  
  .story-timeline-date {
    font-size: 34px;
  }
  
  .story-timeline-label {
    font-size: 19px;
  }
}

@media (min-width: 415px) {
  .story-section {
    padding: 24px 20px; /* 20px gutter to match mobile landing page */
  }
  
  .story-stat-number {
    font-size: 56px;
  }
  
  .story-manifesto-item {
    font-size: 24px;
    max-width: 400px;
  }
  
  .story-timeline-date {
    font-size: 36px;
  }
  
  .story-timeline-label {
    font-size: 20px;
  }
}

@media (min-width: 481px) {
  .story-section {
    padding: 24px 20px; /* 20px gutter to match mobile landing page */
  }
  
  .story-stat-number {
    font-size: 60px;
  }
  
  .story-manifesto-item {
    font-size: 26px;
    max-width: 420px;
  }
  
  .story-timeline-date {
    font-size: 38px;
  }
  
  .story-timeline-label {
    font-size: 21px;
  }
}




/* ============================
   🎬 ANIMATION KEYFRAMES & EFFECTS
   ============================ */
@keyframes notificationPop {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scale(0.3);
    filter: drop-shadow(0 0 0px rgba(255, 225, 180, 0));
  }
  30% {
    opacity: 0.8;
    transform: translate3d(-50%, 0, 0) scale(1.4);
    filter: drop-shadow(0 0 var(--spacing-lg) rgba(255, 225, 180, 0.4));
  }
  60% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(0.9);
    filter: drop-shadow(0 0 var(--spacing-md) rgba(255, 225, 180, 0.3));
  }
  80% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1.05);
    filter: drop-shadow(0 0 var(--spacing-lg) rgba(255, 225, 180, 0.2));
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
    filter: drop-shadow(0 0 var(--spacing-sm) rgba(255, 225, 180, 0.12));
  }
}

@keyframes downwardNudge {
  0% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
    filter: drop-shadow(0 0 var(--spacing-sm) rgba(255, 225, 180, 0.12));
  }
  45% {
    opacity: 1;
    transform: translate3d(-50%, var(--spacing-sm), 0) scale(1);
    filter: drop-shadow(0 0 var(--spacing-sm) rgba(255, 225, 180, 0.08));
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
    filter: drop-shadow(0 0 var(--spacing-sm) rgba(255, 225, 180, 0.12));
  }
}

/* ============================
   📝 WAITLIST OVERLAY V2 (.wlx) - PORTED FROM MOBILE
   ============================ */

.wlx[hidden]{ display:none !important; }

.wlx{
  position:fixed;
  inset:0;
  z-index: 900;
  pointer-events:none; /* enabled when open */
}

.wlx__backdrop{
  position:fixed;
  inset:0;
  z-index: 800;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px) saturate(0.9);
  -webkit-backdrop-filter: blur(6px) saturate(0.9);
  opacity:0;
  pointer-events:none;
  will-change:opacity;
}

.wlx__panel{
  position:fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(var(--spacing-lg)) translateZ(0);
  width: 100vw;
  max-width: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 901;
  isolation: isolate;
  background:#F9EFDC; /* cream panel to match brand */
  border:1px solid rgba(0,0,0,0.08);
  box-shadow: 0 calc(-1 * var(--spacing-lg)) var(--spacing-xl) rgba(0,0,0,0.18);
  padding: 22px 18px var(--spacing-lg);
  opacity:0;
  pointer-events:auto;
  will-change: transform, opacity;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  /* Let our JS take over vertical gestures once they are intentional */
  touch-action: none; /* we dynamically decide when to preventDefault */
}

/* Desktop styles - hidden on mobile */
@media (min-width: 720px){
  .wlx{ display: none !important; }
}

.wlx__title{
  margin: 4px 0 10px;
  font-family: 'Gambarino', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  color:#111;
}

.wlx__label{
  display:block; 
  margin: 12px 0 10px;
}

.wlx__label-text{
  display:block; 
  margin-bottom:6px;
  font-family: 'Inria Serif', serif;
  font-size: 12px;
  font-weight: 700;
  color:#222;
}

.wlx__input{
  display:block; 
  width:100%;
  font-family: 'Inria Serif', serif;
  /* Keep at 16px to prevent iOS Safari zoom-on-focus */
  font-size: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,0.16);
  background:#fff;
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.wlx__input::placeholder{
  color: rgba(0,0,0,0.42);
}

.wlx__input:focus{
  border-color:#000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.wlx__submit{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  margin-top: 14px;
  width: 100%; 
  height: 44px;
  border:0; 
  border-radius: 10px;
  background:#000; 
  color:#fff;
  font-family:'Inria Serif', serif; 
  font-weight:700; 
  font-size:16px;
  letter-spacing: 0;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.wlx__submit:active{ 
  transform: scale(0.98); 
}

.wlx__submit.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.wlx__status{
  min-height: 18px;
  margin: 8px 2px 0;
  font-family:'Inria Serif', serif;
  font-size: 12px; 
  color:#111;
  text-align:center;
}

.wlx__note{
  margin: 10px 2px 0;
  font-family: 'Inria Serif', serif;
  font-style: italic;
  font-size: 12px;
  color:#555;
  text-align:center;
}

/* Active/open states */
.wlx.is-open .wlx__backdrop{ 
  opacity:1; 
  pointer-events:auto; 
}

.wlx.is-open{ 
  pointer-events:auto; 
}

.wlx.open{ 
  pointer-events:auto; 
}

/* Success state */
.wlx__content {
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.wlx__success {
  position: absolute;
  left: 0; 
  right: 0; 
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-family: 'Inria Serif', serif;
  font-size: 16px;
  font-style: italic;
  color: #111;
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
  pointer-events: none;
  line-height: 1.4;
}

.wlx__success[hidden] { 
  display: none !important; 
}

/* Success modal height */
.wlx__panel.is-success{
  min-height: clamp(300px, 48vh, 600px) !important;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
}

.wlx__success{
  top: 48% !important;
  bottom: auto !important;
  font-size: 16px !important;
}

/* Keep layout stable on small screens */
@media (max-width: 719.98px){
  .wlx__panel { 
    padding-bottom: 48px; 
  }
}

/* Gesture and scroll containment */
.wlx{
  overscroll-behavior: contain;
  touch-action: none;
}

.wlx__panel{
  overscroll-behavior: contain;
  touch-action: pan-y;
}

