/* --- Self-hosted Manrope (variable, OFL) ---------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand — see /docs/brand.md at repo root */
  --brand-gray-9:  #44424A;
  --brand-gray-11: #323038;
  --brand-gray-6:  #DEDEDE;
  --brand-gray-1:  #F9F8F8;
  --brand-blue:    #A1BBCA;

  --bg:     var(--brand-gray-11);
  --fg:     var(--brand-gray-1);
  --muted:  rgba(249, 248, 248, 0.78);
  --accent: var(--brand-blue);
  --line:   rgba(249, 248, 248, 0.20);
  --shadow: rgba(0, 0, 0, 0.38);
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html[dir="rtl"] {
  --font-sans: "Noto Sans Arabic", "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

/* --- Horizontal deck ------------------------------------------------- */
.experience {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.experience::-webkit-scrollbar {
  display: none;
}

.scene {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--brand-gray-11);
}

.poster-fallback,
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.bg-video {
  z-index: -3; /* behind the poster — always sharp, never filtered */
}

.poster-fallback {
  z-index: -2; /* on top — dissolves away to reveal the live video */
  opacity: 1;
}

/* Poster is only a cold-load fallback; loaded video frames stay visible between slides. */
.scene.show-video .poster-fallback {
  opacity: 0 !important;
  transition: opacity 240ms ease;
  pointer-events: none;
}
@keyframes teamday-buffering {
  0%, 100% { filter: brightness(1.0); }
  50%      { filter: brightness(1.07); }
}

.scene.is-buffering .poster-fallback {
  animation: teamday-buffering 1.4s ease-in-out infinite;
}

@media (max-width: 768px) {
  #slide-1 .poster-fallback,
  #slide-1 .bg-video {
    object-position: 52% center;
  }

  #slide-3 .poster-fallback,
  #slide-3 .bg-video {
    object-position: 48% center;
  }

  #slide-5 .poster-fallback,
  #slide-5 .bg-video {
    object-position: 56% center;
  }

  #slide-7 .poster-fallback,
  #slide-7 .bg-video {
    object-position: 68% center;
  }

  #slide-9 .poster-fallback,
  #slide-9 .bg-video {
    object-position: 56% center;
  }

  #slide-10 .poster-fallback,
  #slide-10 .bg-video {
    object-position: 54% center;
  }

  #slide-11 .poster-fallback,
  #slide-11 .bg-video {
    object-position: 58% center;
  }
}

.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(to top, rgba(50, 48, 56, 0.72) 0%, rgba(50, 48, 56, 0.18) 40%, transparent 62%),
    linear-gradient(90deg, rgba(50, 48, 56, 0.55) 0%, rgba(50, 48, 56, 0.20) 46%, transparent 100%);
}

.shade--strong {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(50, 48, 56, 0.32) 0%, rgba(50, 48, 56, 0.82) 100%);
}

/* --- Progress bar ---------------------------------------------------- */
.slide-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 28;
  background: rgba(249, 248, 248, 0.08);
  overflow: hidden;
  pointer-events: none;
}

.slide-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(calc(1 / 12));
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .slide-progress__fill {
    transition: none;
  }
}

/* --- Screen-reader status ------------------------------------------- */
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Glass header ---------------------------------------------------- */
.teamday-brand,
.brand-mark {
  position: fixed;
  top: max(18px, var(--safe-top));
  left: clamp(16px, 4vw, 32px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 32px;
  pointer-events: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.teamday-brand img,
.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

html[dir="rtl"] .teamday-brand,
html[dir="rtl"] .brand-mark {
  left: auto;
  right: clamp(16px, 4vw, 32px);
}

.teamday-controls,
.site-menu__actions {
  position: fixed;
  top: max(18px, var(--safe-top));
  right: clamp(16px, 4vw, 32px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

html[dir="rtl"] .teamday-controls,
html[dir="rtl"] .site-menu__actions {
  right: auto;
  left: clamp(16px, 4vw, 32px);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(249, 248, 248, 0.14);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.48), rgba(68, 66, 74, 0.32));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  cursor: pointer;
  user-select: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(249, 248, 248, 0.22);
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.56), rgba(68, 66, 74, 0.40));
  outline: none;
}

.sound-toggle[aria-pressed="true"] {
  border-color: rgba(161, 187, 202, 0.4);
  color: var(--brand-blue);
  box-shadow: 0 0 18px rgba(161, 187, 202, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-chapters {
  position: relative;
  pointer-events: auto;
}

.nav-chapters summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(249, 248, 248, 0.14);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.48), rgba(68, 66, 74, 0.32));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  cursor: pointer;
  user-select: none;
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nav-chapters summary::-webkit-details-marker {
  display: none;
}

.nav-chapters summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .78;
  transition: transform .18s ease;
}

.nav-chapters[open] summary,
.nav-chapters summary:hover,
.nav-chapters summary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(249, 248, 248, 0.22);
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.56), rgba(68, 66, 74, 0.40));
  outline: none;
}

.nav-chapters[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.chapters-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  max-height: min(420px, 65vh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(249, 248, 248, 0.11);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(50, 48, 56, 0.85), rgba(68, 66, 74, 0.70));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(30px) saturate(175%);
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
}

.chapters-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(249, 248, 248, 0.78);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.chapters-panel button:hover,
.chapters-panel button:focus-visible {
  background: rgba(249, 248, 248, 0.08);
  color: var(--fg);
  outline: none;
}

.chapters-panel button[aria-current="true"] {
  background: rgba(161, 187, 202, 0.18);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .teamday-brand,
  .brand-mark {
    width: 84px;
    left: 12px;
  }
  html[dir="rtl"] .teamday-brand,
  html[dir="rtl"] .brand-mark {
    left: auto;
    right: 12px;
  }
  .teamday-controls,
  .site-menu__actions {
    right: 12px;
  }
  html[dir="rtl"] .teamday-controls,
  html[dir="rtl"] .site-menu__actions {
    right: auto;
    left: 12px;
  }
  .sound-toggle {
    display: none;
  }
  .nav-chapters summary {
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}



/* --- Content -------------------------------------------------------- */
.content {
  position: absolute;
  bottom: clamp(64px, 8vh, 112px);
  left: clamp(24px, 7vw, 112px);
  z-index: 2;
  width: min(720px, calc(100vw - 48px));
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(249, 248, 248, 0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--fg);
  font-weight: 300;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 18px 60px var(--shadow);
}

h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
}

.lead,
.content p:not(.eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-wrap: pretty;
}

.desktop-only-break {
  display: none;
}

@media (min-width: 769px) {
  .desktop-only-break {
    display: inline;
  }
}

/* --- Cinematic text reveal ----------------------------------------- */
@keyframes teamday-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scene .eyebrow,
.scene .content > p:not(.eyebrow),
.scene .lead,
.scene .content > .button,
.scene .actions {
  opacity: 0;
  transition: opacity 350ms ease;
  will-change: opacity, transform;
}

.scene h1 .word,
.scene h2 .word {
  display: inline-block;
  line-height: inherit;
}

.scene h1 .word-inner,
.scene h2 .word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 350ms ease;
  will-change: opacity, transform;
}

.scene.is-active .eyebrow,
.scene.is-active .content > p:not(.eyebrow),
.scene.is-active .lead,
.scene.is-active .content > .button,
.scene.is-active .actions,
.scene.is-active h1 .word-inner,
.scene.is-active h2 .word-inner {
  animation: teamday-fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scene.is-active .eyebrow {
  animation-delay: 120ms;
}

.scene.is-active .content > p:not(.eyebrow),
.scene.is-active .lead {
  animation-delay: 560ms;
}

.scene.is-active .content > .button,
.scene.is-active .actions {
  animation-delay: 760ms;
}

/* --- Buttons (brand glass) ----------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 34px;
  padding: 12px 22px;
  border: 1px solid rgba(249, 248, 248, 0.56);
  border-radius: 999px;
  background: rgba(249, 248, 248, 0.78);
  color: var(--brand-gray-11);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(161, 187, 202, 0.84);
  border-color: rgba(161, 187, 202, 0.86);
  color: var(--brand-gray-11);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.button--ghost {
  background: rgba(249, 248, 248, 0.06);
  color: var(--fg);
  border-color: rgba(249, 248, 248, 0.14);
  box-shadow: none;
}

.button--ghost:hover {
  background: rgba(249, 248, 248, 0.10);
  border-color: var(--accent);
  color: var(--fg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* --- Slide navigation ---------------------------------------------- */
.slide-nav {
  position: fixed;
  top: 50%;
  right: clamp(14px, 2.4vw, 28px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
}

.slide-nav__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slide-nav__arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 248, 248, 0.14);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.48), rgba(68, 66, 74, 0.32));
  color: var(--fg);
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.slide-nav__arrow:hover,
.slide-nav__arrow:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(249, 248, 248, 0.28);
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.62), rgba(68, 66, 74, 0.44));
  outline: none;
}

.slide-nav__arrow[disabled] {
  opacity: 0.32;
  pointer-events: none;
}

.slide-nav__arrow svg {
  display: block;
}

.slide-nav__dot {
  position: relative;
  width: 32px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(249, 248, 248, 0.14);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.40), rgba(68, 66, 74, 0.26));
  color: rgba(249, 248, 248, 0.72);
  cursor: pointer;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: width .28s cubic-bezier(0.16, 1, 0.3, 1), height .28s cubic-bezier(0.16, 1, 0.3, 1), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.slide-nav__dot:hover,
.slide-nav__dot:focus-visible {
  border-color: rgba(249, 248, 248, 0.30);
  color: var(--fg);
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.56), rgba(68, 66, 74, 0.40));
  outline: none;
}

.slide-nav__dot[aria-current="true"] {
  width: 40px;
  height: 30px;
  border-color: rgba(249, 248, 248, 0.62);
  background: linear-gradient(145deg, rgba(249, 248, 248, 0.94), rgba(222, 222, 222, 0.78));
  color: var(--brand-gray-11);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

.slide-nav__num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.slide-nav__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid rgba(249, 248, 248, 0.14);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(50, 48, 56, 0.70), rgba(68, 66, 74, 0.50));
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity .18s ease, transform .18s ease;
}

.slide-nav__dot:hover .slide-nav__tip,
.slide-nav__dot:focus-visible .slide-nav__tip {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Discreet progress label below the dot column on desktop */
.slide-nav__counter {
  margin-top: 4px;
  color: rgba(249, 248, 248, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .slide-nav {
    top: auto;
    bottom: calc(20px + var(--safe-bottom));
    right: 50%;
    flex-direction: row;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(249, 248, 248, 0.12);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(50, 48, 56, 0.56), rgba(68, 66, 74, 0.40));
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transform: translateX(50%);
  }

  .slide-nav__list {
    flex-direction: row;
    gap: 6px;
    padding: 0;
  }

  .slide-nav__arrow {
    width: 30px;
    height: 30px;
    background: transparent;
    border-color: rgba(249, 248, 248, 0.18);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .slide-nav__dot {
    width: 14px;
    height: 8px;
    border-radius: 3px;
    border-color: rgba(249, 248, 248, 0.22);
    background: rgba(249, 248, 248, 0.10);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .slide-nav__dot[aria-current="true"] {
    width: 26px;
    background: rgba(249, 248, 248, 0.92);
    border-color: rgba(249, 248, 248, 0.6);
  }

  .slide-nav__num,
  .slide-nav__tip,
  .slide-nav__counter {
    display: none;
  }

  .brand-mark {
    width: 108px;
    height: 26px;
  }

  .nav-menu > summary {
    min-height: 40px;
    padding: 0 14px 0 16px;
    font-size: 12px;
  }

  .content {
    bottom: calc(80px + var(--safe-bottom));
    left: 22px;
    width: calc(100vw - 44px);
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  h1,
  h2 {
    max-width: 14ch;
    font-size: clamp(34px, 11vw, 52px);
    letter-spacing: -0.02em;
  }

  .lead,
  .content p:not(.eyebrow) {
    max-width: 95%;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.45;
  }

  .button {
    min-height: 46px;
    margin-top: 24px;
    padding: 13px 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience {
    scroll-behavior: auto;
  }

  .scene.is-buffering .poster-fallback {
    animation: none;
  }

  .scene .eyebrow,
  .scene .content > p:not(.eyebrow),
  .scene .lead,
  .scene .content > .button,
  .scene .actions,
  .scene h1 .word-inner,
  .scene h2 .word-inner {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

html[dir="rtl"] .chapters-panel { left: 0; right: auto; }
html[dir="rtl"] .chapters-panel button { text-align: right; }
@media (max-width: 720px) {
  .chapters-panel { left: 8px; right: 8px; top: calc(100% + 6px); width: auto; }
}

/* --- RTL Support ---------------------------------------------------- */
html[dir="rtl"] .experience {
  direction: ltr; /* Keeps horizontal timeline geometry and scroll offsets consistent */
}

html[dir="rtl"] .content {
  direction: rtl;
  text-align: right;
}

@media (min-width: 769px) {
  html[dir="rtl"] .content {
    left: auto;
    right: clamp(24px, 7vw, 112px);
  }

  html[dir="rtl"] .slide-nav {
    right: auto;
    left: clamp(14px, 2.4vw, 28px);
  }

  html[dir="rtl"] .slide-nav__tip {
    right: auto;
    left: calc(100% + 12px);
  }
}

@media (max-width: 768px) {
  html[dir="rtl"] .content {
    left: auto;
    right: 22px;
  }
}

