/**
 * Water Section Styles
 * Foundation CSS for the Water section portfolio experience
 * Translates Tailwind utilities to vanilla CSS with water- namespace
 */

/* ============================================
   1. Design Token Extensions
   ============================================ */
:root {
  --water-card-bg: #0a1628;
  --water-accent: #13c8ec;
  --water-accent-40: rgba(19, 200, 236, 0.4);
  --water-accent-60: rgba(19, 200, 236, 0.6);
  --water-accent-70: rgba(19, 200, 236, 0.7);
  --water-overlay-bg: rgba(0, 0, 0, 0.8);
  --water-modal-shadow: 0 0 100px rgba(19, 200, 236, 0.2);
}

/* ============================================
   2. Typography
   ============================================ */
/* Body text uses DM Sans */
.water-body-text {
  font-family: 'DM Sans', sans-serif;
}

/* Headings and display elements use Exo */
.water-heading {
  font-family: 'Exo', sans-serif;
}

/* ============================================
   3. Tailwind → Vanilla CSS Translation
   ============================================ */

/* Position utilities */
.water-fixed-full {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.water-relative {
  position: relative;
}

.water-absolute {
  position: absolute;
}

/* Overflow */
.water-overflow-hidden {
  overflow: hidden;
}

/* Pointer events */
.water-no-pointer {
  pointer-events: none;
}

.ds-fish-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Z-index scale */
.water-z-0 {
  z-index: 0;
}

.water-z-10 {
  z-index: 10;
}

.water-z-20 {
  z-index: 20;
}

.water-z-30 {
  z-index: 30;
}

.water-z-40 {
  z-index: 40;
}

.water-z-50 {
  z-index: 50;
}

.water-z-55 {
  z-index: 55;
}

.water-z-60 {
  z-index: 60;
}

/* Flex utilities */
.water-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-flex-col {
  display: flex;
  flex-direction: column;
}

/* 3D Scene containers */
.water-scene3d {
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.water-perspective {
  perspective: 2000px;
  transform-style: preserve-3d;
}

/* ============================================
   4. Frame Styles
   ============================================ */
.water-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  cursor: pointer;
  will-change: transform, opacity;
  transform-origin: center center;
}

.water-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--water-accent-40);
  box-shadow: 0 0 40px rgba(19, 200, 236, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background: var(--water-card-bg);
}

.water-frame-inner:hover {
  border-color: var(--water-accent-60);
  box-shadow: 0 0 60px rgba(19, 200, 236, 0.25);
}

.water-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.water-frame-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.water-frame:hover .water-frame-overlay {
  opacity: 1;
}

.water-frame-title {
  font-family: 'Exo', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.water-frame-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

/* ============================================
   5. Modal Styles
   ============================================ */
.water-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.water-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.water-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--water-overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.water-modal-wrapper {
  position: relative;
  width: 95vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.5s ease;
}

.water-modal.active .water-modal-wrapper {
  transform: scale(1);
}

.water-modal-close {
  position: absolute;
  top: -24px;
  right: 32px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--water-accent-70);
  font-family: 'Exo', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--water-accent-40);
  border-bottom: none;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.water-modal-close:hover {
  color: var(--water-accent);
  border-color: var(--water-accent-60);
}

.water-modal-close svg {
  width: 16px;
  height: 16px;
}

.water-modal-content {
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--water-accent-40);
  box-shadow: var(--water-modal-shadow);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.water-modal-iframe-container {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
}

.water-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.water-modal-loader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.95);
  transition: opacity 0.3s;
  pointer-events: none;
}

.water-modal-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(19, 200, 236, 0.2);
  border-top-color: var(--water-accent);
  border-radius: 50%;
  animation: water-spin 1s linear infinite;
}

@keyframes water-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


.water-modal-loader-text {
  font-family: 'DM Sans', sans-serif;
  color: rgba(19, 200, 236, 0.6);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 16px;
}

/* ============================================
   6. Atmospheric Overlays
   ============================================ */

/* Sunlight from surface effect */
.water-ambient-light {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% -20%, rgba(19, 200, 236, 0.12) 0%, transparent 60%);
}

/* Foreground depth vignette */
.water-depth-vignette {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: soft-light;
}

.water-depth-vignette-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, #000 100%);
  opacity: 0.7;
}

/* Scene dimmer for modal */
.water-scene-dimmer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ============================================
   7. Scroll Indicator
   ============================================ */
.water-scroll-indicator {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  transition: opacity 0.3s;
}

.water-scroll-bar-container {
  width: 1px;
  height: 96px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
}

.water-scroll-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--water-accent);
  box-shadow: 0 0 10px var(--water-accent);
  height: 0;
}

.water-scroll-text {
  color: rgba(19, 200, 236, 0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  animation: water-pulse 2s ease-in-out infinite;
}

@keyframes water-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


/* ============================================
   8. Responsive Breakpoints
   ============================================ */
@media (max-width: 768px) {
  .water-modal {
    padding: 4px;
  }

  .water-modal-wrapper {
    width: 100vw;
    height: 95vh;
  }

  .water-modal-close {
    right: 16px;
    top: -20px;
    padding: 6px 12px;
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


/* ============================================
   9. Additional Utility Classes
   ============================================ */

/* Transition utilities */
.water-transition-opacity {
  transition: opacity 0.3s ease;
}

.water-transition-transform {
  transition: transform 0.5s ease;
}

.water-transition-all {
  transition: all 0.3s ease;
}

/* Opacity utilities */
.water-opacity-0 {
  opacity: 0;
}

.water-opacity-70 {
  opacity: 0.7;
}

/* Transform utilities */
.water-scale-95 {
  transform: scale(0.95);
}

.water-scale-100 {
  transform: scale(1);
}

/* Animation utilities */
.water-animate-pulse {
  animation: water-pulse 2s ease-in-out infinite;
}

.water-animate-spin {
  animation: water-spin 1s linear infinite;
}

/* ============================================
   10. Deep-Sea Portfolio 3D Scene (ds-* namespace)
   ============================================ */

/* === Scrollytelling Text (floats in during scroll) === */
.ds-scrolly-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  user-select: none;
  -webkit-user-select: none;
}

.ds-scrolly-line {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin: 0 0 1.5rem 0;
  /* Add bottom margin to space out multiline paragraphs */
  padding: 0 2rem;
  max-width: 900px;
  opacity: 0;
  transition: none;
  /* JS controls animation */
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
  /* Better leading for multiline text */
}

.ds-scrolly-line em {
  font-style: normal;
  color: var(--ds-glow, #13c8ec);
  font-weight: 400;
}

.ds-scrolly-tagline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--ds-glow, #13c8ec);
  letter-spacing: normal;
  margin-top: 2rem;
  /* text-transform: uppercase removed to respect intended casing */
}

/* Constrain the giant unartificial1 class when it is placed inline in the scrolly tagline */
.ds-scrolly-tagline .unartificial1 {
  font-size: 1em;
  /* Scaled exactly to the tagline text size */
  line-height: inherit;
  padding-left: 0;
  /* Remove the 20px indent */
  vertical-align: baseline;
  display: inline;
}

@media screen and (max-width: 768px) {
  .ds-scrolly-tagline .unartificial1 {
    display: inline-block;
    /* Helps prevent breaking words awkwardly */
    font-size: 0.85em;
    /* Slightly tone down its presence on small phones */
    margin-top: 0.5rem;
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


/* === Custom Text Animations === */
@keyframes breathing-glow {
  0% {
    text-shadow: 0 0 10px rgba(19, 200, 236, 0.4), 0 0 20px rgba(19, 200, 236, 0.2);
    color: rgba(255, 255, 255, 0.95);
  }

  50% {
    text-shadow: 0 0 20px rgba(19, 200, 236, 0.8), 0 0 40px rgba(19, 200, 236, 0.6), 0 0 60px rgba(19, 200, 236, 0.4);
    color: #ffffff;
  }

  100% {
    text-shadow: 0 0 10px rgba(19, 200, 236, 0.4), 0 0 20px rgba(19, 200, 236, 0.2);
    color: rgba(255, 255, 255, 0.95);
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


.ds-unique-glow {
  animation: breathing-glow 3s ease-in-out infinite;
  font-weight: 500;
  color: var(--ds-glow, #13c8ec);
  /* Setting base color to the brand accent */
  display: inline-block;
  /* Required for transforms if we ever add them */
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ds-scrolly-container {
    transition: none;
  }

  .ds-scrolly-line {
    /* Still show text but without animation */
    opacity: 1 !important;
    transform: none !important;
  }

  .ds-unique-glow {
    animation: none;
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


/* === Portfolio 3D Scene === */
.ds-perspective-container {
  perspective: 1000px;
}

.ds-scene3d {
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  /* Let the inner frames handle clicks directly, scene must be transparent to clicks */
  pointer-events: none;
}

.ds-frame-3d {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform-origin: center center;
  position: absolute;
  top: 50%;
  left: 50%;
  cursor: pointer;
  /* Always clickable - event delegation handles the rest */
  pointer-events: auto;
}

/* Frame card styling — vanilla CSS equivalent of deep-sea's Tailwind */
.ds-frame-card {
  width: 100%;
  height: 100%;
  border: 1px solid var(--ds-glow-subtle, rgba(19, 200, 236, 0.3));
  background-color: var(--ds-bg-frame, rgba(2, 6, 23, 0.8));
  box-shadow: 0 0 20px rgba(19, 200, 236, 0.1);
  border-radius: 0.5rem;
  transition: border-color 0.5s, box-shadow 0.5s, background-color 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ds-frame-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

.ds-frame-3d:hover .ds-frame-card {
  border-color: var(--ds-glow-medium, rgba(19, 200, 236, 0.6));
  box-shadow: 0 0 30px rgba(19, 200, 236, 0.3);
  background-color: rgba(8, 51, 68, 0.4);
}

/* Dark overlay gradient */
.ds-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

/* Corner markers */
.ds-corner {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-color: var(--ds-glow-subtle, rgba(19, 200, 236, 0.5));
  transition: border-color 0.5s, box-shadow 0.5s;
  pointer-events: none;
}

.ds-corner--tl {
  top: 0.5rem;
  left: 0.5rem;
  border-left: 2px solid;
  border-top: 2px solid;
}

.ds-corner--tr {
  top: 0.5rem;
  right: 0.5rem;
  border-right: 2px solid;
  border-top: 2px solid;
}

.ds-corner--bl {
  bottom: 0.5rem;
  left: 0.5rem;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.ds-corner--br {
  bottom: 0.5rem;
  right: 0.5rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.ds-frame-3d:hover .ds-corner {
  border-color: var(--ds-glow, #13c8ec);
  box-shadow: 0 0 8px rgba(19, 200, 236, 0.6);
}

/* Hover description text */
.ds-frame-desc {
  opacity: 1;
  transition: opacity 0.5s, transform 0.5s;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

@media (min-width: 768px) {
  .ds-frame-desc {
    opacity: 0;
    transform: translateY(1rem);
  }

  .ds-frame-3d:hover .ds-frame-desc {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


.ds-frame-desc p {
  color: white;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 20rem;
  margin: 0 auto;
  cursor: inherit;
  user-select: none;
  pointer-events: none;
}

/* Modal styles */
.ds-modal-enter {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.ds-modal-enter-active {
  opacity: 1;
  pointer-events: auto;
}

.ds-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (min-width: 768px) {
  .ds-modal {
    padding: 1rem;
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


.ds-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.ds-modal-wrapper {
  position: relative;
  width: 95vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-modal-wrapper.is-open {
  transform: scale(1);
}

.ds-modal-close {
  position: absolute;
  top: -1.5rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ds-glow-subtle, rgba(19, 200, 236, 0.7));
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  border: 1px solid var(--ds-glow-subtle, rgba(19, 200, 236, 0.4));
  border-bottom: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.ds-modal-close:hover {
  color: var(--ds-glow, #13c8ec);
  border-color: rgba(19, 200, 236, 0.6);
  background-color: rgba(8, 51, 68, 0.4);
}

.ds-modal-content {
  width: 100%;
  height: 100%;
  background-color: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(19, 200, 236, 0.4);
  box-shadow: 0 0 100px rgba(19, 200, 236, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ds-modal-iframe-wrap {
  flex: 1;
  position: relative;
  background-color: rgba(10, 22, 40, 0.95);
  overflow: hidden;
}

.ds-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ds-iframe-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 22, 40, 0.95);
  transition: opacity 0.3s;
  pointer-events: none;
}

.ds-iframe-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(19, 200, 236, 0.2);
  border-top-color: var(--ds-glow, #13c8ec);
  border-radius: 50%;
  animation: ds-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes ds-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


/* Scene dimmer overlay */
.ds-scene-dimmer {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  backdrop-filter: blur(2px);
}

/* ============================================
   End of Dive CTA
   ============================================ */
.ds-final-cta {
  position: absolute;
  inset: 0;
  z-index: 45;
  /* Above vignette (20), below scrolly container (50) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.ds-cta-heading {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: dm-sans-24pt, sans-serif;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.ds-cta-subheading {
  color: var(--ds-glow, #13c8ec);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  margin-bottom: 3.5rem;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* ============================================
   Mitosis Button Effect (Biologic Transformation)
   ============================================ */
.ds-mitosis-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  margin-top: 1rem;
  max-width: 90vw;
  /* Apply SVG gooey filter to children to create fluid morphing */
  filter: url('#ds-goo');
}

.ds-mitosis-core {
  position: absolute;
  z-index: 5;
  background: var(--ds-glow, #13c8ec);
  /* Solid color needed for goo effect */
  color: #000;
  padding: 1.5rem 3.5rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  /* Scales down before wrapping */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  /* Biological elasticity for the splitting phase (Anaphase), very subtle organic bounce */
  transition: all 1.4s cubic-bezier(0.45, 0.05, 0.25, 1.05);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  /* Allow wrapping — last resort after font scales down */
  overflow: visible;
  /* Never clip text — border-radius contains visuals */
  width: max-content;
  /* Pill sizes to its text content naturally */
  max-width: min(88vw, 780px);
  /* Hard ceiling: never wider than viewport or 780px */
  box-sizing: border-box;
}

.ds-mitosis-children {
  display: flex;
  gap: 0;
  z-index: 1;
  pointer-events: none;
  /* Elastic transition for the cell walls separating */
  transition: gap 1.4s cubic-bezier(0.45, 0.05, 0.25, 1.05);
}

.ds-mitosis-children .ds-btn {
  /* Initially compressed and invisible in the center */
  transform: scale(0.6);
  opacity: 0;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-family: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  min-width: 320px;
  pointer-events: none;
  transition: all 1.4s cubic-bezier(0.45, 0.05, 0.25, 1.05);
}

.ds-btn-text {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.ds-mitosis-core .ds-btn-text {
  /* Fast fade-out before the main structure stretches */
  transition: opacity 0.15s ease-out;
}

.ds-mitosis-wrapper:hover .ds-mitosis-core .ds-btn-text {
  opacity: 0;
}

.ds-btn-sub {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.6rem;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: normal;
  transition: color 0.3s ease;
}

/* === THE MITOSIS (HOVER ANIMATION) === */
.ds-mitosis-wrapper:hover .ds-mitosis-core {
  /* The central cell shrinks and acts as the "bridge" that snaps */
  transform: scale(0.1);
  opacity: 0;
  pointer-events: none;
}

.ds-mitosis-wrapper:hover .ds-mitosis-children {
  /* Daughter cells push apart, gooey filter connects them naturally until they break */
  gap: 2.5rem;
  pointer-events: auto;
}

.ds-mitosis-wrapper:hover .ds-mitosis-children .ds-btn {
  /* The daughter cells fully inflate (Telophase) */
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Base button primary/secondary styles */
/* Crucial: Must be solid colors for the SVG filter to work correctly */
.ds-btn-primary {
  background: var(--ds-glow, #13c8ec);
  color: #000000;
}

.ds-btn-primary .ds-btn-sub {
  color: rgba(0, 0, 0, 0.8);
}

.ds-mitosis-wrapper:hover .ds-mitosis-children .ds-btn-primary:hover {
  background: #ffffff;
  /* Remove box shadow during gooey morph to prevent artifacts */
  transform: scale(1.05);
}

.ds-btn-secondary {
  background: var(--ds-glow, #13c8ec);
  /* Must match for Goo effect to snap properly */
  color: #000000;
}

.ds-btn-secondary .ds-btn-sub {
  color: rgba(0, 0, 0, 0.8);
}

.ds-mitosis-wrapper:hover .ds-mitosis-children .ds-btn-secondary:hover {
  background: #ffffff;
  transform: scale(1.05);
}


/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


/* Atmospheric layers */
.ds-atmo-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% -20%, rgba(19, 200, 236, 0.12) 0%, transparent 60%);
}

.ds-depth-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: soft-light;
  background: radial-gradient(circle at 50% 50%, transparent 30%, #000 100%);
  opacity: 0.7;
}

/* ============================================
   11. Water Section — Sticky Viewport
   The parent .sticky-section.is-water is position:sticky
   from Webflow and scrolls through its height (300vh+).
   This child sticks to the top of the viewport while the
   parent scrolls, creating the "world moves, camera stays" effect.
   ============================================ */
.water-pinned-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  /* Perspective for 3D frame transforms */
  perspective: 2000px;
  transform-style: preserve-3d;
  /* TRANSPARENT — let parent section's gradient show through */
  background: transparent;
}

/* Fallback for browsers that do not support svh (pre-2022 engines) */
@supports not (height: 100svh) {
  .water-pinned-viewport {
    height: 100vh;
  }
}

/* ============================================
   12. Navigation Transition Overlay
   Cinematic "deep dive" panel wipe for nav transitions
   ============================================ */
#nav-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 50%,
      rgba(10, 22, 40, 0.95) 0%,
      rgba(0, 0, 0, 0.98) 100%);
  /* Subtle animated shimmer at edges */
  box-shadow: inset 0 0 200px rgba(19, 200, 236, 0.05);
}

/* Active nav button state — bold weight only */
.menu-item.is-active .text-block-7 {
  color: #fff;
  font-weight: 700;
}

/* ============================================
   UX/UI Pro Max: Conversion Modals (Glassmorphism)
   ============================================ */
.uix-conversion-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  /* Above everything */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.uix-conversion-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.uix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.uix-modal-window {
  position: relative;
  box-sizing: border-box;
  /* Fix horizontal overflow */
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: rgba(16, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(19, 200, 236, 0.1);
  border-radius: 24px;
  padding: 3rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
  scrollbar-width: thin;
  /* Firefox — shows a slim native bar */
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  /* Firefox thumb / track */
}

.uix-modal-window::-webkit-scrollbar {
  width: 10px;
  /* Wider for easier grabbing */
}

.uix-modal-window::-webkit-scrollbar-track {
  background: transparent;
}

.uix-modal-window::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.uix-modal-window::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 200, 236, 0.6);
  background-clip: content-box;
  border: 2px solid transparent;
}

.uix-modal-window::-webkit-scrollbar-thumb:active {
  background: rgba(19, 200, 236, 0.9);
  background-clip: content-box;
  border: 2px solid transparent;
}

.uix-conversion-modal.is-open .uix-modal-window {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.uix-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.uix-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

.uix-modal-content {
  color: #fff;
  font-family: inherit;
}

.uix-modal-title {
  font-size: 2rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.uix-modal-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

/* Scheduler Container */
.uix-scheduler-container {
  width: 100%;
  min-height: 400px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Modal Header Layout */
.uix-modal-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-right: 4rem;
}

/* Language Toggle */
.uix-lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.25rem;
}

.uix-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.uix-lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.uix-lang-btn.is-active {
  background: rgba(19, 200, 236, 0.15);
  color: var(--ds-glow, #13c8ec);
}

.uix-lang-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.25rem;
}

/* Scheduler Loading State */
.uix-sched-loader {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

/* Interactive Scheduler Grid */
.uix-sched-interactive {
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.uix-sched-carousel-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Row 1: Horizontal Date Carousel */
.uix-date-list {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  /* Firefox */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.uix-date-list::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Row 2: Time Grid */
.uix-time-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.25rem;
  /* Firefox — thick thumb, cyan on dark track */
  scrollbar-width: auto;
  scrollbar-color: rgba(19, 200, 236, 0.75) rgba(255, 255, 255, 0.08);
}

/* Thick, always-visible scrollbar for the time grid — all viewports */
.uix-time-list::-webkit-scrollbar {
  width: 14px;
}

.uix-time-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  margin: 4px 0;
}

.uix-time-list::-webkit-scrollbar-thumb {
  background: rgba(19, 200, 236, 0.75);
  border-radius: 9999px;
  /* No border/background-clip — full 14px is solid and grabbable */
  min-height: 44px;
}

.uix-time-list::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 200, 236, 0.95);
}

.uix-time-list::-webkit-scrollbar-thumb:active {
  background: #13c8ec;
}

/* Schedule Buttons */
.uix-sched-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Specific Date Card styling */
.uix-date-list .uix-sched-btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  flex-shrink: 0;
  min-width: 80px;
  padding: 1rem 0.5rem;
  gap: 0.25rem;
}

.uix-date-day {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.uix-date-date {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.uix-sched-btn:hover:not(:disabled) {
  background: rgba(19, 200, 236, 0.1);
  border-color: rgba(19, 200, 236, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.uix-sched-btn.is-selected {
  background: rgba(19, 200, 236, 0.2);
  border-color: var(--ds-glow, #13c8ec);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ds-glow, #13c8ec);
}

.uix-sched-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.2);
}

/* Booking Form below the grid */
.uix-booking-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.uix-book-btn {
  width: 100%;
}

/* Form Styles */
.uix-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.uix-form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.uix-form-group input[type="text"],
.uix-form-group input[type="email"],
.uix-form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.uix-form-group input::placeholder,
.uix-form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.uix-form-group input:focus,
.uix-form-group textarea:focus {
  outline: none;
  border-color: var(--ds-glow, #13c8ec);
  background: rgba(19, 200, 236, 0.05);
  box-shadow: 0 0 0 4px rgba(19, 200, 236, 0.1);
}

.uix-file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.uix-file-upload-label:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--ds-glow, #13c8ec);
}

.uix-upload-icon {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.uix-file-upload-label:hover .uix-upload-icon {
  color: var(--ds-glow, #13c8ec);
}

.uix-upload-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.uix-file-input {
  display: none;
}

.uix-submit-btn {
  margin-top: 1rem;
  background: var(--ds-glow, #13c8ec);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
}

.uix-submit-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(19, 200, 236, 0.3);
}

.uix-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.uix-btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: uix-spin 0.8s linear infinite;
}

.uix-form-success {
  text-align: center;
  padding: 2rem 0;
}

.uix-success-icon {
  margin-bottom: 1rem;
}

.uix-form-success h4 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.uix-form-success p {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes uix-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  .uix-conversion-modal {
    align-items: flex-start;
    padding-top: 0.25rem;
  }

  .uix-modal-window {
    max-height: 98vh;
    max-height: 98dvh;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 8px;
  }

  .uix-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .uix-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .uix-scheduler-container {
    min-height: 0;
  }

  .uix-time-list {
    max-height: 120px;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem;
    min-width: 60px;
  }

  .uix-date-date {
    font-size: 1rem;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .uix-form-grid {
    gap: 0.75rem;
  }

  .uix-submit-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    /* keep touch target accessible */
  }
}


/* ============================================
   Water → Contact gradient overlay
   Mirrors the life section's .div-block-48 technique.
   Fades the water bottom edge into the algae top color
   so the boundary dissolves rather than cuts.
   ============================================ */
.water-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 18vh;
  min-height: 100px;
  pointer-events: none;
  z-index: 30;
  /* above fish (z:0) and frames (z:10), below CTA (z:40+) */
  background-image: linear-gradient(to bottom,
      transparent,
      #000000);
}

/* ============================================
   Nav Modal-Close State
   Shown only when body.ds-modal-is-open is set.
   Replaces the .plus icon visually — same position,
   same parent, same z-index. The .plus hides.
   ============================================ */

/* Default: hide the close button */
.nav-modal-close-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  align-self: center;
  width: 40%;
  /* same as .plus width */
  padding: 0;
}

.nav-modal-close-icon {
  opacity: 1 !important;
  filter: blur(2px) !important;
  mix-blend-mode: normal !important;
  width: 100% !important;
  transform: rotate(45deg) !important;
  transform-origin: center !important;
  transition: filter 0.3s ease !important;
}

/* Modal is open: hide the plus, reveal the close button */
body.ds-modal-is-open .plus {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.ds-modal-is-open .nav-modal-close-btn {
  display: block !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 999;
}

/* Hover state matching .ds-modal-close hover */
.nav-modal-close-btn:hover .nav-modal-close-icon {
  filter: blur(1px) brightness(1.2);
}

/* Disable navigation menu when modal is open */
body.ds-modal-is-open .nav-menu-list {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide all menu items individually as backup */
body.ds-modal-is-open .menu-item {
  display: none !important;
  pointer-events: none !important;
}

/* Disable trigger click when modal is open */
body.ds-modal-is-open .trigger {
  pointer-events: none !important;
  opacity: 1 !important;
}

/* ============================================
   Modal Mobile Header Bar
   Shown on mobile only. Sits above the iframe.
   Communicates: "you are still on our site."
   ============================================ */
.ds-modal-header-bar {
  display: none;
  /* hidden on desktop — desktop has the tab close btn */
}

@media screen and (max-width: 768px) {
  .ds-modal-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 40px;
    min-height: 40px;
    background: rgba(5, 5, 20, 0.95);
    border-bottom: 1px solid rgba(19, 200, 236, 0.2);
    flex-shrink: 0;
    /* never collapses — always 40px tall */
  }

  .ds-modal-header-logo {
    width: auto;
    height: 20px;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.9;
    flex-shrink: 0;
  }

  .ds-modal-header-domain {
    flex: 1;
    font-family: dm-sans-24pt, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ds-modal-header-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(19, 200, 236, 0.08);
    border-radius: 50%;
    cursor: pointer;
    color: rgba(19, 200, 236, 0.7);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
  }

  .ds-modal-header-close:hover {
    background: rgba(19, 200, 236, 0.18);
    color: #13c8ec;
  }

  /* Portfolio 3D Gallery Card Text Scaling */
  .ds-frame-desc p {
    /* Scale text down proportionally so it fits inside the JS-scaled card (0.7 scale) */
    font-size: clamp(0.7rem, 2.5vw, 0.9rem) !important;
    line-height: 1.3 !important;
    padding: 0.5rem !important;
  }

  /* Ensure the glass overlay never forces the card to expand */
  .ds-frame-overlay {
    width: 100% !important;
    height: 100% !important;
  }

  /* ============================================================
     MOBILE MODAL — NEVER-OVERFLOW LAYOUT
     Strategy: aggressively compress all spacing so the full
     modal (title + dates + time grid + form) fits within 100dvh
     without the window needing to scroll at all.
     The ONLY thing that scrolls is .uix-time-list itself, which
     gets a fixed height and a thick, always-visible scrollbar.
     ============================================================ */

  /* Overlay: centered, no scrolling, no padding — just a backdrop */
  .uix-conversion-modal {
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  /* Window: scrolls if content exceeds viewport.
     The time list is height-capped so normal use fits without scrolling,
     but after a time is selected and the booking form appears, the window
     can scroll to reach the submit button. */
  .uix-modal-window {
    box-sizing: border-box;
    width: 92vw !important;
    max-width: 440px !important;
    max-height: 92dvh !important;
    max-height: 92vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 1.25rem !important;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 16px;
  }

  .uix-modal-header-flex {
    padding-right: 2.5rem;
    margin-bottom: 0.75rem !important;
  }

  /* Crush the title and subtitle to save vertical space */
  .uix-modal-title {
    font-size: 1.2rem !important;
    margin-bottom: 0.2rem !important;
  }

  .uix-modal-subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
  }

  /* Scheduler container: no min-height, no overflow clip */
  .uix-scheduler-container {
    min-height: 0 !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .uix-sched-interactive {
    padding: 0 !important;
  }

  .uix-sched-carousel-layout {
    gap: 0.5rem !important;
  }

  /* Date row: compact */
  .uix-date-list .uix-sched-btn {
    padding: 0.5rem 0.4rem !important;
    min-width: 56px !important;
    gap: 0.1rem !important;
  }

  .uix-date-day {
    font-size: 0.65rem !important;
  }

  .uix-date-date {
    font-size: 0.95rem !important;
  }

  /*
   * TIME LIST — fixed height + THICK always-visible scrollbar.
   * This is the ONLY element that scrolls. Height is calculated
   * to leave room for: title (~40px) + subtitle (~30px) +
   * header margin (~20px) + date row (~65px) + gap (~8px) +
   * form when visible (~200px) + window padding (~40px) = ~403px.
   * 92dvh on a 667px (iPhone SE) = 613px. 613 - 403 = 210px for times.
   * We use 180px as a safe floor that works even on small phones.
   */
  .uix-time-list {
    max-height: 110px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding-right: 0 !important;
    padding-bottom: 0.5rem !important;
  }

  /* Booking form: compact spacing */
  .uix-booking-form {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
  }

  .uix-form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem !important;
  }

  .uix-form-group input {
    padding: 0.65rem 0.9rem !important;
    font-size: 0.9rem !important;
  }

  .uix-submit-btn {
    padding: 0.8rem 1.25rem !important;
    min-height: 44px !important;
    margin-top: 0.6rem !important;
  }

  /* ── "Send us your details" form (View B) — mobile compression ──
     This view has more fields than the scheduler, so it needs
     its own tighter treatment to avoid overflowing 92dvh.        */
  #uix-modal-view-form .uix-modal-title,
  .uix-modal-view-form .uix-modal-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.15rem !important;
  }

  #uix-modal-view-form .uix-modal-subtitle,
  .uix-modal-view-form .uix-modal-subtitle {
    font-size: 0.75rem !important;
    margin-bottom: 0.6rem !important;
  }

  #uix-modal-view-form .uix-form {
    gap: 0.6rem !important;
  }

  #uix-modal-view-form .uix-form-group input,
  #uix-modal-view-form .uix-form-group textarea {
    padding: 0.55rem 0.8rem !important;
    font-size: 0.85rem !important;
  }

  /* Shrink the textarea — 2 rows is enough on mobile */
  #uix-modal-view-form textarea#uix-vision {
    rows: 2;
    max-height: 60px !important;
    min-height: 0 !important;
    resize: none !important;
  }

  /* Compact the file upload zone */
  #uix-modal-view-form .uix-file-upload-label {
    padding: 0.75rem 1rem !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    justify-content: flex-start !important;
  }

  #uix-modal-view-form .uix-upload-icon {
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  #uix-modal-view-form .uix-upload-text {
    font-size: 0.75rem !important;
    text-align: left !important;
  }

  /* Allow the form window to scroll — it has more fields than the
     scheduler and may still exceed 92dvh on very small phones.
     JS adds .uix-form-view-open to body when this view is active. */
  body.uix-form-view-open .uix-modal-window {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ds-modal-wrapper {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  /* === Final CTA Responsiveness === */
  .ds-cta-heading {
    font-size: clamp(2rem, 8vw, 2.5rem);
    /* Prevents the 4rem desktop text from overflowing */
    line-height: 1.2;
  }

  .ds-mitosis-wrapper {
    width: 100%;
    margin-top: 0;
  }

  .ds-mitosis-children {
    flex-direction: column;
    /* Stack the two CTA buttons vertically */
    gap: 2.5rem;
    /* Increased to naturally separate buttons with Goo filter active */
    width: 100%;
  }

  .ds-mitosis-wrapper:hover .ds-mitosis-children {
    gap: 2.5rem;
    /* Keep gap consistent to prevent snap jumps */
  }

  .ds-mitosis-children .ds-btn {
    min-width: 0;
    /* Clear desktop hard limit */
    width: 100%;
    /* Ensure full-width fat touch targets */
    padding: 1rem 2rem;
    /* Added extra horizontal padding so text doesn't touch edges */
  }

  .ds-mitosis-core {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    /* Reduce side padding on narrow screens */
    font-size: 0.8rem;
    /* Explicit small size for mobile — below clamp floor */
    white-space: normal;
    /* Confirm wrapping is allowed */
    overflow: visible;
  }


}

/* ================================================================
 Very Short Viewport — Landscape phones, foldables, iPad split-view
 Targets any screen shorter than 500px regardless of width.
 The goal is maximum vertical compression so the action button
 is always within reach without needing extreme scrolling.
 ================================================================ */
@media screen and (max-height: 500px) {
  /* Landscape — viewport very short, compress everything */
  .uix-conversion-modal {
    align-items: center;
    padding: 0;
  }

  .uix-modal-window {
    max-height: 98dvh !important;
    max-height: 98vh !important;
    padding: 0.6rem !important;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 8px;
    overflow: hidden !important;
  }

  .uix-modal-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.1rem !important;
  }

  .uix-modal-subtitle {
    font-size: 0.72rem !important;
    margin-bottom: 0.4rem !important;
  }

  .uix-modal-header-flex {
    margin-bottom: 0.4rem !important;
  }

  .uix-scheduler-container {
    min-height: 0 !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
  }

  .uix-sched-carousel-layout {
    gap: 0.35rem !important;
  }

  /* Time list: shorter in landscape, thick scrollbar inherits from base */
  .uix-time-list {
    max-height: 100px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scrollbar-width: auto !important;
    scrollbar-color: rgba(19, 200, 236, 0.8) rgba(255, 255, 255, 0.1) !important;
  }

  /* In landscape, collapse the date card padding */
  .uix-date-list .uix-sched-btn {
    padding: 0.35rem 0.3rem !important;
    min-width: 50px !important;
  }

  .uix-date-date {
    font-size: 0.85rem !important;
  }

  /* Compress the booking form */
  .uix-booking-form {
    margin-top: 0.4rem !important;
    padding-top: 0.4rem !important;
  }

  .uix-form-grid {
    gap: 0.4rem !important;
  }

  .uix-submit-btn {
    padding: 0.6rem 1rem !important;
    min-height: 40px !important;
  }
}


/* ================================================================
   MEDIA SECTION BOOKING BUTTON
   Standalone pill — reuses .ds-btn + .ds-btn-primary styles,
   but not inside .ds-mitosis-wrapper so those hover-transform
   rules do not apply. Must be readable over the life-section
   dark background.
   ================================================================ */
.media-book-cta-btn {
  /* Initial hidden state - GSAP will control opacity based on scroll */
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, background 0.3s ease !important;

  /* Absolute positioning at center left of Life section */
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  z-index: 100;

  /* Layout — matches Water section .ds-btn design */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;

  /* Pill shape & brand color — matches .ds-btn-primary */
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  background: var(--ds-glow, #13c8ec);
  color: #000000;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 320px;
}

.media-book-cta-btn:hover {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.05) !important;
}

/* ================================================================
   MEDIA BOOKING MODAL — state isolation
   Both modals share .uix-conversion-modal base styles,
   but only the one with .is-open should be visible.
   The base rule already sets visibility:hidden / pointer-events:none
   at its default state, so no extra rule is needed for hiding.
   This comment exists for clarity.
   ================================================================ */

/* ================================================================
   ACCEASY CTA — Sky section call-to-action
   ================================================================ */

/* Wrapper — positions the entire CTA unit as one block */
.acceasy-cta-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  /* opacity and pointer-events set by GSAP — do not set here */
}

/* Label text above the logo button */
.acceasy-cta-label {
  color: #ffffff;
  font-family: dm-sans-24pt, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 auto;
  padding: 0 1.5rem;
  /* Horizontal breathing room so text wraps to two lines */
  max-width: 28rem;
  /* Cap width — forces natural two-line break */
  white-space: normal;
  /* Was nowrap — now wraps */
  line-height: 1.5;
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.8),
    0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Logo button — white pill with logo inside */
.acceasy-book-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  background: #ffffff;
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 1px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 220px;
}

.acceasy-book-cta-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25);
}

.acceasy-book-cta-btn:active {
  transform: scale(0.98);
}

/* Logo image inside the button */
.acceasy-btn-logo {
  height: 44px;
  width: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  /* prevents img from swallowing click events */
}

/* Two lines below the Acceasy button — centered, enlarged */
.acceasy-cta-secondary {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.43rem;
  /* +50% from 0.95rem */
  line-height: 1.8;
  /* more breathing room */
  margin: 0;
}

/* Link matches the CTA prominence — white, visible */
.acceasy-cta-secondary a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* ================================================================
   ACCEASY CTA — Mobile (≤479px)
   Center and resize for narrow viewports.
   ================================================================ */
@media screen and (max-width: 479px) {
  .acceasy-cta-wrapper {
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 1rem;
    width: 90vw;
  }

  .acceasy-cta-label {
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }

  .acceasy-book-cta-btn {
    min-width: 0;
    width: 80vw;
    max-width: 320px;
    padding: 0.75rem 1.5rem;
  }

  .acceasy-btn-logo {
    height: 34px;
  }
}

/* ================================================================
   ACCEASY CTA — Tablet (≤767px)
   ================================================================ */
@media screen and (max-width: 767px) {
  .acceasy-cta-label {
    font-size: 1.1rem;
  }
}

/* ============================================
   Life → Water Section Transition Overlay
   Fades from the greenish-blue bottom of .grradiante3
   (#1a4d6d) down to transparent, so the top edge of the
   Water section dissolves seamlessly rather than cutting hard.
   Mirrors the .contact-top-fade technique used below.
   ============================================ */
.water-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  min-height: 120px;
  pointer-events: none;
  z-index: 30;
  /* Above fish canvas (z:0) and 3D frames (z:10), below CTA (z:40+) */
  background-image: linear-gradient(to bottom, #1a4d6d, transparent);
}

@media screen and (max-width: 768px) {
  .ds-mitosis-children {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .ds-mitosis-children .ds-btn {
    width: 88vw !important;
    min-width: unset !important;
    max-width: 380px !important;
    /* Cap for large phones in landscape */
  }

  .media-book-cta-btn {
    /*
     * On mobile, keep position:absolute so the button stays
     * inside .stickyviewportlife (100vw wide).
     * left:50% + translate(-50%) centers it at the horizontal midpoint.
     * Vertical: push toward bottom third (top:78%) to clear DNA animation.
     */
    position: absolute !important;
    top: 78% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: auto;
    max-width: 88vw;
    min-width: 0;
    padding: 1rem 2rem;
    white-space: nowrap;
  }

  .media-book-cta-btn:hover {
    transform: translate(-50%, -50%) scale(1.05) !important;
  }
}