/* ============================================
   Homepage presentation mode (full-screen slides)
   ============================================ */

   .slide-section {
    position: relative;
    width: 100%;
  }
  
  .slide-section__backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  .slide-section__content {
    position: relative;
    z-index: 2;
    width: 100%;
  }
  
  /* Hero content wrapper must fill slider */
  .slider.slide-section .slide-section__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }
  
  /* Subtle backdrop patterns */
  .page-home .slide-section[data-bg-type="grid"] .slide-section__backdrop,
  html.presentation-mode .slide-section[data-bg-type="grid"] .slide-section__backdrop {
    background-image:
      linear-gradient(rgb(15 40 28 / 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgb(15 40 28 / 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
  }
  
  .page-home .slide-section[data-bg-type="dots"] .slide-section__backdrop,
  html.presentation-mode .slide-section[data-bg-type="dots"] .slide-section__backdrop {
    background-image: radial-gradient(circle, rgb(15 40 28 / 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
  }
  
  .page-home .slide-section[data-bg-type="newspaper"] .slide-section__backdrop,
  html.presentation-mode .slide-section[data-bg-type="newspaper"] .slide-section__backdrop {
    background-image:
      radial-gradient(circle at 50% 30%, rgb(0 156 67 / 0.035), transparent 34%),
      linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgb(15 40 28 / 0.055) calc(25% - 1px), rgb(15 40 28 / 0.055) 25%, transparent 25%, transparent calc(50% - 1px), rgb(15 40 28 / 0.045) calc(50% - 1px), rgb(15 40 28 / 0.045) 50%, transparent 50%, transparent calc(75% - 1px), rgb(15 40 28 / 0.055) calc(75% - 1px), rgb(15 40 28 / 0.055) 75%, transparent 75%),
      repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgb(15 40 28 / 0.025) 31px, rgb(15 40 28 / 0.025) 32px);
    background-size:
      100% 100%,
      min(1120px, 86vw) 100%,
      min(1120px, 86vw) 32px;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, repeat-y;
    opacity: 1;
  }
  
  .page-home .slide-section[data-bg-type="globes"] .slide-section__backdrop,
  html.presentation-mode .slide-section[data-bg-type="globes"] .slide-section__backdrop {
    background-image:
      radial-gradient(circle at 50% 42%, rgb(0 156 67 / 0.045), transparent 30%),
      url("/assets/images/regions/globe-pattern.svg"),
      url("/assets/images/regions/globe-pattern.svg"),
      url("/assets/images/regions/globe-pattern.svg"),
      url("/assets/images/regions/globe-pattern.svg"),
      url("/assets/images/regions/globe-pattern.svg"),
      url("/assets/images/regions/globe-pattern.svg"),
      url("/assets/images/regions/globe-pattern.svg"),
      url("/assets/images/regions/globe-pattern.svg");
    background-position:
      center,
      8% 20%,
      25% 76%,
      42% 14%,
      58% 84%,
      73% 28%,
      88% 68%,
      96% 12%,
      14% 52%;
    background-size:
      100% 100%,
      86px 86px,
      68px 68px,
      78px 78px,
      72px 72px,
      84px 84px,
      70px 70px,
      64px 64px,
      76px 76px;
    background-repeat: no-repeat;
    opacity: 0.42;
  }
  
  .page-home .slide-section[data-bg-type="gears"] .slide-section__backdrop,
  html.presentation-mode .slide-section[data-bg-type="gears"] .slide-section__backdrop {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230f281c' stroke-width='0.75' opacity='0.35'%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M60 20v12M60 88v12M20 60h12M88 60h12M32 32l8.5 8.5M79.5 79.5l8.5 8.5M32 88l8.5-8.5M79.5 40.5l8.5-8.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    opacity: 0.04;
  }
  
  .page-home .slide-section[data-bg-type="leaves"] .slide-section__backdrop,
  html.presentation-mode .slide-section[data-bg-type="leaves"] .slide-section__backdrop {
    background-image:
      radial-gradient(circle at 18% 22%, rgb(0 156 67 / 0.06), transparent 24%),
      url("/assets/images/sustainability/eco.svg"),
      url("/assets/images/sustainability/eco.svg"),
      url("/assets/images/sustainability/eco.svg"),
      url("/assets/images/sustainability/eco.svg"),
      url("/assets/images/sustainability/eco.svg"),
      url("/assets/images/sustainability/eco.svg"),
      url("/assets/images/sustainability/eco.svg");
    background-position:
      center,
      8% 18%,
      31% 9%,
      67% 16%,
      88% 34%,
      18% 68%,
      47% 78%,
      74% 62%;
    background-size:
      100% 100%,
      clamp(190px, 30vw, 360px) auto,
      clamp(170px, 26vw, 320px) auto,
      clamp(185px, 28vw, 340px) auto,
      clamp(155px, 23vw, 290px) auto,
      clamp(180px, 27vw, 330px) auto,
      clamp(160px, 24vw, 300px) auto,
      clamp(175px, 25vw, 315px) auto;
    background-repeat: no-repeat;
    opacity: 0.12;
  }
  
  /* Desktop presentation layout */
  @media (min-width: 992px) {
    html.presentation-mode {
      overflow-x: hidden;
      scroll-behavior: auto;
    }
  
    html.presentation-mode body {
      overflow-x: hidden;
    }
  
    html.presentation-mode .presentation-container {
      width: 100%;
    }
  
    html.presentation-mode .slide-section {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 100vh;
      min-height: 100svh;
      height: 100vh;
      height: 100svh;
      overflow: hidden;
      scroll-margin-top: 0;
    }
  
    html.presentation-mode .presentation-container .slide-section:last-child {
      overflow: visible;
    }
  
    html.presentation-mode .slide-section__content {
      width: 100%;
      max-height: calc(100vh - var(--nav-height, 88px));
      max-height: calc(100svh - var(--nav-height, 88px));
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
    }
  
    html.presentation-mode .slide-section.slider {
      padding: 0;
    }
  
    html.presentation-mode .slide-section.slider .slide-section__content {
      display: flex;
      flex-direction: column;
      height: 100%;
      max-height: none;
      overflow: hidden;
    }
  
    html.presentation-mode .slide-section.slider .slider__slides {
      flex: 1 1 auto;
      min-height: 0;
    }
  
    html.presentation-mode .slide-section.impact .impact__bg-gradient,
    html.presentation-mode .slide-section.impact .impact__blob,
    html.presentation-mode .slide-section.impact .slide-section__backdrop {
      z-index: 0;
    }
  
    html.presentation-mode .slide-section.impact .impact__bottom-fade {
      z-index: 1;
      height: clamp(48px, 8svh, 88px);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      background: linear-gradient(
        to top,
        #fff 0%,
        rgb(255 255 255 / 0.88) 35%,
        rgb(255 255 255 / 0.35) 70%,
        transparent 100%
      );
    }
  
    html.presentation-mode .slide-section.impact > .slide-section__content {
      position: relative;
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      width: 100%;
      height: auto;
      max-height: calc(100svh - var(--nav-height, 88px) - clamp(2.25rem, 5.5vh, 4.5rem));
      min-height: 0;
      padding: 0;
      overflow: visible;
      overscroll-behavior: none;
      scrollbar-width: none;
    }
  
    html.presentation-mode .slide-section.sustain,
    html.presentation-mode .slide-section.insights {
      align-items: flex-start;
      justify-content: flex-start;
      padding-top: calc(var(--nav-height, 88px) + clamp(0.5rem, 1.5vh, 1rem));
      padding-bottom: clamp(0.5rem, 1.5vh, 1rem);
    }
  
    html.presentation-mode .slide-section.sustain .slide-section__content,
    html.presentation-mode .slide-section.insights .slide-section__content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      max-height: calc(100svh - var(--nav-height, 88px) - clamp(1rem, 2.5vh, 2rem));
      overflow: hidden;
      overscroll-behavior: none;
      scrollbar-width: none;
    }
  
    html.presentation-mode .slide-section.sustain .slide-section__content::-webkit-scrollbar,
    html.presentation-mode .slide-section.insights .slide-section__content::-webkit-scrollbar,
    html.presentation-mode .slide-section.global .slide-section__content::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }
  
    html.presentation-mode .slide-section.sustain .section-header,
    html.presentation-mode .slide-section.global .section-header {
      width: 100%;
      max-width: none;
      margin-right: auto;
      margin-left: auto;
      text-align: center;
    }
  
    html.presentation-mode .slide-section.sustain .section-header__title--two-lines,
    html.presentation-mode .slide-section.sustain .section-header__subtitle,
    html.presentation-mode .slide-section.global .section-header__subtitle {
      display: block;
      width: fit-content;
      max-width: min(100%, 960px);
      margin-right: auto;
      margin-left: auto;
      text-align: center;
    }
  
    html.presentation-mode .slide-section.global {
      align-items: center;
      justify-content: center;
      padding-top: 0;
      padding-bottom: 0;
    }
  
    html.presentation-mode .slide-section.global .slide-section__content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      max-height: calc(100svh - var(--nav-height, 88px));
      overflow: hidden;
      overscroll-behavior: none;
      scrollbar-width: none;
    }
  
    html.presentation-mode .slide-section.global .global__pills {
      flex-flow: row nowrap;
      align-items: center;
      justify-content: center;
      gap: clamp(0.625rem, 1.2vw, 1rem);
    }
  
    html.presentation-mode .slide-section.global .global-pill {
      align-self: center;
      transform: none;
    }
  
    html.presentation-mode .slide-section.insights .insights__header {
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: none;
      margin-bottom: clamp(0.625rem, 1.6vh, 1.25rem);
      text-align: center;
    }
  
    html.presentation-mode .slide-section.insights .insights__intro {
      text-align: center;
    }
  
    html.presentation-mode .slide-section.insights .insights__intro .section-header__eyebrow {
      display: inline-block;
      margin-right: auto;
      margin-left: auto;
    }
  }
  
  /* Slide navigation */
  .slide-nav {
    position: fixed;
    top: 50%;
    right: clamp(12px, 2vw, 28px);
    z-index: 900;
    transform: translateY(-50%);
    pointer-events: none;
  }
  
  .slide-nav[hidden] {
    display: none !important;
  }
  
  html.presentation-mode .slide-nav {
    pointer-events: auto;
  }
  
  .slide-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .slide-nav__btn {
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    background: rgb(15 40 28 / 0.25);
    border: 0;
    border-radius: 50%;
    transition:
      transform 0.2s ease,
      background-color 0.2s ease,
      opacity 0.2s ease;
  }
  
  .slide-nav__btn:hover,
  .slide-nav__btn:focus-visible {
    background: rgb(15 40 28 / 0.5);
    transform: scale(1.15);
  }
  
  .slide-nav__btn:focus-visible {
    outline: 2px solid var(--color-primary, #1a5c3a);
    outline-offset: 4px;
  }
  
  .slide-nav__btn--active {
    background: var(--color-primary, #1a5c3a);
    transform: scale(1.25);
  }
  
  /* Header theme for light / muted slides */
  @media (min-width: 992px) {
    .page-home .nav.nav--on-muted .nav__bar {
      background: rgb(236 253 245 / 0.88);
      border-color: rgb(0 156 67 / 0.18);
      box-shadow:
        0 8px 32px rgb(0 122 52 / 0.08),
        0 1px 0 rgb(255 255 255 / 0.65) inset;
      -webkit-backdrop-filter: blur(20px) saturate(1.15);
      backdrop-filter: blur(20px) saturate(1.15);
    }
  
    .page-home .nav.nav--on-muted .nav__link,
    .page-home .nav.nav--on-muted .nav__lang-btn,
    .page-home .nav.nav--on-muted .nav__icon-btn {
      color: #0f281c;
    }
  
    .page-home .nav.nav--on-muted .nav__link:hover,
    .page-home .nav.nav--on-muted .nav__link:focus-visible,
    .page-home .nav.nav--on-muted .nav__link[aria-expanded="true"],
    .page-home .nav.nav--on-muted .nav__item:hover > .nav__link,
    .page-home .nav.nav--on-muted .nav__lang-btn:hover,
    .page-home .nav.nav--on-muted .nav__lang-btn:focus-visible,
    .page-home .nav.nav--on-muted .nav__icon-btn:hover,
    .page-home .nav.nav--on-muted .nav__icon-btn:focus-visible {
      color: #06140c;
    }
  
    .page-home .nav.nav--on-muted .nav__link::after {
      background-color: transparent;
    }
  
    .page-home .nav.nav--on-muted .nav__link:hover::after,
    .page-home .nav.nav--on-muted .nav__link:focus-visible::after,
    .page-home .nav.nav--on-muted .nav__link[aria-expanded="true"]::after,
    .page-home .nav.nav--on-muted .nav__item:hover > .nav__link::after {
      background-color: var(--color-primary);
    }
  
    .page-home .nav.nav--on-muted .nav__lang-btn {
      background: rgb(255 255 255 / 0.55);
      border-color: rgb(0 156 67 / 0.22);
    }
  
    .page-home .nav.nav--on-muted .nav__lang-btn:hover,
    .page-home .nav.nav--on-muted .nav__lang-btn:focus-visible {
      background: rgb(255 255 255 / 0.78);
      border-color: rgb(0 156 67 / 0.35);
    }
  
    .page-home .nav.nav--on-muted .nav__icon-btn:hover,
    .page-home .nav.nav--on-muted .nav__icon-btn:focus-visible {
      background-color: rgb(220 252 231 / 0.65);
    }
  
    .page-home .nav.nav--on-muted .nav__cta {
      color: #fff;
      background-color: var(--color-primary);
      box-shadow: 0 4px 14px rgb(0 156 67 / 0.28);
    }
  
    .page-home .nav.nav--on-muted .nav__cta:hover,
    .page-home .nav.nav--on-muted .nav__cta:focus-visible {
      color: #fff;
      background-color: var(--color-primary-dark);
      box-shadow: 0 6px 18px rgb(0 122 52 / 0.32);
    }
  
    .page-home .nav .nav__bar,
    .page-home .nav .nav__link,
    .page-home .nav .nav__lang-btn,
    .page-home .nav .nav__icon-btn,
    .page-home .nav .nav__cta {
      transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
    }
  }
  
  /* Mobile: standard page scroll */
  @media (max-width: 991px) {
    html.presentation-mode {
      scroll-behavior: smooth;
    }
  
    .slide-section:not(.slider) {
      height: auto;
      min-height: auto;
      overflow: visible;
    }
  
    .slide-section:not(.slider) .slide-section__content {
      max-height: none;
      overflow: visible;
    }
  
    .slider.slide-section {
      overflow: hidden;
    }
  
    .slider.slide-section .slide-section__content {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      max-height: none;
      overflow: hidden;
    }
  
    .slide-nav {
      display: none !important;
    }
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .slide-nav__btn,
    .page-home .nav .nav__bar,
    .page-home .nav .nav__link,
    .page-home .nav .nav__lang-btn,
    .page-home .nav .nav__icon-btn,
    .page-home .nav .nav__cta {
      transition: none;
    }
  
    .slide-nav__btn:hover,
    .slide-nav__btn:focus-visible,
    .slide-nav__btn--active {
      transform: none;
    }
  }