/* 
  Project: COSMOTION Landing Page (v1)
  Style: Pixel-Perfect Strict Implementation
  Spec: Figma Detailed Analysis
*/

/* --- Fonts --- */
/* Gilroy imports from local */
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/font/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Inter will be imported in HTML via Google Fonts */

/* --- Variables --- */
:root {
  /* Colors */
  --color-bg-light: #EEFBFF;
  --color-bg-dark: #032F3D;
  --color-accent-blue: #1C9AC1;
  --color-accent-green: #25EE99; /* CTA */
  --color-accent-light-blue: #8FE0F8;
  --color-card-white: #E3F8FF;
  --color-text-dark: #0A0A0A;
  --color-text-white: #FFFFFF;
  --color-border-light: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-gilroy: 'Gilroy', sans-serif;
  --font-inter: 'Inter', sans-serif;

  /* Layout */
  --header-height: 68.8px;
  --container-padding: 160.4px;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* REQUESTED: Disable horizontal scroll */
}
.step {
  width: 230px; /* Adjusted from 260px for better fit */
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul { list-style: none; }
img, video { display: block; max-width: 100%; }

/* --- Typography Classes --- */
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.text-accent-blue { 
  background-color: var(--color-bg-dark); 
  color: #eefbff;
  padding: 0 8px; /* Add some breathing room */
  border-radius: 8px;
  padding: 2px 10px ;
  font-size: ;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  height: 46px;
  width: 200px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent-green);
  color: #0A0A0A;
  border: none;
  box-shadow: 0 0 20px rgba(37, 238, 153, 0.5);
}
.btn-primary:hover {
  background-color: #1fcc82;
}

.btn-outline {
  background-color: transparent;
  border: 3px solid var(--color-accent-green);
  color: var(--color-accent-green);
  font-weight: 700; /* Bolder text for outline */
  box-shadow: 0 0 15px rgba(37, 238, 153, 0.3);
}
.btn-outline:hover {
  background-color: var(--color-accent-green);
  color: #0A0A0A; /* Switch to dark text on hover */
  box-shadow: 0 0 30px rgba(37, 238, 153, 0.6);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--container-padding);
  background: rgba(238, 251, 255, 0.8); /* Fallback */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo left, Nav centered? Requirements say Nav centered horizontally, implies absolute positioning or flex tricks */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0; /* Adjusted: Removed 32px margin */
  text-decoration: none;
}

.logo img {
  height: 32px; /* Balanced with 24px text */
  width: auto;
}

.logo span {
  font-family: var(--font-gilroy);
  font-weight: 700;
  font-size: 23.8px;
  color: var(--color-accent-blue);
  text-transform: uppercase;
  letter-spacing: -0.48px;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px; /* ~30-50px */
}

.nav-item {
  font-family: var(--font-inter);
  font-weight: 600; /* Semi Bold */
  font-size: 13px; /* ~12.9-13.6px */
  color: var(--color-bg-dark);
  letter-spacing: 1.36px;
  text-transform: uppercase;
}

.nav-item:hover {
  color: var(--color-accent-blue);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 805px;
  height: auto;
  background-color: #000; /* Fallback */
  overflow: hidden;
  text-align: center;
  padding-top: 168px; /* Adjusted safe area */
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Video BG emulation with overlay */
.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 38, 0.3);
  backdrop-filter: blur(16.4px); /* Req: blur 16.4px on bg image? Usually applies to elements BEHIND, let's assume overlay effect */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-gilroy);
  font-weight: 700;
  font-size: 79.5px;
  line-height: 84px;
  letter-spacing: -3.2px;
  color: var(--color-text-white);
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 40px; /* Adjust spacing */
  text-align: center;
}
/* .hero-title span removed to avoid conflict with letter animation */
/* .hero-title .invisible-text removed */

.glass-word {
  display: inline; /* Treat as regular text wrapper */
  margin: 0; /* Remove extra spacing, rely on HTML spaces */
  vertical-align: baseline; /* Align with surrounding text */
  
  /* Text Glass Effect */
  font-size: 82.5px;
  color: rgba(255, 255, 255, 0.05); /* Almost transparent fill */
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.7); /* Glass edge */
  text-shadow: 0 0 20px rgba(143, 224, 248, 0.4); /* Glow/Refraction feel */
}

.letter-anim {
  display: inline-block;
  opacity: 0;
  transform: translateY(-40px) rotateX(-90deg); /* Falling with rotation for liquid feel? Or just falling */
  transform: translateY(-50px);
  filter: blur(8px);
  transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000); /* easeOutCubic or back */
}

.letter-anim.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-subtitle {
  font-family: var(--font-inter);
  font-weight: 500; /* Medium */
  font-size: 20.4px;
  line-height: 34.56px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.hero-logos {
  display: flex;
  gap: 60px; /* Adjust spacing */
  /* height: 147px; Removed fixed height */
  align-items: center;
  justify-content: center;
  width: 100%; /* Was 848px */
  max-width: 848px;
  margin: 0 auto 50px auto;
}
.hero-logos img {
  height: 120px; /* Increased from 80px */
  width: auto;
  object-fit: contain;
}

.hero-cta-group {
  display: flex;
  gap: 26px;
  justify-content: center;
}

/* --- Applied Scientific Visualization --- */
.applied-section {
  min-height: 765px;
  height: auto;
  background-color: var(--color-bg-dark);
  padding-top: 128px;
  padding-bottom: 128px;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  color: var(--color-text-white);
  text-align: center;
  position: relative;
}

.applied-title {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 42px;
  line-height: 44px;
  margin-bottom: 60px;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 170px;
}

.applied-card {
  width: 356px;
  height: 484px;
  background-color: var(--color-card-white);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Visible on light bg? Maybe dark border meant? Or white border on dark logic? Figma says 1px rgba(255,255,255,0.1) but bg is E3F8FF. Let's stick to spec. */
  border-radius: 8px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  padding: 31.8px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}
.card-icon img { width: 100%; height: 100%; object-fit: contain; }

.card-title {
  font-family: var(--font-gilroy);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-bg-dark); /* #032F3D */
  margin-bottom: 16px;
}

.card-desc {
  font-family: var(--font-inter);
  font-size: 16.8px;
  line-height: 26.4px;
  color: var(--color-bg-dark);
}
.card-desc strong {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.card-desc span {
  font-weight: 400; /* Regular */
}

/* Button inside card positioned bottom */
.applied-card .btn {
  position: absolute;
  bottom: 30px; /* Spec says bottom 396px ??? 396px from top probably? 484 - 396 = 88px from bottom. Let's use flex mt-auto */
  left: 50%;
  transform: translateX(-50%);
  margin-top: auto;
}

/* --- Trusted By --- */
.trusted-section {
  min-height: 302px;
  height: auto;
  padding-bottom: 60px;
  background-color: var(--color-bg-dark);
  border-top: 0.8px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.1);
  padding: 0 var(--container-padding);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align top */
}

.trusted-label {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 13.2px;
  letter-spacing: 1.44px;
  color: var(--color-accent-light-blue);
  text-transform: uppercase;
  margin-top: 64px; /* Exact spec */
  margin-bottom: 0;
  display: block;
}

.trusted-section .logos-container {
  height: 147px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-top: 27px; /* 103.2px total top - 64px label - label height approx */
}
/* Specific logo adjustments - All Uniform Larger */
.logos-container img {
    height: 120px; /* Increased from 80px */
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: brightness(0) invert(1); /* Ensure white logos on dark bg if not already */
}

/* --- Selected Work --- */
.work-section {
  height: auto;
  background-color: var(--color-bg-light);
  padding: 0 var(--container-padding);
  position: relative;
  padding-top: 125px; /* Top title pos */
  padding-bottom: 125px;
}
/* Title pos adjustment using absolute or padding? Spec: Left 31.6px? Prolly relative to container */
.work-title {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 42px;
  line-height: 44px;
  color: var(--color-bg-dark);
  position: absolute;
  top: 125px;
  left: calc(var(--container-padding) + 31.6px);
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  margin-top: 100px;
}

.carousel-container {
  margin-top: 0; /* Moved to wrapper */
  display: flex;
  gap: 86px;
  overflow-x: hidden; /* Hide scrollbar for JS control */
  padding-bottom: 40px;
  justify-content: flex-start; /* Left align for scroll */
  scroll-behavior: smooth;
  width: 100%;
}

.work-item {
  width: 500px;
  height: auto;
  background-color: transparent;
  flex-shrink: 0;
  opacity: 0.5; /* Fade inactive */
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
} 
.work-item:hover {
  cursor: pointer;
}

.work-video-wrapper {
  width: 100%;
  height: 281px;
  background-color: var(--color-accent-light-blue);
  border-radius: 4px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05); /* Shadow on video only */
  overflow: hidden;
  position: relative;
}

.work-item.active {
    opacity: 1;
    transform: scale(1.02);
}
.work-video-wrapper img, .work-video-wrapper video { width: 100%; height: 100%; object-fit: cover; }

.work-item-title {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-bg-dark);
  padding-left: 4px; /* Optical alignment */
  text-align: left;
}

.work-text-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.work-item-client {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-bg-dark);
  opacity: 0.8;
  padding-left: 4px;
}

.carousel-indicators {
  display: flex;
  gap: 24px;
  justify-content: center;
  position: absolute;
  bottom: 100px; /* Adjust */
  left: 0; 
  width: 100%;
}
.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #0F0F0F;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s;
  background-color: #0F0F0F;
}


.arrow {
  position: absolute;
  top: 140px; /* Center relative to the 281px video height */
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  color: var(--color-bg-dark);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.arrow:hover {
  background: var(--color-accent-blue);
  color: #FFFFFF;
  border-color: var(--color-accent-blue);
  box-shadow: 0 15px 35px rgba(28, 154, 193, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.arrow:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 5px 15px rgba(28, 154, 193, 0.3);
}

.arrow.prev {
  left: 40px;
}

.arrow.next {
  right: 40px;
}

/* --- Methodology --- */
.methodology-section {
  min-height: 1215px;
  height: auto;
  background-color: var(--color-bg-dark);
  padding: 136px var(--container-padding) 100px;
  position: relative;
}

.methodology-title {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 42px; /* Fixed: was 442px in thought */
  line-height: 44px;
  color: var(--color-text-white);
  margin-bottom: 60px; /* Space before video */
  text-align: center;
}

.divider {
  height: 1px;
  background-color: var(--color-accent-light-blue);
  opacity: 0.3;
  width: 100%;
  position: relative;
  margin-bottom: 60px; /* Space before steps */
}

.steps-container {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  position: relative;
  z-index: 1;
}

.step {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.step-circle {
  width: 56px;
  height: 56px;
  background-color: var(--color-bg-dark);
  border: 1px solid var(--color-accent-light-blue);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px; /* Spec: title 99px under icon */
  z-index: 2;
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--color-accent-light-blue);
  font-weight: 600;
}
/* Step 01 Icon? CSS content or img */
.step-content h3 {
  font-family: var(--font-gilroy);
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: var(--color-text-white);
  margin-bottom: 16px;
}
.step-content p {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 15.6px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  width: 100%;
  max-width: 100%;
}

.video-placeholder {
  width: 896.4px;
  height: 505.6px;
  border-radius: 12px; /* Less rounded */
  box-shadow: 0 0 100px rgba(10, 79, 122, 1); /* Stronger blue glow */
  margin: 0 auto 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden; /* Essential for clipping the iframe corners */
}

/* CSS Play Button */
.play-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid white;
  margin-left: 4px;
}
.video-placeholder:hover .play-icon {
    background: rgba(255,255,255, 1);
}
.video-placeholder:hover .play-icon::after {
    border-left-color: var(--color-bg-dark);
}

/* --- Value Proposition (New Section) --- */
.new-section {
  background-color: #eefbff;
  padding: 100px var(--container-padding);
  text-align: left;
  color: var(--color-bg-dark);
}

.value-title {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 42px;
  line-height: 52px;
  margin-bottom: 60px;
  text-align: center;
}

.value-content {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 28px;
}
.value-content p {
  margin-bottom: 16px;
}
.value-content .mt-large {
  margin-top: 40px;
}

/* --- Led By --- */
.led-by-section {
  min-height: 730px;
  height: auto;
  background-color: var(--color-bg-light);
  padding: 100px var(--container-padding);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

  #about {
    padding-bottom: 0px;
    margin-bottom: -1px;
  }

.led-content {
  flex: 1;
  min-width: 300px;
  max-width: 630px;
}

.led-title {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 42px;
  line-height: 44px;
  color: var(--color-accent-blue);
  margin-bottom: 40px;
}

.led-text {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 19.5px;
  line-height: 32px;
  color: var(--color-bg-dark);
} 
.led-text p { margin-bottom: 24px; }
.led-text p:first-child { font-weight: 700; }

.adam-img {
  position: relative;
  width: 482px;
  height: auto;
  flex-shrink: 0;
  margin-left: auto;
  top: auto;
  left: auto;
}
.adam-img img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; transform: scaleX(-1); }

/* --- Footer --- */
.site-footer {
  /* height: 443px; Removed to prevent overflow */
  background-color: var(--color-bg-dark);
  text-align: center;
  padding-top: 128px;
  padding-bottom: 60px;
  color: var(--color-text-white);
}

.footer-cta {
  font-family: var(--font-inter);
  font-weight: 600; /* Semi Bold */
  font-size: 30.1px;
  line-height: 48px;
  margin-bottom: 24px;
}

.footer-mail {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 22.9px;
  line-height: 36px;
  color: var(--color-accent-light-blue);
  text-decoration: underline;
  margin-bottom: 83px; /* relative to container top? Spec says Top 83px of container? No, probably flow. Let's add spacing */
  display: inline-block;
}

.copyright {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 13.4px;
  line-height: 21.6px;
  opacity: 0.5;
}

/* --- Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

  /* Target the element itself since it has both classes */
.copyright.fade-in-up.is-visible {
  opacity: 0.5 !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Cascade for particles or specific lists if needed, but JS intersection observer is better for methodology */
.step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */

/* --- Loader / Spinner --- */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--color-accent-blue);
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.work-video-wrapper {
    position: relative; /* Ensure relative for absolute loader */
}

.work-video-wrapper.loading .loader {
    opacity: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.vp-title, .vp-sidedock { display: none !important; opacity: 0 !important; }
.vp-sidedock, .SideDock_module_sidedockInner__eeb5e08f { display: none !important; opacity: 0 !important; }
@media screen and (max-width: 1024px) {
  :root {
    --container-padding: 60px;
  }
  
  .hero-title {
    font-size: 80px;
    line-height: 1.1;
  }
  
  .glass-word {
    font-size: 82px;
  }
  
  .applied-card {
    width: 320px;
  }
  
  .cards-container {
    gap: 40px;
  }

  /* Responsive Logo for Tablet */
  .logo {
      gap: 10px;
  }
  .logo img {
      height: 28px;
  }
  .logo span {
      font-size: 20px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --container-padding: 24px;
    --header-height: auto;
  }

  /* Header */
  .site-header {
    height: auto;
    min-height: 60px; /* Ensure bar height */
    padding: 20px var(--container-padding);
    flex-direction: row; /* Keep row for logo + burger */
    align-items: center;
    justify-content: space-between;
    background: rgba(238, 251, 255, 0.95);
  }
  
  .logo {
    margin-left: 0;
    margin-bottom: 0;
  }

  /* Burger Menu */
  .hamburger {
      display: flex; /* Flex to stack spans */
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      z-index: 1001; /* Above nav */
      padding: 0;
  }
  .hamburger span {
      display: block;
      width: 100%;
      height: 2px;
      background-color: var(--color-bg-dark);
      border-radius: 2px;
      transition: all 0.3s ease;
  }
  
  /* Mobile Nav Overlay */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(238, 251, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Slide out */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding-bottom: 0;
  }
  
  .site-nav.active {
      transform: translateX(0);
  }
  
  .nav-item {
      font-size: 24px;
      margin-bottom: 30px;
  }
  
  /* Hamburger Animation */
  body.nav-open .hamburger span:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
  }
  body.nav-open .hamburger span:nth-child(2) {
      opacity: 0;
  }
  body.nav-open .hamburger span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Hero */
  .hero-section {
    padding-top: 140px;
    min-height: auto;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
  }
  
  .glass-word {
    font-size: 44px;
    -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.7);
  }
  
  .hero-bg-video {
    height: 100vh;
  }
  
  .hero-logos {
      flex-wrap: wrap;
      margin-bottom: 40px;
      gap: 30px;
      width: 100%;
  }
  .hero-logos img {
      height: 80px;
  }
  
  .hero-cta-group {
      flex-direction: column;
      width: 100%;
      align-items: center;
  }
  .hero-cta-group .btn {
      width: 100%;
      max-width: 270px;
  }

  /* Applied */
  .applied-section {
      padding-top: 80px;
      padding-bottom: 80px;
  }
  
  .applied-title {
      font-size: 22px;
      margin-bottom: 40px;
  }

  .cards-container {
      flex-direction: column;
      align-items: center;
      gap: 30px;
  }
  
  .applied-card {
      width: 100%;
      max-width: 100%;
      height: auto;
      min-height: 400px;
  }
  
  .applied-card .btn {
      position: relative;
      bottom: auto;
      left: auto;
      transform: none;
      margin-top: 40px;
      align-self: center; /* Flex center */
      width: 100%;
      margin-left: 0;
  }

  /* Selected Work */
  .work-section {
      padding-top: 0px; /* User set to 0px */
      padding-bottom: 80px;
      min-height: 650px;
  }
  
  .work-title {
      position: relative;
      top: auto;
      left: auto;
      margin-bottom: 40px;
      text-align: center;
      font-size: 32px;
      margin-top: 60px; /* Add some top margin since padding is 0 */
  }
  
  .carousel-container {
      margin-top: 0;
      gap: 20px;
      padding-bottom: 0;
      margin-bottom: 30px; /* Space between content and controls */
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: none; /* Firefox */
  }
  .carousel-container::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
  }
  
  /* 16:9 ratio for Video, but Item needs auto height for text */
  .work-item {
      width: 75vw;
      height: auto; 
      display: flex;
      flex-direction: column;
      scroll-snap-align: center;
  }
  /* Force video wrapper aspect ratio if needed, or rely on content */
  .work-item .work-video-wrapper {
      height: 45vw; /* maintain aspect ratio approx */
      width: 100%;
  }

  /* Wrapper needs padding for absolute arrows */
  .slideshow-wrapper {
      position: relative;
      padding-bottom: 80px; /* Reserve space for arrows at bottom */
  }

  /* Arrows below content */
  .arrow {
      display: none;
  }

  .arrow:active {
      transform: scale(0.95);
  }

  /* Position arrows at bottom corners with some inset */
  .arrow.prev {
      left: 20px;
  }
  .arrow.next {
      right: 200px;
  }
  
  /* Adjust indicators to sit between arrows */
  .carousel-indicators {
      bottom: 14px; /* Center align with 48px arrows vertically */
  }
  
  /* Methodology */
  .methodology-section {
      padding-top: 80px;
      padding-bottom: 80px;
  }
  
  .methodology-title {
      font-size: 32px;
      margin-bottom: 60px;
  }
  
  .divider {
      display: none;
  }
  
  .steps-container {
      flex-direction: column;
      gap: 40px;
  }
  
  .step {
      width: 100%;
      display: flex;
      flex-direction: column;
      /* align-items: center;
      text-align: center; */
  }
  
  .video-placeholder {
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9; /* Force 16:9 */
      margin-top: 0;
      margin-bottom: 60px;
  }
  
  /* Led By */
  .led-by-section {
      padding-top: 80px;
      padding-bottom: 80px;
      flex-direction: column;
      gap: 60px;
      text-align: left; /* Left align requested */
      align-items: flex-start; /* Align flex items to start */
  }

  
  .led-title {
      font-size: 32px;
      margin-bottom: 20px;
      text-align: left;
  }
  
  .led-content {
      max-width: 100%;
      text-align: left;
  }
  
  .adam-img {
      width: 100%;
      margin: 0;
  }

  .adam-img img {
      transform: scaleX(1);
  }
  
  /* Footer */
  .site-footer {
      height: auto;
      padding-top: 80px;
      padding-bottom: 60px;
  }
  
  .footer-cta {
      font-size: 16px;
      line-height: 1.4;
  }
  
  .footer-mail {
      font-size: 18px;
      margin-bottom: 60px;
  }

  .value-title {

  font-size: 28px;
  line-height: 42px;

}
}


@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1.1px;
    }
    .glass-word {
        font-size: 38px;
    }
    
    .work-item {
        width: 75vw;
        height: 75vw; 
    }
}

/* --- Legal Pages --- */
.legal-section {
    padding-top: 180px; /* Header space */
    padding-bottom: 100px;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    min-height: 80vh; 
    color: var(--color-bg-dark);
    max-width: 900px; 
    margin: 0 auto;
    position: relative;
}

.legal-section .legal-title {
    font-family: var(--font-gilroy);
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 60px;
    color: var(--color-bg-dark);
}

.legal-content h2 {
    font-family: var(--font-gilroy);
    font-weight: 700;
    font-size: 24px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--color-bg-dark);
}

.legal-content p, 
.legal-content li {
    font-family: var(--font-inter);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
    color: rgba(10, 10, 10, 0.85);
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content strong {
    font-weight: 600;
    color: var(--color-bg-dark);
}

/* Footer Links Adjustment */
.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.footer-legal-links a {
    font-family: var(--font-inter);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--color-accent-light-blue);
    opacity: 0.6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    color: var(--color-text-white);
}

@media screen and (max-width: 768px) {
    .legal-section {
        padding-top: 120px;
    }
    .legal-section .legal-title {
        font-size: 36px;
    }
    .footer-legal-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* --- Footer Credit --- */
.footer-credit {
    font-family: var(--font-inter);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}
.footer-credit a {
    color: var(--color-accent-light-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-credit a:hover {
    color: var(--color-text-white);
    text-decoration: underline;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(238, 251, 255, 0.8); /* Matched to header */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-bg-dark);
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); /* Kept shadow direction but subtle */
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: all 0.4s ease;
    border-top: 0.8px solid rgba(255, 255, 255, 0.3); /* Matched border style */
    display: flex;
    justify-content: center;
}

.cookie-banner.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px; /* Match standard max-width if any, or just keep contained */
    gap: 20px;
}

.cookie-content p {
    font-family: var(--font-inter);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0; /* Remove bottom margin for inline */
    margin-right: auto; /* Push actions to right */
    color: rgba(10, 10, 10, 0.8);
}

.cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-cookie {
    padding: 6px 14px;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cookie-primary {
    background-color: var(--color-bg-dark);
    color: #fff;
}
.btn-cookie-primary:hover {
    background-color: #000;
}

.btn-cookie-secondary {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-bg-dark);
}
.btn-cookie-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cookie-content p {
        margin-right: 0;
        font-size: 12px;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}


/* --- Background Texture for Blue Sections --- */
/* Applied to sections with var(--color-bg-dark) */
.applied-section,
.methodology-section,
.site-footer {
    position: relative;
    isolation: isolate; /* Create a stacking context so ::before can be z-index: -1 but above background color */
}

.applied-section::before,
.methodology-section::before,
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0; /* Top/Left/Right/Bottom: 0 */
    background-image: url('assets/blurry_bg_section_cosmotion.png');
    background-size: cover;
    background-position: center;
    opacity: 1; /* Opacity 50% */
    mix-blend-mode: overlay; /* Incrustation */
    z-index: -1; /* Place behind content, but above background-color (due to stacking context + order) */
    pointer-events: none;
}

