html, body {
  height: 100%;
  overflow: hidden;
}

.deck {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(31, 130, 151, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(53, 113, 51, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(203, 151, 3, 0.1) 0%, transparent 60%),
    linear-gradient(165deg, #f7fdf8 0%, #eef8f4 42%, #f8fbf4 100%);
}

.deck::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 57, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 57, 64, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 5.5rem 5.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.slide.brand-slide {
  padding: 0;
  justify-content: stretch;
  color: var(--white);
}

.slide-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.slide-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
}

.slide-lead {
  margin: 0 0 1.5rem;
  max-width: 44rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.3rem;
}

.card h3 { margin: 0 0 0.45rem; font-size: 1.15rem; }
.card p, .card li { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }

.ui-bar {
  position: fixed;
  top: 1rem;
  right: 1.1rem;
  z-index: 40;
  display: flex;
  gap: 0.4rem;
}

.ui-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
}

.ui-btn:hover {
  background: var(--white);
  color: var(--green);
}

#confetti-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.brand-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.4rem;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 5;
}

.footer-left, .footer-mid, .footer-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.footer-mid { flex: 1; justify-content: center; }

.footer-item + .footer-item {
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.footer-dots { display: flex; gap: 0.35rem; align-items: center; }

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.dot.active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.footer-meta { opacity: 0.95; font-variant-numeric: tabular-nums; }

.brand-hero,
.brand-thanks {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(31, 130, 151, 0.45), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(53, 113, 51, 0.28), transparent 34%),
    radial-gradient(circle at 70% 18%, rgba(203, 151, 3, 0.16), transparent 26%),
    linear-gradient(160deg, #00262a 0%, #003940 48%, #0b5a66 100%);
}

.brand-hero::before,
.brand-thanks::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -180px;
  right: -140px;
}

.brand-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2.2rem 3rem 0;
}

.brand-logo-img {
  height: 92px;
  width: auto;
  animation: logoFloat 6s ease-in-out infinite;
}

.brand-center {
  position: relative;
  z-index: 1;
  padding: 5vh 4rem 0;
  max-width: 980px;
}

.brand-center h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.12;
}

.brand-center h1 em {
  color: var(--accent);
  font-style: normal;
}

.brand-slide .kicker {
  color: var(--accent);
}

.brand-slide .kicker::before {
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.accent-line {
  width: 210px;
  height: 4px;
  margin: 1.1rem 0 0;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 99px;
}

.stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 4.5vh 4rem 0;
  max-width: 980px;
}

.expert-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  backdrop-filter: blur(8px);
}

.expert-card .mini {
  color: var(--accent);
}

.expert-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.expert-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.5;
}

.brand-web {
  position: absolute;
  left: 3rem;
  bottom: 4.6rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  z-index: 2;
}

.brand-hero-mark {
  position: absolute;
  right: 7%;
  top: 46%;
  width: min(34vw, 400px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.92;
  z-index: 1;
  pointer-events: none;
  animation: logoFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.28));
}

.lesson-chip {
  position: absolute;
  right: 3rem;
  bottom: 4.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.thanks-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 2rem 3rem;
}

.thanks-wrap h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: 0.02em;
}

.thanks-wrap .accent-line { margin: 1.1rem auto 1.6rem; }

.thanks-logo {
  height: 88px;
  width: auto;
  animation: logoFloat 6s ease-in-out infinite;
}

.thanks-lead {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.thanks-note {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1100px) {
  .brand-hero-mark { display: none; }
}

@media print {
  @page { size: landscape; margin: 10mm; }
  html, body, .deck { height: auto; overflow: visible; background: #fff; }
  .deck::before, .ui-bar { display: none !important; }
  .slide {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-after: always;
    height: 190mm;
  }
  .brand-logo-img,
  .brand-hero-mark,
  .thanks-logo {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .slide { padding: 2rem 1.2rem 4.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand-center, .stats-row { padding-left: 1.4rem; padding-right: 1.4rem; }
  .footer-mid { display: none; }
  .stats-row { grid-template-columns: 1fr; }
}
