* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.slide.active {
  display: flex;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65) 100%);
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.content h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.content .subtitle {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.nav-controls {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  direction: ltr;
}

.nav-controls button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-controls button:hover {
  background: rgba(255,255,255,0.3);
}

/* ===================== Slide 2: Ondas ownership map ===================== */
.slide-map {
  flex-direction: column;
  background: radial-gradient(circle at 50% 44%, #0d1b3e 0%, #060a18 55%, #03060f 100%);
  color: #fff;
}

.map-heading {
  position: absolute;
  top: 4.5vh;
  width: 100%;
  text-align: center;
  z-index: 8;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
}

.map-heading h2 {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.map-heading .ondas-name { color: #2f7bff; }

.map-sub {
  margin-top: 0.5rem;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
}

.orbit {
  position: relative;
  width: min(80vmin, 780px);
  height: min(80vmin, 780px);
  margin-top: 5vh;
}

/* Ondas center hub */
.center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  width: 24%;
  height: 24%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #3f8bff 0%, #1a56c4 55%, #0c2d6b 100%);
  box-shadow: 0 0 0 6px rgba(47,123,255,0.18), 0 0 55px rgba(47,123,255,0.6);
  z-index: 7;
  opacity: 0;
  animation: popIn 0.7s cubic-bezier(.2,1.3,.4,1) 1.3s forwards,
             glowPulseBlue 3s ease-in-out 2.3s infinite;
}

.center-word {
  font-size: clamp(1rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #fff;
}

.center-tag {
  margin-top: 0.3em;
  font-size: clamp(0.5rem, 1vw, 0.72rem);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

/* Sentrycs: appears center, then slides to the left ring position */
.sentrycs-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.3em;
  background: radial-gradient(circle at 50% 35%, #1ad1e0 0%, #12aebd 55%, #0a7c88 100%);
  box-shadow: 0 0 0 5px rgba(26,209,224,0.18), 0 0 45px rgba(26,209,224,0.55);
  z-index: 6;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: sentrycsJourney 2.2s cubic-bezier(.5,0,.2,1) 0s forwards,
             glowPulseTeal 3s ease-in-out 3s infinite;
}

.sentrycs-word {
  font-size: clamp(0.75rem, 1.9vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #04252a;
}

.sentrycs-tag {
  margin-top: 0.25em;
  font-size: clamp(0.42rem, 0.85vw, 0.62rem);
  font-weight: 600;
  color: rgba(4,37,42,0.8);
}

/* Other company nodes */
.sib {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15%;
  height: 15%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.3em;
  font-size: clamp(0.5rem, 1.05vw, 0.82rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--c);
  box-shadow: 0 0 18px -4px var(--c), inset 0 0 20px -12px var(--c);
  backdrop-filter: blur(3px);
  z-index: 5;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  animation: sibIn 0.6s cubic-bezier(.2,1.2,.4,1) var(--d) forwards;
}

/* Connector lines from Ondas center to each company */
.links { position: absolute; inset: 0; z-index: 3; }

.link {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 2px;
  width: 40%;
  transform-origin: left center;
  transform: rotate(var(--a)) scaleX(0);
  background: linear-gradient(90deg, rgba(47,123,255,0.7), rgba(47,123,255,0.05));
  animation: lineGrow 0.55s ease var(--d) forwards;
}

.link-sentrycs {
  height: 3px;
  background: linear-gradient(90deg, rgba(26,209,224,0.85), rgba(26,209,224,0.05));
}

/* ---- Animations ---- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes sibIn {
  to {
    opacity: 1;
    transform: translate(calc(-50% + var(--x) * 32vmin), calc(-50% + var(--y) * 32vmin)) scale(1);
  }
}
@keyframes lineGrow {
  to { transform: rotate(var(--a)) scaleX(1); }
}
/* Sentrycs: fade in at center, hold, then travel to the left ring slot */
@keyframes sentrycsJourney {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 1; transform: translate(calc(-50% - 32vmin), -50%) scale(1); }
}
@keyframes glowPulseBlue {
  0%,100% { box-shadow: 0 0 0 6px rgba(47,123,255,0.18), 0 0 55px rgba(47,123,255,0.6); }
  50%     { box-shadow: 0 0 0 10px rgba(47,123,255,0.10), 0 0 75px rgba(47,123,255,0.85); }
}
@keyframes glowPulseTeal {
  0%,100% { box-shadow: 0 0 0 5px rgba(26,209,224,0.18), 0 0 45px rgba(26,209,224,0.55); }
  50%     { box-shadow: 0 0 0 9px rgba(26,209,224,0.10), 0 0 62px rgba(26,209,224,0.8); }
}

/* Replay animations each time the slide becomes active */
.slide-map:not(.active) .map-heading,
.slide-map:not(.active) .center-node,
.slide-map:not(.active) .sentrycs-node,
.slide-map:not(.active) .sib,
.slide-map:not(.active) .link {
  animation: none;
  opacity: 0;
}

/* ===================== Slide 3: Ondas video ===================== */
.slide-video {
  background: #000;
  flex-direction: column;
}

.video-title {
  text-align: center;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.video-title-main {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(47,123,255,0.5);
}

.video-title-sub {
  font-size: clamp(0.8rem, 1.8vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}

.video-frame {
  position: relative;
  width: min(88vw, 1600px);
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border-radius: 10px;
  overflow: hidden;
}

.video-frame .yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.video-poster:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  border-radius: 50%;
  background: rgba(226,0,43,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-poster:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(226,0,43,1);
}

.play-tri {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: clamp(14px, 1.8vw, 20px) solid transparent;
  border-bottom: clamp(14px, 1.8vw, 20px) solid transparent;
  border-left: clamp(24px, 3vw, 34px) solid #fff;
}

.video-caption {
  margin-top: 1rem;
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.video-caption a {
  color: #7db8ff;
  text-decoration: none;
}

.video-caption a:hover { text-decoration: underline; }

/* ===================== Slide 5: SW architect / C2 system ===================== */
.slide-arch {
  flex-direction: column;
  background: radial-gradient(circle at 50% 34%, #0d1b3e 0%, #060a18 60%, #03060f 100%);
  color: #fff;
}

.arch-heading {
  position: absolute;
  top: 3.5vh;
  width: 100%;
  text-align: center;
  z-index: 5;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
}

.arch-heading h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.arch-stage {
  position: relative;
  width: min(94vw, 1600px);
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  margin-top: 8vh;
}

.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.node rect { fill: rgba(255,255,255,0.05); stroke: var(--c); stroke-width: 2.5; }
.node text { fill: #eef4ff; font-weight: 600; font-size: 20px; text-anchor: middle; dominant-baseline: middle; }

.road { stroke: rgba(120,165,225,0.22); stroke-width: 4; fill: none; stroke-linecap: round; }
.flow {
  stroke: var(--fc, #7fd6ff);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1 15;
  animation: flow var(--fd, 1.8s) linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -32; } }

.unitbox { fill: none; stroke: #5f8fc4; stroke-width: 2; stroke-dasharray: 10 7; opacity: 0.8; }
.frame { fill: none; stroke: #6ea8e6; stroke-width: 2.5; }
.frame.outer { stroke: #9a86ff; stroke-width: 3; }
.flabel { fill: #a9c6f0; font-weight: 600; font-size: 22px; }
.flabel.small { font-size: 18px; }
.flabel.outer-l { fill: #b9a9ff; }
.slabel { fill: #6f9fd0; font-size: 16px; letter-spacing: 0.05em; }

.c2-frame { fill: #07131f; stroke: #2f6ea5; stroke-width: 2; }
.grid { stroke: rgba(90,150,210,0.15); stroke-width: 1; }
.land { fill: rgba(40,120,85,0.35); stroke: rgba(90,210,150,0.4); stroke-width: 1.5; }
.ring { fill: none; stroke: rgba(95,165,225,0.22); stroke-width: 1.5; }
.cross { stroke: rgba(95,165,225,0.2); stroke-width: 1; }
.sweep line { stroke: #43e5c4; }
.track .vec { stroke-width: 2; }
.blip { fill: none; stroke: var(--tc); stroke-width: 2; animation: blip 2.2s ease-out infinite; }
@keyframes blip { 0% { r: 3; opacity: 0.9; } 100% { r: 24; opacity: 0; } }
.sweep { animation: sweep 4.5s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.mv1 { animation: mv1 6s ease-in-out infinite alternate; }
.mv2 { animation: mv2 7s ease-in-out infinite alternate; }
@keyframes mv1 { to { transform: translate(34px, -20px); } }
@keyframes mv2 { to { transform: translate(-28px, 18px); } }

.stg { opacity: 0; animation: stgIn 0.7s ease var(--sd) forwards; }
@keyframes stgIn { from { opacity: 0; } to { opacity: 1; } }
.slide-arch:not(.active) .stg { animation: none; opacity: 0; }
.slide-arch:not(.active) .arch-heading { animation: none; opacity: 0; }

.video-frame.embed-failed::after {
  content: "Couldn't play here \2014 use \201CWatch on YouTube\201D below";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===================== Slide 6: AI / What is an LLM ===================== */
.slide-ai {
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #171436 0%, #0a0a1e 60%, #050510 100%);
  color: #fff;
  padding: clamp(10vh, 13vh, 15vh) 4vw 4vh;
}

.ai-heading {
  position: absolute;
  top: 3.5vh;
  width: 100%;
  text-align: center;
  z-index: 5;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
}
.ai-heading h2 { font-size: clamp(2rem, 4.8vw, 4rem); font-weight: 700; }

.ai-body {
  width: min(94vw, 1500px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1rem, 3vh, 2.4rem);
  text-align: right;
}

.ai-points { display: flex; flex-direction: column; gap: clamp(0.6rem, 1.8vh, 1.3rem); }
.ai-point {
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.4;
  position: relative;
  padding-right: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease var(--d) forwards;
}
.ai-point b { font-weight: 700; color: #a99bff; }
.ai-point::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.5em;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #7b6cff;
  box-shadow: 0 0 14px #7b6cff;
}

.ai-demo {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(150,140,255,0.25);
  border-radius: 18px;
  padding: clamp(1.1rem, 2.6vh, 1.9rem) clamp(1.4rem, 3vw, 2.4rem);
  opacity: 0;
  animation: fadeUp 0.6s ease var(--d) forwards;
}
.ai-prompt { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 500; margin-bottom: clamp(0.8rem, 2vh, 1.4rem); }
.ai-blank { color: #7b6cff; letter-spacing: 2px; }
.ai-caret {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: #a99bff;
  margin-right: 3px;
  vertical-align: -3px;
  animation: blinkCaret 1s steps(1) infinite;
}
@keyframes blinkCaret { 50% { opacity: 0; } }

.ai-cands { display: flex; flex-direction: column; gap: clamp(0.5rem, 1.4vh, 0.9rem); }
.ai-cand { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.2rem); font-size: clamp(1.1rem, 2.3vw, 1.8rem); }
.ai-cw { width: 6.5rem; text-align: right; color: #cfd3ff; }
.ai-track {
  position: relative;
  flex: 1;
  height: clamp(0.9rem, 1.8vh, 1.3rem);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.ai-fill {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123,108,255,0.5), #7b6cff);
  animation: barFill 0.9s ease var(--bd) forwards;
}
.ai-cand.top .ai-fill { background: linear-gradient(90deg, #4de0c0, #12b886); }
.ai-cand.top .ai-cw { color: #7ff0d6; font-weight: 700; }
.ai-pct { width: 4rem; text-align: left; color: #9aa0c8; font-variant-numeric: tabular-nums; }
@keyframes barFill { to { width: var(--w); } }

.ai-qa { border-right: 5px solid #7b6cff; padding: clamp(0.5rem, 1.5vh, 1rem) clamp(1.2rem, 2vw, 1.8rem) 0.2rem; }
.ai-q {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #a99bff;
  opacity: 0;
  animation: fadeUp 0.6s ease var(--d) forwards;
}
.ai-quote { color: #4de0c0; }
.ai-a {
  margin-top: clamp(0.5rem, 1.5vh, 1rem);
  font-size: clamp(1.2rem, 2.6vw, 2.1rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  opacity: 0;
  animation: fadeUp 0.6s ease var(--d) forwards;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.slide-ai:not(.active) .ai-heading,
.slide-ai:not(.active) .ai-point,
.slide-ai:not(.active) .ai-demo,
.slide-ai:not(.active) .ai-q,
.slide-ai:not(.active) .ai-a { animation: none; opacity: 0; }
.slide-ai:not(.active) .ai-fill { animation: none; width: 0; }

/* ===================== Slide 7: From coding to directing ===================== */
.slide-transform {
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 50% 28%, #17142e 0%, #0a0a1c 60%, #050510 100%);
  color: #fff;
  padding: clamp(9vh, 12vh, 14vh) 4vw 4vh;
}

.tf-heading {
  position: absolute;
  top: 3.5vh;
  width: 100%;
  text-align: center;
  z-index: 5;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
}
.tf-heading h2 { font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 700; }

.tf-intro {
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}

.tf-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  width: min(96vw, 1500px);
  margin: 0 auto;
}

.tf-card {
  flex: 1 1 0;
  max-width: 560px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(150,140,255,0.2);
  border-radius: 20px;
  padding: clamp(0.8rem, 2vh, 1.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 1.5vh, 1rem);
}
.tf-illu { width: 100%; height: auto; max-height: 40vh; }
.tf-cap { text-align: center; font-size: clamp(1rem, 2.1vw, 1.6rem); font-weight: 500; line-height: 1.35; }
.tf-card:first-child .tf-cap { color: #ffcf7a; }
.tf-card:last-child .tf-cap { color: #7ff0d6; }

.tf-arrow-mid { flex: 0 0 auto; width: clamp(46px, 7vw, 90px); }
.tf-arrow-mid svg { width: 100%; height: auto; }

.tf-foot {
  text-align: center;
  font-size: clamp(1.05rem, 2.3vw, 1.8rem);
  font-weight: 400;
  color: #cfd3ff;
  margin-top: clamp(1rem, 3vh, 2rem);
}

.tf-reveal { opacity: 0; animation: fadeUp 0.6s ease var(--d) forwards; }

.tf-page-float { animation: tfFloat 4s ease-in-out infinite; }
.tf-page-float2 { animation: tfFloat 5.5s ease-in-out infinite; }
@keyframes tfFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tf-glow { animation: tfGlow 2s ease-in-out infinite; }
@keyframes tfGlow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.tf-arrow-flow { stroke-dasharray: 6 12; animation: tfArrowFlow 1s linear infinite; }
@keyframes tfArrowFlow { to { stroke-dashoffset: -18; } }
.tf-writeline { stroke-dasharray: 70; stroke-dashoffset: 70; animation: tfWrite 4s ease-in-out infinite; }
@keyframes tfWrite { 0% { stroke-dashoffset: 70; } 35% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 70; } }
.tf-spark { transform-box: fill-box; transform-origin: center; animation: tfSpark 2.4s ease-in-out infinite; }
@keyframes tfSpark { 0%,100% { opacity: 0.3; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.1); } }

.slide-transform:not(.active) .tf-heading,
.slide-transform:not(.active) .tf-reveal { animation: none; opacity: 0; }

/* ===================== Slides 8-11: Impact on companies ===================== */
.slide-impact {
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: clamp(9vh, 12vh, 14vh) 4vw 5vh;
  text-align: center;
}
.slide-impact.bg-decline { background: radial-gradient(circle at 50% 30%, #2a1030 0%, #12081c 60%, #070410 100%); }
.slide-impact.bg-maint   { background: radial-gradient(circle at 50% 30%, #2c1a10 0%, #180b06 60%, #0b0503 100%); }
.slide-impact.bg-smart   { background: radial-gradient(circle at 50% 30%, #0f2a24 0%, #08130f 60%, #04100c 100%); }
.slide-impact.bg-junior  { background: radial-gradient(circle at 50% 30%, #14203c 0%, #0a0f1e 60%, #05060f 100%); }

.impact-heading {
  position: absolute;
  top: 3.5vh;
  width: 100%;
  text-align: center;
  z-index: 5;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
}
.impact-heading h2 { font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 700; }

.impact-illu {
  width: min(90vw, 900px);
  height: auto;
  max-height: 48vh;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.impact-text {
  max-width: min(92vw, 1000px);
  margin: clamp(1rem, 3vh, 2rem) auto 0;
  font-size: clamp(1.15rem, 2.5vw, 2.1rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}
.impact-text b { font-weight: 700; color: #fff; }

.im-float  { animation: tfFloat 4s ease-in-out infinite; }
.im-float2 { animation: tfFloat 5.2s ease-in-out infinite; }
.im-flicker { transform-box: fill-box; transform-origin: center bottom; animation: imFlicker 1.3s ease-in-out infinite; }
@keyframes imFlicker { 0%,100% { transform: scaleY(1); opacity: 0.85; } 50% { transform: scaleY(1.2); opacity: 1; } }
.im-pulse { transform-box: fill-box; transform-origin: center; animation: imPulse 2.2s ease-in-out infinite; }
@keyframes imPulse { 0%,100% { opacity: 0.6; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.08); } }

.slide-impact:not(.active) .impact-heading,
.slide-impact:not(.active) .impact-illu,
.slide-impact:not(.active) .impact-text { animation: none; opacity: 0; }

/* ===================== Slide 12: Thank you / party ===================== */
.slide-thanks {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2a1840 0%, #140a26 55%, #08040f 100%);
  color: #fff;
}

.confetti { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.confetti span {
  position: absolute;
  top: -8%;
  background: var(--c);
  opacity: 0.9;
  animation: confFall var(--dur) linear var(--delay) infinite;
}
@keyframes confFall {
  0%   { transform: translateY(-12vh) rotate(0deg); }
  100% { transform: translateY(115vh) rotate(760deg); }
}

.thanks-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.8rem, 2.5vh, 1.8rem);
  padding: 0 4vw;
}
.thanks-illu {
  width: min(80vw, 620px);
  height: auto;
  max-height: 46vh;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
.thanks-inner h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 30px rgba(255,140,220,0.45);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.thanks-sub {
  font-size: clamp(1.2rem, 2.8vw, 2.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.clink-spark { transform-box: fill-box; transform-origin: center; animation: imPulse 1.5s ease-in-out infinite; }

.slide-thanks:not(.active) .thanks-illu,
.slide-thanks:not(.active) .thanks-inner h1,
.slide-thanks:not(.active) .thanks-sub { animation: none; opacity: 0; }

/* ===================== Slide 1: Cover ===================== */
.slide-cover {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 32%, #10254a 0%, #0a1024 55%, #05060f 100%);
  color: #fff;
  padding: 4vh 4vw;
}
.cover-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 3vh, 2rem); }
.cover-title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(47,123,255,0.35);
  opacity: 0;
  animation: fadeDown 0.9s ease forwards;
}
.cover-sub {
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.cover-icons { display: flex; gap: clamp(1.5rem, 5vw, 4rem); margin-top: clamp(1rem, 3vh, 2.5rem); }
.cover-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  animation: coverPop 0.6s cubic-bezier(.2,1.3,.4,1) var(--d) forwards;
}
.cover-badge {
  width: clamp(72px, 10vw, 120px);
  height: clamp(72px, 10vw, 120px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c);
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--c);
  box-shadow: 0 0 30px -6px var(--c), inset 0 0 24px -14px var(--c);
}
.cover-badge svg { width: 58%; height: 58%; }
.cover-label { font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 600; color: #eaf2ff; }
@keyframes coverPop { to { opacity: 1; transform: translateY(0) scale(1); } }
.cover-rotor { transform-box: fill-box; transform-origin: center; animation: spin 0.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.slide-cover:not(.active) .cover-title,
.slide-cover:not(.active) .cover-sub,
.slide-cover:not(.active) .cover-item { animation: none; opacity: 0; }
