/* Import global styles */
@import url('../main.css');
/* Yuji Boku font */
@import url('https://fonts.googleapis.com/css2?family=Yuji+Boku&display=swap');

body {
  background-color: var(--color-background-dark);
}

button, a{
  font-family: var(--font-family-base);
  cursor: pointer;
}

/* =============================== */
/* Header Layout                   */
/* =============================== */

.header-company {
  position: relative;
  padding: 0 var(--spacing-6xl);
}

/* Main Container */
/* Large Desktop (1920px and above) */
@media (min-width: 1921px) {
  .company-banner,
  .company-main-container {
    max-width: 1920px;
    margin: 0 auto !important;
    transition: .6s all;
    width: auto;
  }
}

.company-main-container {
  margin-bottom: 100px;
  gap: var(--spacing-9xl);
  display: flex;
  flex-direction: column;

  margin-bottom: var(--spacing-9xl) !important;
}

/* Banner */
.company-banner {
  height: 500px;
  min-height: 320px;
  padding: 48px 0;
  margin: 0 var(--spacing-3xl); /* 30px + the padding of the header */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  animation: bannerAccentPulse 3.5s ease-out forwards;
}
.company-banner::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%,
      rgba(1, 107, 255, 0.28) 0%,
      rgba(1, 107, 255, 0.14) 40%,
      rgba(1, 107, 255, 0.05) 68%,
      rgba(1, 107, 255, 0) 100%);
  filter: blur(18px);
  opacity: 0;
  animation: bannerAccentGlow 3.5s ease-out forwards;
}
.company-banner__content {
  position: relative;
  z-index: 1;
}
.company-banner__content h1 {
  color: var(--color-accent);
  text-align: center;
  font-size: 76px;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: 0.76px;
  text-decoration-line: line-through;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.company-banner__content h3 {
  color: var(--color-accent);
  text-align: center;
  font-size: 28px;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  letter-spacing: 1.96px;
}

@keyframes bannerAccentPulse {
  0% {
    box-shadow: 0 0 0 rgba(1, 107, 255, 0);
    transform: translateY(0);
  }
  25% {
    box-shadow: 0 12px 30px rgba(1, 107, 255, 0.18);
    transform: translateY(-3px);
  }
  60% {
    box-shadow: 0 8px 24px rgba(1, 107, 255, 0.12);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: none;
    transform: translateY(0);
  }
}

@keyframes bannerAccentGlow {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  30% {
    opacity: 0.55;
    transform: scale(1);
  }
  70% {
    opacity: 0.25;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}


.company-story {
  margin: var(--spacing-9xl) var(--spacing-9xl) 0 ;
}
/* Story */

.company-story__signature-img,
.company-story__quote {
  width: 425px;
}

.company-story__text {
  flex: 1;
}

/* Signature */
.company-story__signature {
  position: relative;
  display: inline-block;
}

.company-story__signature-img {
  position: relative;
  z-index: 1;
  width: 425px;
  height: 258px;
}

.company-story__signature-text {
  position: absolute;
  transform: rotate(-6.391deg);
  color: var(--color-primary);
  text-align: center;
  font-family: "Yuji Boku";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.2px;
  z-index: 2;
  white-space: nowrap;
}

/* Photo */
.company-story__photo {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
}

/* Timeline */
.company-timeline {
  margin: 0 var(--spacing-9xl);
}

.company-charte {
  margin: 0 var(--spacing-9xl);
}

.company-charte__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.company-charte__item {
  flex: 1 1 20%;
  min-width: 260px;
  padding: 0 var(--spacing-4xl);
  min-height: 220px;
}

.company-charte__item:last-child {
  border-right: none;
}

.company-charte__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
}

.company-charte__label {
  text-transform: none;
}

.company-timeline__item {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
  padding: var(--spacing-xl);
}

.company-charte__item.company-timeline__item {
  padding: 0 var(--spacing-4xl);
}

.company-timeline__list > .separator.vertical {
    min-height: auto;
}

.company-timeline__icon {
  width: 58px;
  height: 58px;
}

.company-timeline__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Missions */
.company-missions {
  margin: 0 var(--spacing-9xl);
  text-align: center;
}

.company-missions__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.company-missions__card {
  background: var(--color-background-dark);
  flex: 1 1 30%;
  min-width: 300px;
}

.company-missions__image {
  width: 100%;
  height: 274px;
  object-fit: cover;
}

/* Responsive Layouts for Missions */
.desktop-layout { display: block; }
.tablet-layout { display: none; }
.mobile-layout { display: none; }

.separator {
  background-color: var(--color-accent);
  flex-shrink: 0;
  border-radius: 6px;
}
.separator.vertical {
  width: 2px;
  min-height: 250px;
  align-self: stretch;
}
.separator.vertical.separator-not-100 {
  height: 200px;
}
.separator.horizontal {
  height: 2px;
  width: 100%;
  margin: 16px 0;
}

/* Photo Archive */
.company-photo-archive {
  margin: 0 var(--spacing-9xl);
}

.company-photo-archive .about-artist__gallery-wrapper {
  width: 100%;
}

.company-photo-archive .separator-artist__gallery {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-accent);
}

.company-photo-archive .about-artist__gallery {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: calc(100% + (var(--spacing-9xl) * 2));
  margin-left: calc(-1 * var(--spacing-9xl));
}

.company-photo-archive .about-artist__gallery-track {
  display: flex;
  gap: var(--spacing-xl);
  min-width: max-content;
}

.company-photo-archive .about-artist__gallery-item {
  flex: 0 0 auto;
  width: 680px;
  height: 450px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.company-photo-archive .about-artist__gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  border-radius: inherit;
}

.company-photo-archive .about-artist__gallery::-webkit-scrollbar {
  height: 0;
}

.company-photo-archive .about-artist__gallery::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Custom Scrollbar Container with padding */
.company-photo-archive__scrollbar-container {
  width: 100%;
}

.company-photo-archive__scrollbar {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
  cursor: pointer;
}

.company-photo-archive__scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.company-photo-archive__scrollbar:hover .company-photo-archive__scrollbar-thumb {
  background-color: var(--color-primary-hover);
}

/* Values */
.company-values {
  margin: var(--spacing-3xl) var(--spacing-9xl) 0;
  text-align: center;
}

.company-values__card {
  position: relative;
  flex: 1 1 45%;
  min-width: 350px;
  background: var(--color-background-dark);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 212px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.company-values__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 1;
}
.company-values__bg--1 { background-image: url('../../assets/img/values/1.png'); background-position: top right; }
.company-values__bg--2 { background-image: url('../../assets/img/values/2.png'); background-position: top left; }
.company-values__bg--3 { background-image: url('../../assets/img/values/3.png'); background-position: top right; }
.company-values__bg--4 { background-image: url('../../assets/img/values/4.png'); background-position: top left; }

.company-values__content {
  position: relative;
  z-index: 1;
  text-align: left;
}

.company-values__desc {
  text-align: left;
  width: 80%;
}

.company-values__card .text-end {
  text-align: right !important;
}

/* Hero */
.company-hero {
  margin: 0 var(--spacing-9xl);
  position: relative;
  min-height: 350px;
}

.company-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.50) 100%), url('/assets/img/about/b6790d4deddc681062327416ffbd7f3715362aa9.jpg') center/cover no-repeat;
  mix-blend-mode: luminosity;
  z-index: 1;
}

.company-hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-8xl) var(--spacing-xl);
}

.company-hero__desc {
  max-width: 700px;
}

.company-hero__btn {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  width: max-content;
}
.company-hero__btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Showcase */
.company-showcase {
  margin: 0 var(--spacing-9xl);
}

.company-showcase__subtitle {
  color: var(--color-secondary-alt);
  max-width: 800px;
  margin: 0 auto;
}

/* Video Container */
.company-showcase__video-container {
  position: relative;
  width: 100%;
  height: 70vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.company-showcase__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Video Controls */
.company-showcase__video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.company-showcase__video-container:hover .company-showcase__video-controls {
  opacity: 0;
}

.company-showcase__video-container.video-played:hover .company-showcase__video-controls {
  opacity: 1;
}

/* Progress Bar */
.company-showcase__progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 15px;
}

.company-showcase__progress-filled {
  height: 100%;
  background: #B6BED7;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

/* Controls Layout */
.company-showcase__controls-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company-showcase__controls-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.company-showcase__controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Play/Pause Button */
.company-showcase__play-pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.company-showcase__play-pause-btn:hover {
  transform: scale(1.1);
}

.company-showcase__play-pause-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Time Display */
.company-showcase__time {
  color: #B6BED7;
  font-size: 14px;
  font-weight: 500;
}

/* Volume Control */
.company-showcase__volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-showcase__volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.company-showcase__volume-btn:hover {
  transform: scale(1.1);
}

.company-showcase__volume-slider {
  width: 80px;
  display: none;
  transition: display 0.3s ease;
}

.company-showcase__volume-control:hover .company-showcase__volume-slider {
  display: none;
}

.company-showcase__volume-range {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.company-showcase__volume-range::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #B6BED7;
  border-radius: 50%;
  cursor: pointer;
}

.company-showcase__volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #B6BED7;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Fullscreen Button */
.company-showcase__fullscreen-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.company-showcase__fullscreen-btn:hover {
  transform: scale(1.1);
}

.company-showcase__fullscreen-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Initial Play Button Overlay */
.company-showcase__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../../assets/img/about/fcbb1917bf2881d14d2062d040200c1eb8f9f2c0.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.company-showcase__video-overlay:hover {
  opacity: 0.9;
}

.company-showcase__play-btn {
  background: rgba(14, 17, 24, 0.75);
  width: 155px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.company-showcase__play-btn:hover {
  transform: scale(1.05);
  background: rgba(14, 17, 24, 0.85);
}

.company-showcase__play-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* INFINITE TEXT SLIDER */

.company-partners-slider {
  padding-block: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(to right, transparent 20% 80%, #000, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000, transparent);
}

.company-partners-slider__container .separator {
  margin: 0 var(--spacing-9xl);
  width: auto !important;
}

.company-partners-slider__list {
  display: flex;
  width: calc(339px * 10 * 2); /* Double the width for seamless looping */
  gap: calc(339px / 4);
  animation: autoScroll 20s linear infinite;
  will-change: transform;
}

.company-partners-slider__list:hover {
  animation-play-state: paused !important;
}

.company-partners-slider__item {
  width: 339px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s ease;
}

.company-partners-slider__text {
  color: var(--color-support-alt);
  text-transform: uppercase;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.company-partners-slider:hover .company-partners-slider__text {
  opacity: 0.6;
  color: #8A94A8;
}

.company-partners-slider .company-partners-slider__item:hover .company-partners-slider__text {
  opacity: 1;
  color: var(--color-secondary-alt);
  transform: scale(1.02);
}

@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * 339px * 10));
  }
}

/* Call to Action */
.company-cta {
  margin: 0 var(--spacing-9xl);
  position: relative;
}

.company-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('../../assets/img/about/44f6273b1ea4145c4714bb75bc0ce8ec0509efa2.png') center/cover no-repeat;
  z-index: 1;
}

.company-cta__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  width: 100%;
  padding: var(--spacing-5xl);
}

.company-cta__desc {
  max-width: 70%;
  margin: 0 auto;
}

/* Buttons */
.company-cta__btn {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.company-cta__btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.company-cta__btn--outline:hover {
  background: rgba(255,255,255,0.1);
}

/* Ideas Call to Action Section */
.company-ideas-cta {
  margin: 0 var(--spacing-9xl);
  position: relative;
}

.company-ideas-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('../../assets/img/other/Rectangle 1394.png') center/cover no-repeat;
  z-index: 1;
}

.company-ideas-cta__content {
  position: relative;
  z-index: 2;
  width: 50%;
  min-width: 700px;
  padding: var(--spacing-5xl);
  text-align: left;
}

/* Impact */
.company-impact {
  margin: var(--spacing-9xl) var(--spacing-9xl) 0; /* First Section + 80px in the top(margin) */
  text-align: center;
}

.company-impact__card {
  flex: 1 1 45%;
  transition: transform 0.3s ease;
}


.company-impact__card-icon-img {
  width: 220px;
  height: 181px;
  object-fit: contain;
}

.company-impact__card-content {
  flex: 1;
  text-align: left;
}

.company-impact .separator.vertical {
  min-height: auto;
}

.company-impact__card-link {
  transition: color 0.3s ease;
}

/* Horizons Section */
.company-horizons {
  margin: 0 var(--spacing-9xl);
}

.company-horizons__right-card {
  flex: 1;
}

.company-horizons__left-card {
  max-width: 550px;
}

.company-horizons__image-container {
  flex: 0 1 50%;
}
.company-horizons__content {
  flex: 0 1 50%;
  gap: var(--spacing-xxl);
}

.company-horizons__image {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}

/* Simple fade animation for right card only */
[data-company-horizons] .company-horizons__right-card {
  transition: opacity 0.3s ease;
}

[data-company-horizons].is-switching .company-horizons__right-card {
  opacity: 0.3;
}

[data-company-horizons] .company-horizons__navigation .btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-company-horizons] .company-horizons__navigation .btn:active {
  transform: scale(0.96);
}


/* Impact Hero Section */
.company-impact-hero {
  margin: 0 var(--spacing-9xl);
  position: relative;
  height: 584px;
}

.company-impact-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%), url('../../assets/img/about/cd4935f47073deaa8685989b1eb63a65b8ad3c33.jpg') center/cover no-repeat, #016BFF;
  z-index: 1;
}

.company-impact-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  justify-content: center;
  padding: var(--spacing-8xl) var(--spacing-xl);
}

.company-impact-hero__text-overlay {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: 1200px;
  width: 100%;
}

.company-impact-hero__line {
  font-size: 66px;
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  letter-spacing: 0.66px;
  text-align: center;
}

.company-impact-hero__line--white {
  color: var(--color-secondary-alt);
}

.company-impact-hero__line--blue {
  color: var(--color-primary);
}

/* Immersive Scroll Section */
.company-immersive-section {
  position: relative;
  height: 739px;
  overflow: hidden;
  background: var(--color-secondary);
}

.company-immersive__content {
  position: relative;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.company-immersive__item {
  height: 739px;
  display: flex;
  align-items: center;
}

.company-immersive.eco-immersive-section .company-immersive__item {
    flex-direction: row-reverse;
}
.company-immersive .company-immersive-section#ecoImmersiveSection .company-immersive__text {
    padding-right: calc( var(--spacing-9xl) + var(--spacing-3xl) ); /* 80px + 30px = 110px */
}
.company-immersive .company-immersive-section#companyImmersiveSection .company-immersive__text {
    padding-left: calc( var(--spacing-9xl) + var(--spacing-3xl) ); /* 80px + 30px = 110px */
}

.company-immersive__text {
  width: 50%;
  padding: var(--spacing-3xl) var(--spacing-6xl) var(--spacing-3xl) var(--spacing-6xl);
}

/*  */
.company-immersive__image {
  width: 50%;
}

.company-immersive__image img {
  max-width: 100%;
  max-height: 739px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  margin: 0 auto;
}

.company-immersive__scrollbar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 659px;
  background: var(--color-accent);
  border-radius: 2px;
  z-index: 10;
  overflow: hidden;
  animation: scrollbarPulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

@keyframes scrollbarPulse {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 0 rgba(1, 107, 255, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(1, 107, 255, 0.3);
  }
}

.company-immersive__scrollbar:hover {
  width: 2px;
  background: rgba(1, 107, 255, 0.2);
  box-shadow: 0 0 12px rgba(1, 107, 255, 0.4);
}

.company-immersive__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, #016BFF, #0056CC);
  border-radius: 2px;
  transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 10px rgba(1, 107, 255, 0.6);
  height: 0%;
}

.company-immersive__indicator {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-40%);
  color: #016BFF;
  font-size: 1.2rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.company-immersive__indicator.is-visible {
  opacity: 0.8;
  transform: translateY(-50%);
}

.company-immersive__indicator.is-hidden {
  opacity: 0;
  transform: translateY(-30%);
}

.company-immersive-section.scrolling .company-immersive__indicator {
  opacity: 0;
  transform: translateY(-30%);
}

/*  */

.platform-availability {
  margin: 0 var(--spacing-9xl);
}

.world-map > svg {
  width: 100% !important;
  height: 400px !important;
}

.world-map {
  position: relative;
  border-radius: 10px;
}
.world-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, #0E1118 0%, rgba(14, 17, 24, 0.20) 20%, rgba(14, 17, 24, 0.00) 50%, rgba(14, 17, 24, 0.20) 70%, #0E1118 100%);

  z-index: 2;
}

.world-map__stats {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: calc(100% - var(--spacing-3xl) - var(--spacing-3xl));
  margin: var(--spacing-3xl);
  z-index: 10;
  background: rgba(0, 0, 0, 0.50);
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(5px);
}

.world-map__stat-dot {
  width: 12px;
  height: 6px;
  background: #016BFF;
  flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
  margin: var(--spacing-9xl) var(--spacing-9xl) 0;
}

.testimonials__container {
  height: calc(100vh - 200px);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

/* Animation continue verticale */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: absolute;
  width: 100%;
  will-change: transform;
  animation: scrollUp 60s linear infinite;
}

/* Pause animation au survol */
.testimonials__container:hover .testimonials__grid {
  animation-play-state: paused;
}

/* Effets visuels de flou en haut et bas */
.testimonials__container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  z-index: 2;
  pointer-events: none;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/* Testimonial Card */
.testimonial-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease-in-out;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeIn 0.5s forwards;
}

/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenu */
.testimonial-card__image {
  object-fit: cover;
}

.testimonial-card__content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
}

.testimonial-card__toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -25px;
  z-index: 3;
}

.testimonial-card__toggle-raduis {
    position: absolute;
    display: flex;
    left: 50%;
    transform: translateX(-50%);
    top: -9.5px; /* the height of the Curve - 0.5px for the broser crush !! */
    z-index: 3;
}
.testimonial-card__toggle-raduis-square {
    display: flex;
    width: 10px;
    height: 10px;
    background-color: transparent;
}
.testimonial-card__toggle-raduis-square:nth-of-type(2) {
    width: 50px;
}
.testimonial-card__toggle-raduis-square:nth-of-type(1) svg {
    transform: rotate(90deg) translateY(-3px);
}
.testimonial-card__toggle-raduis-square:nth-of-type(3) svg {
    transform: rotate(180deg) translateX(3px);
}

/* Détails masqués/visibles */
.testimonial-card__details {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.testimonial-card__details--visible {
  max-height: 310px;
  opacity: 1;
  visibility: visible;
}

/* Section rating masquée/visible */
.testimonial-card__rating {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.testimonial-card__rating--hidden {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

/* Trust Section */
.company-trust {
  margin: var(--spacing-9xl) var(--spacing-9xl) 0;
}

.company-trust__content {
  max-width: 810px;
}

/* Feedback */
.company-feedback-container {
  margin: 0 var(--spacing-9xl);
}

.company-feedback__card,
.company-feedback__images,
.company-feedback__img-card {
  flex: 1;
}

.company-feedback__card {
  flex: 1 1 55%;
  min-width: 0;
}

.company-feedback__actions {
  flex-wrap: wrap;
}

.company-feedback__actions .btn {
  flex: 0 1 auto;
  min-width: 220px;
}

.company-feedback__images {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-3xl);
}

.company-feedback__img-card {
  min-height: 260px;
}

/* company - 21 */
.company-hero--21 {
  margin: 0 var(--spacing-9xl);
  height: 450px;
}
.company-hero--21__img-left {
  width: 40px;
  object-fit: cover;
  border-top-left-radius: var(--border-radius-md);
  border-bottom-left-radius: var(--border-radius-md);
}
.company-hero--21__content {
  flex: 1;
  padding: 0 var(--spacing-9xl);
}
.company-hero--21__desc {
  max-width: 820px;
}
.company-hero--21__img-right {
  width: 460px; /* The normal is 450px but we need to add 10px for the beauty */
  object-fit: cover;
  border-top-right-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
}

/* Light mode: Change image 2.png to 3.png */
[data-theme="light"] .company-hero--21__img-right {
  content: url('/assets/img/starry night/3.png');
}

/* Press Section */
.company-press {
  margin: 0 var(--spacing-9xl);
}
.company-press__card {
    flex: 1;
}
.company-press__card-header {
  height: 170px;
}
.company-press__logo {
  height: 48px;
}
.company-press__card-body {
  min-height: 255px;
  height: -webkit-fill-available;
  padding-bottom: 15px !important;
}
.company-press__footer {
  border-top: 1px solid var(--color-accent);
}

/* Latter Section */
.newsletter-banner {
  position: relative;
  padding: var(--spacing-5xl);
  margin: 0 var(--spacing-9xl);
  place-items: end;
}

.newsletter-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('../../assets/img/other/Group 74.png') center / cover no-repeat;
  z-index: 1;
}

.newsletter-banner__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.30));
}
.newsletter-banner__icon {
  left: 16px;
  right: auto;
}

.newsletter-banner__btn {
  width: 86px;
}

/* company story banner */
.company-cta__bg.join-us__bg {
  background: url('../../assets/img/other/s.png') center / cover no-repeat;
}

/* company about grid a21 */
.about-a21 {
  margin: var(--spacing-9xl) var(--spacing-9xl) 0;
}

.about-a21__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 220px);

  gap: var(--spacing-xl);
}

.about-a21__card {
  border-radius: var(--border-radius-md);
}

.about-a21__card-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.about-a21__card-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.about-a21__card-3 { grid-column: 3 / 4; grid-row: 1 / 3; }
.about-a21__card-4 { grid-column: 4 / 4; grid-row: 1 / 3; }
.about-a21__card-5 { grid-column: 1 / 2; grid-row: 2 / 3; }
.about-a21__card-6 { grid-column: 2 / 3; grid-row: 2 / 3; }
.about-a21__card-7 { grid-column: 1 / 2; grid-row: 3 / 5; }
.about-a21__card-8 { grid-column: 2 / 4; grid-row: 3 / 5; }
.about-a21__card-9 { grid-column: 4 / 5; grid-row: 3 / 4; }
.about-a21__card-10 {grid-column: 4 / 5; grid-row: 4 / 5; }

.about-a21__img {
  object-fit: cover;
}

/* Text card specific styles */
.about-a21__card--text {
    overflow: hidden;
}
.about-a21__card--text {
    position: relative;
}
.about-a21__card--text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-a21__card--text.about-a21__card--general p {
  line-clamp: 7;
  -webkit-line-clamp: 7;
}
.about-a21__card--text.about-a21__card--philosophy p {
  line-clamp: 16;
  -webkit-line-clamp: 16;
}
.about-a21__card--text.about-a21__card--impact-social p {
  line-clamp: 16;
  -webkit-line-clamp: 16;
}

/* Gallery kit */
.kit-gallery {
  margin: var(--spacing-9xl) var(--spacing-9xl) 0;
}
.kit-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 220px);
  gap: var(--spacing-xl);
}

.kit-gallery__item {
  border-radius: var(--border-radius-md);
}

.kit-gallery__item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.kit-gallery__item-2 { grid-column: 3 / 4; grid-row: 1 / 3; }
.kit-gallery__item-3 { grid-column: 4 / 4; grid-row: 1 / 2; }
.kit-gallery__item-4 { grid-column: 4 / 4; grid-row: 2 / 3; }
.kit-gallery__item-5 { grid-column: 1 / 2; grid-row: 3 / 5; }
.kit-gallery__item-6 { grid-column: 2 / 3; grid-row: 3 / 4; }
.kit-gallery__item-7 { grid-column: 2 / 3; grid-row: 4 / 5; }
.kit-gallery__item-8 { grid-column: 3 / 5; grid-row: 3 / 5; }
.kit-gallery__item-9 { grid-column: 1 / 4; grid-row: 5 / 7; }
.kit-gallery__item-10 {grid-column: 4 / 5; grid-row: 5 / 7; }

.kit-gallery__img {
  object-fit: cover;
}

/* Products kit */
.kit-products {
  margin: 0 var(--spacing-9xl);
}

.kit-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.kit-product {
  background: var(--color-accent);
  border-radius: var(--border-radius-md);
  /* for demo: */
  aspect-ratio: 1 / 1;
}

.kit-product-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.kit-product-2 { grid-column: 3 / span 1; grid-row: 1 / span 1; }
.kit-product-3 { grid-column: 4 / span 1; grid-row: 1 / span 1; }
.kit-product-4 { grid-column: 3 / span 1; grid-row: 2 / span 1; }
.kit-product-5 { grid-column: 4 / span 1; grid-row: 2 / span 1; }
.kit-product-6 { grid-column: 1 / span 1; grid-row: 3 / span 1; }
.kit-product-7 { grid-column: 2 / span 1; grid-row: 3 / span 1; }
.kit-product-8 { grid-column: 3 / span 2; grid-row: 3 / span 1; aspect-ratio: auto; } /* not squer  */

/* Cartes cadeaux kit */
.kit-giftcards {
  margin: 0 var(--spacing-9xl);
}
.kit-giftcards__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: var(--spacing-xl);
}
.kit-giftcard {
  background: var(--color-accent);
  border-radius: var(--border-radius-md);
  width: 100%;
  height: 100%;
}
.kit-giftcard-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.kit-giftcard-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.kit-giftcard-3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.kit-giftcard-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.kit-giftcard-5 { grid-column: 3 / 4; grid-row: 2 / 3; }

/* Colors pallet kit */
.kit-palettecolors {
  margin: 0 var(--spacing-9xl);
}

.kit-palettecolor__item.icyplains {
  background: var(--color-accent-alt);
}

.kit-palettecolors__artwork,
.kit-palettecolors__list {
  flex: 1;
}

.kit-palettecolors__item__double .kit-palettecolor__item {
  flex: 1;
  min-width: 290px;
}

.kit-palettecolors__artwork {
    background: linear-gradient(0deg, rgba(14, 17, 24, 0.50) 0%, rgba(0, 0, 0, 0.00) 100%), url('../../assets/img/other/08bf1aae9c6f911d0b4f4eae6d40ceee58631cd9.png') lightgray -18.867px -28.14px / 104.819% 109.222% no-repeat;
    /* background-size: cover; */
    background-position: center;
}

/* Logo kit */
.kit-logos {
  margin: 0 var(--spacing-9xl);
}
.kit-logos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: var(--spacing-xl);
}

.kit-logo {
  border-radius: var(--border-radius-md);
}

.kit-logo-1 { grid-column: 1; grid-row: 1; }
.kit-logo-2 { grid-column: 2 / 4; grid-row: 1; }
.kit-logo-3 { grid-column: 4; grid-row: 1; }
.kit-logo-4 { grid-column: 1; grid-row: 2; }
.kit-logo-5 { grid-column: 2 / 4; grid-row: 2; }
.kit-logo-6 { grid-column: 4; grid-row: 2; }

/* Logos Group */
.logos-group__logo ,
.logos-group__icon {
  display: grid;
  grid-template-columns: 1fr, 1fr;
  grid-template-rows: 1fr, 1fr;
  gap: var(--spacing-xl);
}

.logos-group__icon--img img {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}

.logos-group__icon--img-1 { grid-column: 1; grid-row: 1; }
.logos-group__icon--img-2 { grid-column: 2; grid-row: 1; }
.logos-group__icon--img-3 { grid-column: 1; grid-row: 2; }
.logos-group__icon--img-4 { grid-column: 2; grid-row: 2; }

/*  Logos Group */

.kit-logo.kit-logo-5 img,
.kit-logo.kit-logo-2 img {
  width: 396px;
  height: 98px;
  flex-shrink: 0;
}

.kit-logo.kit-logo-6 ,
.kit-logo.kit-logo-3 {
    background-color: var(--color-deep-sapphire-blue);
    border: 1px dashed var(--color-primary);
}

.logos-group__logo--img img {
    width: 103px;
    /* height: 70px; */
    flex-shrink: 0;
}

.logos-group__logo--img-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.logos-group__logo--img-2 { grid-column: 2 / 3; grid-row: 1 / 3; }


/* ========================================
   RESPONSIVE DESIGN - ALL BREAKPOINTS
   ========================================

   Organized in descending order (desktop-first):
   - 1500px: Large Desktop
   - 1440px: Desktop
   - 1400px: Desktop
   - 1280px: Tablet
   - 1210px: Large Tablet
   - 1125px: Tablet
   - 1024px: Small Tablet
   - 950px: Small Tablet
   - 900px: Small Tablet
   - 768px: Mobile Large
   - 630px: Mobile
   - 600px: Mobile
   - 520px: Mobile Medium
   - 480px: Mobile Small
*/

/* Desktop (1500px and below) */
@media (max-width: 1500px) {
  .company-story__content-item {
    flex-wrap: wrap;
  }
  .company-story__content-item > :nth-child(1),
  .company-story__content-item > :nth-child(3) {
    flex: 1 1 48%;
    min-width: 300px;
    max-width: 50%;
    align-self: flex-start;
    min-height: 200px;
  }
  .company-story__content-item > :nth-child(2) {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    order: 3;
  }
  .company-story__signature-img {
    flex: 1;
    height: 200px;
    width: auto;
  }
  /* Values Section */
  .company-values__grid {
    flex-direction: column;
  }
  .company-values__card {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }
  .company-values__desc {
    width: 70%;
  }
  /* Missions Layout Switch */
  .desktop-layout { display: none !important; }
  .tablet-layout { display: block !important; }
  .mobile-layout { display: none !important; }
  .company-missions__image { height: 250px; }
  /* Call to Action */
  .company-cta__desc { max-width: 100%; }
  /* Impact Section */
  .company-impact__card {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .separator.vertical { display: none; }
  .company-charte__grid > .separator.vertical {display: block;}
  .company-timeline__list > .separator.vertical {display: block;}

  /* Horizons Section */
  .company-horizons__image {
    width: 100%;
    height: 100%;
  }

  .separator-container {
    display: none;
  }

  .company-horizons {
    flex-direction: column;
  }

  .company-horizons__left-card {
    max-width: none;
  }

  /* Impact Hero */
  .company-impact-hero__line {
    font-size: 48px;
  }
  /* Banner Responsive */
  .company-banner {
    height: auto;
    padding: 36px 0;
    min-height: 220px;
  }
  .company-banner__content h1 { font-size: 48px; }
  .company-banner__content h3 { font-size: 22px; }
}

/* Desktop (1440px and below) */
@media (max-width: 1440px) {
  .company-values__desc {
    width: 100%;
  }

  /* company trust */
  .company-trust {
    flex-direction: column;
    align-items: start !important;
    gap: var(--spacing-lg);
  }

  .company-trust__content {
    max-width: 100%;
  }

  .company-trust__rating-star {
    width: 20px;
    height: 20px;
  }

  /* company - 21 */
  .company-hero--21__content {
    padding: 0 var(--spacing-5xl);
  }

}

/* Desktop (1400px and below) */
@media (max-width: 1400px) {
  /* Photo Archive */
  .company-photo-archive .about-artist__gallery-item {
    width: 520px;
    height: 360px;
  }
}

/* Tablet (1280px and below) */
@media (max-width: 1280px) {
  /* Charte Grid */
  .company-charte__grid {
    gap: var(--spacing-4xl);
  }

  .company-charte__item {
    padding: 0;
  }

  .company-charte__item.company-timeline__item {
    min-height: auto;
    flex: 1 1 40%;
  }

  /* Hide vertical separators for 2-column tablet layout */
  .company-charte__grid > .separator.vertical {
    display: none;
  }

  .company-charte__desc {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Large Tablet (1210px and below) */
@media (max-width: 1210px) {
  .company-values__heading {
    font-size: 28px;
  }
  .company-values__desc {
    font-size: 18px;
  }

  /* Testimonials Section */
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* company - 21 */
  .company-hero--21__img-right {
    width: 300px;
  }

  /* Logos */
  .kit-logos__grid {
    grid-template-rows: repeat(2, 240px);
    gap: var(--spacing-lg);
  }
    .kit-logo.kit-logo-5 img,
  .kit-logo.kit-logo-2 img {
    width: 300px;
    max-width: 100%;
    height: auto;
  }

  .logos-group__icon--img img {
    width: 60px;
    height: 60px;
  }

  .logos-group__logo--img img {
    width: 85px;
  }
}

/* Tablet Landscape (1125px and below) */
@media (max-width: 1125px) {
  /* Values Section */
  .company-values__grid {
    flex-direction: column;
  }
  .company-values__card {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }
  .company-values__desc {
    width: 70%;
  }
  /* Missions Layout Switch */
  .desktop-layout { display: none !important; }
  .tablet-layout { display: block !important; }
  .mobile-layout { display: none !important; }
  .company-missions__image { height: 250px; }
  /* Call to Action */
  .company-cta__desc { max-width: 100%; }
  /* Banner Responsive */
  .company-banner {
    height: auto;
    padding: 36px 0;
    min-height: 220px;
  }
  .company-banner__content h1 { font-size: 48px; }
  .company-banner__content h3 { font-size: 22px; }

  /* About a21 */
  .about-a21__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 200px);
  }

  .about-a21__card-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .about-a21__card-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .about-a21__card-3 { grid-column: 3 / 4; grid-row: 1 / 3; }
  .about-a21__card-4 { grid-column: 1 / 2; grid-row: 2 / 4; }
  .about-a21__card-5 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .about-a21__card-6 { grid-column: 2 / 3; grid-row: 5 / 5; }
  .about-a21__card-7 { grid-column: 2 / 4; grid-row: 3 / 5; }
  .about-a21__card-8 { grid-column: 1 / 2; grid-row: 4 / 5; }
  .about-a21__card-9 { grid-column: 1 / 2; grid-row: 5 / 6; }
  .about-a21__card-10 {grid-column: 3 / 4; grid-row: 5 / 6; }

  .about-a21__card--text.about-a21__card--general p {
    line-clamp: 6;
    -webkit-line-clamp: 6;
  }
  .about-a21__card--text.about-a21__card--philosophy p {
    line-clamp: 14;
    -webkit-line-clamp: 14;
  }
  .about-a21__card--text.about-a21__card--impact-social p {
    line-clamp: 16;
    -webkit-line-clamp: 16;
  }

  /* Kit Gallery */
  .kit-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(8, 180px);
  }

  .kit-gallery__item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .kit-gallery__item-2 { grid-column: 3 / 4; grid-row: 1 / 3; }
  .kit-gallery__item-3 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .kit-gallery__item-4 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .kit-gallery__item-5 { grid-column: 3 / 4; grid-row: 3 / 5; }
  .kit-gallery__item-6 { grid-column: 1 / 2; grid-row: 4 / 5; }
  .kit-gallery__item-7 { grid-column: 2 / 3; grid-row: 4 / 5; }
  .kit-gallery__item-8 { grid-column: 1 / 4; grid-row: 5 / 7; }
  .kit-gallery__item-9 { grid-column: 1 / 3; grid-row: 7 / 9; }
  .kit-gallery__item-10 { grid-column: 3 / 4; grid-row: 7 / 9; }
}

/* Tablet Portrait (1024px and below) */
@media (max-width: 1024px) {
  .separator.vertical { min-height: 220px; }
  /* Impact Hero */
  .company-impact-hero__line {
    font-size: 36px;
  }

  /* Immersive Scroll Section */
  .company-immersive-section {
    height: auto !important;
    min-height: 0 !important;
    padding: 0;
    overflow: visible;
    background: var(--color-secondary);
  }
  .company-immersive.eco-immersive-section .company-immersive__item {
    flex-direction: column-reverse;
  }
  .company-immersive__item {
    flex-direction: column-reverse;
    height: auto !important;
    min-height: 0 !important;
  }
  .company-immersive__item:last-child {
    border: none;
  }

  .company-immersive__text,
  .company-immersive__image {
    width: 100%;
    padding: 0 20px !important;
    text-align: center;
  }
  .company-immersive__image img {
    max-width: 220px;
    max-height: 220px;
    margin: 0;
  }
  .company-immersive__scrollbar,
  .company-immersive__progress,
  .company-immersive__indicator {
    display: none !important;
  }

  /* Eco Immersive Scroll Section */
  .eco-immersive-section {
    height: auto !important;
    min-height: 0 !important;
    padding: 0;
    overflow: visible;
  }
  .eco-immersive__item {
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-accent);
  }
  .eco-immersive__text,
  .eco-immersive__image {
    width: 100%;
    padding: 0 16px;
    text-align: center;
  }
  .eco-immersive__image img {
    max-width: 220px;
    max-height: 220px;
    margin: 0 auto 16px auto;
  }
  .eco-immersive__scrollbar,
  .eco-immersive__progress,
  .eco-immersive__indicator {
    display: none !important;
  }

  /* Platform Availability */
  .world-map > svg {
    height: 300px !important;
  }

  .world-map__stats {
    width: 250px;
  }

  /* Press Section */
  .company-press__grid {
    flex-wrap: wrap;
  }
  .company-press__card {
    flex: 1 1 45%;
    min-width: 320px;
    max-width: 48%;
  }

  /* Cartes cadeaux kit */
  .kit-giftcards {
    margin: 0 var(--spacing-6xl);
  }

  .kit-giftcards__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 180px 180px;
  }

  .kit-giftcard-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .kit-giftcard-2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .kit-giftcard-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .kit-giftcard-4 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .kit-giftcard-5 { grid-column: 2 / 3; grid-row: 3 / 4; }

  /* Palette Colors */
  .kit-palettecolors__grid {
    flex-direction: column;
  }

  .kit-palettecolors__artwork {
    order: -1; /* Move artwork to top */
    min-height: 350px;
    background-size: cover;
  }

  .kit-palettecolors__item__double .kit-palettecolor__item {
    min-width: 230px;
  }

}

/* Medium Tablet (950px and below) */
@media (max-width: 950px) {
  /* Adjust margins for all sections */
  .company-partners-slider__container .separator,
  .company-showcase,
  .company-hero,
  .company-story,
  .company-charte,
  .company-timeline,
  .company-missions,
  .company-values,
  .company-cta,
  .company-impact,
  .newsletter-banner,
  .company-impact-hero,
  .company-horizons,
  .company-ideas-cta,
  .platform-availability,
  .testimonials,
  .company-trust,
  .company-press,
  .company-feedback-container,
  .company-hero--21,
  .about-a21,
  .kit-gallery,
  .kit-products,
  .kit-palettecolors,
  .company-photo-archive,
  .kit-logos {
    margin-left: var(--spacing-5xl);
    margin-right: var(--spacing-5xl);
  }

  /* Partners Slider adjustments */
  .company-partners-slider__list {
    width: calc(200px * 10 * 2);
    gap: calc(200px / 4);
    animation: autoScroll 30s linear infinite;
  }

  /* Impact Section adjustments */
  .company-impact__card {
    min-width: 100%;
    flex-direction: column;
  }

  .company-impact__card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .company-impact__card-footer {
    text-align: center;
  }

  .company-feedback {
    flex-direction: column;
  }

  .company-feedback__img-card {
    min-height: 220px;
  }

  .company-feedback__actions {
    justify-content: center;
  }

  .company-timeline__list {
    flex-direction: column;
    gap: var(--spacing-4xl);
  }

  .company-timeline__item {
    flex: 1 1 auto;
    min-width: auto;
    padding: 0;
  }

  .company-timeline__item:last-child {
    padding-bottom: 0;
  }

  .company-timeline__icon {
    flex-shrink: 0;
  }

  /* Testimonials Section */
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Company - 21 */
  .company-hero--21__img-right { display: none; }
  .company-hero--21__content {
    padding-top: var(--spacing-5xl);
    padding-bottom: var(--spacing-5xl);
  }

  .company-banner {
    margin: 0 -8px;
  }

  .company-timeline__list > .separator.vertical {
    height: 2px;
    width: 88%;
    min-height: auto;
    margin: 0 auto;
  }

  .company-photo-archive .about-artist__gallery {
    width: calc(100% + (var(--spacing-5xl) * 2));
    margin-left: calc(-1 * var(--spacing-5xl));
  }

}

/* Small Tablet (900px and below) */
@media (max-width: 900px) {
  /* Photo Archive */
  .company-photo-archive {
    margin: 0 var(--spacing-5xl);
  }

  .company-photo-archive .about-artist__gallery-item {
    width: min(90vw, 420px);
    height: 300px;
  }

  /* Company Values */
  .company-values__grid {
    flex-direction: column;
    gap: 20px 0;
  }

  .company-values__card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  /* Ideas Call to Action Section */
  .company-ideas-cta__content {
    min-width: auto;
    width: 100%;
  }

  /* Logos */
  .kit-logos__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }

  .kit-logo-1 { grid-column: 1; grid-row: 1; }
  .kit-logo-2 { grid-column: 2; grid-row: 1; }
  .kit-logo-3 { grid-column: 1; grid-row: 3; }
  .kit-logo-4 { grid-column: 2; grid-row: 2; }
  .kit-logo-5 { grid-column: 1; grid-row: 2; }
  .kit-logo-6 { grid-column: 2; grid-row: 3; }

  .kit-logo.kit-logo-5 img,
  .kit-logo.kit-logo-2 img {
    width: 210px;
    max-width: 100%;
    height: auto;
  }

  .logos-group__icon--img img {
    width: 50px;
    height: 50px;
  }

  .logos-group__logo--img img {
    width: 70px;
  }
}

/* Mobile Large (768px and below) */
@media (max-width: 768px) {
  /* Company Charte */
  .company-charte {
    margin: 0 var(--spacing-3xl);
  }

  .company-charte__item.company-timeline__item {
    flex: 1 1 100%;
  }

  .company-charte__icon {
    width: 64px;
    height: 64px;
  }

  .company-charte__desc {
    max-width: none;
  }

  /* Company Feedback */
  .company-feedback__images {
    flex-direction: column;
  }

  .company-feedback__img-card {
    min-height: 200px;
  }

  .company-feedback__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .company-feedback__actions .btn {
    width: 100%;
    min-width: 0;
  }

  /* Missions Layout Switch */
  .desktop-layout { display: none !important; }
  .tablet-layout { display: none !important; }
  .mobile-layout { display: block !important; }
  .company-missions__card { max-width: 100%; }
  .company-missions__image { height: 200px; }
  /* Hide vertical separators on mobile */
  .separator.vertical { display: none; }
  .separator.horizontal { height: 2px; width: 100%; }
  /* Video adjustments */
  .company-showcase__video-container {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .company-showcase__play-btn { width: 100px; height: 100px; }
  .company-showcase__play-btn svg { width: 32px; }
  /* Partners Slider adjustments */
  .company-partners-slider__item { width: 250px; }
  /* Call to Action */
  .company-cta__buttons { flex-direction: column !important; }
  .company-cta__btn { width: 100%; border-width: 1px; }
  /* Impact Hero */
  .company-impact-hero {
    height: 400px;
  }
  .company-impact-hero__line {
    font-size: 24px;
  }

  /* company horizons */
  .company-horizons__image {
    max-height: none;
  }

  .company-timeline__item {
    flex-direction: column;
  }

  .company-timeline__icon {
    width: 52px;
    height: 52px;
  }

  /* Ideas CTA mobile adjustments */
  .company-ideas-cta__title {
    text-align: center;
  }
  .company-ideas-cta__desc {
    text-align: center;
  }
  /* Banner Responsive */
  .company-banner {
    height: auto;
    padding: 24px 0;
    min-height: 140px;
  }
  .company-banner__content h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .company-banner__content h3 { font-size: 16px; }
  /* history of a21 */
  .company-story__content-item > :nth-child(1),
  .company-story__content-item > :nth-child(3) { min-width: 250px; min-height: auto; }
  .company-story__signature-img { height: 150px; }

  /* Immersive Scroll Section */
  .company-immersive__item {
    min-height: 350px;
  }

  /* Platform Availability */
  .world-map > svg {
    height: 250px !important;
  }

  .world-map__stats {
    width: 200px;

    height: calc(100% - var(--spacing-sm) - var(--spacing-sm));
    margin: var(--spacing-sm);
    padding: var(--spacing-sm) !important;
  }

  /* company - 21 */
  .company-hero--21 {
    height: 350px;
  }

  /* Press Section */
  .company-press__grid {
    flex-direction: column;
  }
  .company-press__card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .company-press__card-header {
    height: 110px;
  }
  .company-press__logo {
    height: 32px;
  }
  .company-press__card-body {
    min-height: 120px;
  }

  /* About a21 */
  .about-a21__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 200px);
  }

  .about-a21__card-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .about-a21__card-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .about-a21__card-3 { grid-column: 1 / 3; grid-row: 2 / 3; }
  .about-a21__card-4 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .about-a21__card-5 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .about-a21__card-6 { grid-column: 1 / 2; grid-row: 4 / 5; }
  .about-a21__card-7 { grid-column: 2 / 3; grid-row: 4 / 6; }
  .about-a21__card-8 { grid-column: 1 / 2; grid-row: 5 / 6; }
  .about-a21__card-9 { grid-column: 1 / 2; grid-row: 6 / 7; }
  .about-a21__card-10 { grid-column: 2 / 3; grid-row: 6 / 7; }

  .about-a21__card--text.about-a21__card--general p {
    line-clamp: 6;
    -webkit-line-clamp: 6;
  }
  .about-a21__card--text.about-a21__card--philosophy p {
    line-clamp: 7;
    -webkit-line-clamp: 7;
  }
  .about-a21__card--text.about-a21__card--impact-social p {
    line-clamp: 15;
    -webkit-line-clamp: 15;
  }

  .kit-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(11, 140px);
  }

  .kit-gallery__item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .kit-gallery__item-2 { grid-column: 1 / 2; grid-row: 3 / 5; }
  .kit-gallery__item-3 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .kit-gallery__item-4 { grid-column: 2 / 3; grid-row: 4 / 5; }
  .kit-gallery__item-5 { grid-column: 1 / 3; grid-row: 5 / 7; }
  .kit-gallery__item-6 { grid-column: 1 / 2; grid-row: 7 / 8; }
  .kit-gallery__item-7 { grid-column: 2 / 3; grid-row: 7 / 8; }
  .kit-gallery__item-8 { grid-column: 1 / 3; grid-row: 8 / 10; }
  .kit-gallery__item-9 { grid-column: 1 / 2; grid-row: 10 / 12; }
  .kit-gallery__item-10 { grid-column: 2 / 3; grid-row: 10 / 12; }

  .company-horizons {
    flex-direction: column-reverse;
  }

  .testimonial-card__rating-section {
    padding: 30px var(--spacing-3xl) !important;
  }
}

/* Mobile: Change to reverse images when screen is less than 700px */
@media (max-width: 700px) {

  .company-hero--21__content {
    padding-bottom: 0;
  }

  .company-hero--21 {
    flex-direction: column;
    height: auto;
  }

  .company-hero--21__img-left {
    content: url('/assets/img/starry night/1 - reverse.png');
    width: auto;
  }

  .company-hero--21__img-right {
    content: url('/assets/img/starry night/2 - reverse.png');
    width: auto;
    display: flex;
  }

  /* Light mode on mobile */
  [data-theme="light"] .company-hero--21__img-right {
    content: url('/assets/img/starry night/3 - reverse.png');
  }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
  /* Photo Archive */
  .company-photo-archive .about-artist__gallery {
    width: calc(100% + (var(--spacing-5xl) * 2));
    margin-left: calc(-1 * var(--spacing-5xl));
  }

  .company-photo-archive .about-artist__gallery-item {
    width: 85vw;
    height: 240px;
  }

    /* Charte Grid */
  .company-charte__grid > .separator.vertical {
    display: block;
    height: 2px;
    width: 100%;
    min-height: auto;
  }
  .company-timeline__list > .separator.vertical {
    width: 100%;
  }
    .company-charte__item {
        min-width: 100%;
        min-height: auto;
    }

    /* A21 agit pour Section */
    .company-impact__card {
        flex-direction: row;
        align-items: center;
        gap: 0 !important;
    }

    .company-impact__card-icon-img {
        width: 120px;
        height: auto;
    }

    .company-impact__card-content .icon {
        display: flex !important;
    }
    .company-impact__card-content .icon svg {
        width: 16px;
        height: 17px;
    }
    .company-impact__card-desc,
    .company-impact__card-link {
        display: none !important;
    }


    .company-impact__grid .separator-container {
        display: block;
        margin: 0 !important;
        width: 100%;
    }
    .company-impact__grid .separator-container .separator.vertical {
        width: 100%;
        height: 2px;
        display: block;
    }

}

@media (max-width: 630px) {
  .company-story__content-item {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .company-story__content-item > * {
    width: 100%;
    max-width: 100% !important;
    order: initial !important;
  }

  .company-story__quote,
  .company-story__signature {
    display: none !important;
  }

  /* Platform Availability */
  .world-map__stats {
    left: auto;
    right: 0;
}
  .world-map__stat-content {
    gap: 0 !important;
  }

  /* Palette Colors */
  .kit-palettecolors__item__double {
    flex-direction: column;
  }
  .kit-palettecolors__item__double .kit-palettecolor__item {
    min-width: 100%;
  }

  /* Cartes cadeaux kit */
  .kit-giftcards {
    margin: 0 var(--spacing-4xl);
  }

  .kit-giftcards__grid {
    grid-template-rows: 200px repeat(2, 140px);
  }

  /* Logos */
  .kit-logos__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 180px);
  }

  .kit-logo-1 { grid-column: 1; grid-row: 1; }
  .kit-logo-2 { grid-column: 1; grid-row: 2; }
  .kit-logo-3 { grid-column: 1; grid-row: 5; }
  .kit-logo-4 { grid-column: 1; grid-row: 4; }
  .kit-logo-5 { grid-column: 1; grid-row: 3; }
  .kit-logo-6 { grid-column: 1; grid-row: 6; }

  .kit-logo.kit-logo-5 img,
  .kit-logo.kit-logo-2 img {
    width: 200px;
    height: auto;
  }

  .logos-group__icon--img img {
    width: 40px;
    height: 40px;
  }

  .logos-group__logo--img img {
    width: 60px;
  }

  .kit-logo svg {
    width: 38px;
    height: 38px;
  }

}

/* Mobile Medium (520px and below) */
@media (max-width: 520px) {
  /* Reduce margins for all sections */
  .company-partners-slider__container .separator,
  .company-showcase,
  .company-hero,
  .company-story,
  .company-charte,
  .company-timeline,
  .company-missions,
  .company-values,
  .company-cta,
  .company-impact,
  .newsletter-banner,
  .company-impact-hero,
  .company-horizons,
  .company-ideas-cta,
  .platform-availability,
  .testimonials,
  .company-trust,
  .company-feedback-container,
  .company-hero--21,
  .company-press,
  .about-a21,
  .kit-gallery,
  .kit-products,
  .kit-palettecolors,
  .company-photo-archive,
  .kit-logos {
    margin-left: 20px;
    margin-right: 20px;
  }

  .company-values__desc {
    width: 100%;
    font-size: 16px;
  }

  .company-showcase__play-btn { width: 80px; height: 80px; }

  /* Horizons Section mobile adjustments */
  .company-horizons__left-card,
  .company-horizons__right-card {
    min-height: auto;
    flex-direction: column;
  }
  .company-horizons__image {
    max-height: 200px;
  }

  .company-impact__card-title {
    font-size: 24px;
  }

  .company-impact__card-desc {
    font-size: 16px;
  }

  /* Platform Availability */
  .world-map > svg {
    height: 200px !important;
  }

  /* Testimonials Section */
  .testimonials__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .company-feedback__img-card {
    min-height: 180px;
  }

  .company-feedback__actions .btn {
    min-width: 0;
  }

  .company-timeline__icon {
    width: 44px;
    height: 44px;
  }

  /* Kit Gallery */
  .kit-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(10, 200px);
  }

  /* Stack all items in single column */
  .kit-gallery__item-1 { grid-column: 1; grid-row: 1 / 2; }
  .kit-gallery__item-2 { grid-column: 1; grid-row: 2 / 4; }
  .kit-gallery__item-3 { grid-column: 1; grid-row: 4 / 5; }
  .kit-gallery__item-4 { grid-column: 1; grid-row: 5 / 6; }
  .kit-gallery__item-5 { grid-column: 1; grid-row: 6 / 7; }
  .kit-gallery__item-6 { grid-column: 1; grid-row: 7 / 8; }
  .kit-gallery__item-7 { grid-column: 1; grid-row: 8 / 9; }
  .kit-gallery__item-8 { grid-column: 1; grid-row: 9 / 10; }
  .kit-gallery__item-9 { grid-column: 1; grid-row: 10 / 11; }
  .kit-gallery__item-10 { grid-column: 1; grid-row: 11 / 12; }

  .company-banner {
    margin: 0 -10px;
  }

  /* Immersive Scroll Section - Mobile Tablet */
  .company-immersive-section {
    display: flex;
    flex-direction: column;
    height: 476px;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide default scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide default scrollbar for IE/Edge */
  }

  /* Hide default scrollbar for Webkit browsers */
  .company-immersive-section::-webkit-scrollbar {
    display: none;
  }

  /* Show custom scrollbar element like photo-archive */
  .company-immersive__scrollbar {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
    cursor: pointer;
    margin-top: 16px;
  }

  .company-immersive__progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
  }

  .company-immersive__scrollbar:hover .company-immersive__progress {
    background-color: var(--color-primary-hover);
  }

  .company-immersive__content {
    display: flex;
    flex-direction: column;
    height: 450px !important;
    width: 100%;
    transition: none;
    transform: none !important;
  }

  .company-immersive__item {
    display: flex;
    flex-direction: column !important;
    align-items: stretch;
    justify-content: flex-start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: var(--spacing-5xl) var(--spacing-xl);
    flex-shrink: 0;
  }

  .company-immersive.eco-immersive-section .company-immersive__item {
    flex-direction: column !important;
  }

  .company-immersive__item h2 {
    width: 100%;
    padding: 0;
    flex-shrink: 0;
  }

  .company-immersive__item p {
    width: 100%;
    padding: 0;
    flex-shrink: 0;
  }

  .company-immersive__text {
    width: 100%;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .company-immersive__text h2 {
    order: 1;
  }

  .company-immersive__image {
    order: 2;
  }

  .company-immersive__text p {
    order: 3;
  }

  .company-immersive .company-immersive-section#ecoImmersiveSection .company-immersive__text,
  .company-immersive .company-immersive-section#companyImmersiveSection .company-immersive__text {
    padding: 0 !important;
  }

  .company-immersive__image {
    width: 100%;
    height: 200px;
  }

  .company-immersive__image img {
    max-height: 200px;
    height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .company-immersive__indicator {
    display: none;
  }

  /*  */
  .company-impact-hero__text-overlay {
    gap: 0;
  }

  .newsletter-banner__form {
    flex-direction: column;
  }

  .newsletter-banner__btn {
    width: 100%;
  }

  .company-photo-archive .about-artist__gallery {
    width: calc(100% + (20px * 2));
    margin-left: calc(-1 * 20px);
  }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
  .company-partners-slider__item { width: 200px; }

  .company-partners-slider__list {
    animation: autoScroll 35s linear infinite;
  }

  /* Impact Hero */
  .company-impact-hero {
    height: 270px;
  }
  .company-impact-hero__line {
    font-size: 20px;
  }
  .company-banner {
    height: auto;
    padding: 16px 0;
    min-height: 80px;
  }
  .company-banner__content h1 { font-size: 22px; }
  .company-banner__content h3 { font-size: 12px; }

  /* Platform Availability */
  .world-map > svg {
    height: 170px !important;
  }

  .world-map__stats {
    width: 180px;
  }

  /* About a21 */
  .about-a21__grid {
    display: flex;
    flex-direction: column;
  }

  .about-a21__card {
    width: 100%;
    height: auto;
  }

  .about-a21__card--text.about-a21__card--general p,
  .about-a21__card--text.about-a21__card--philosophy p,
  .about-a21__card--text.about-a21__card--impact-social p {
    line-clamp: none;
    -webkit-line-clamp: none; /* No line clamping on mobile */
  }

  /* Immersive Scroll Section - Mobile */

  .company-immersive__content {
    height: 394px !important;
  }

}
