:root {
  --bg: #ffffff;
  --text: #202124;
  --accent: #f8f9fa;
  --border: #dfe1e5;
  z-index: 1105;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-radius: 8px;
  --font-main: "Calibri", sans-serif;
  --nav-bg: rgba(255, 255, 255, 0.86);
  --nav-text: #1f2937;
  --nav-accent: #ff6a3d;
  --nav-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  --nav-border: rgba(15, 23, 42, 0.08);
  --nav-pill: #f3f4f6;

  /* Google Colors */
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --google-grey: #5f6368;

  --bg-topline: #ffffff;
  --bg-cost: #ffffff;
  --bg-efficiency: #ffffff;

  --h-weight: 400;
  --h-line-height: 1.2;
  --b-weight: 400;
  --sub-weight: 400;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--b-weight);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Header - Bold Floating Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 28px;
  z-index: 1000;
  background: var(--nav-bg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-sizing: border-box;
  font-size: 13px;
  color: var(--nav-text);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(10px);
  animation: navFloat 0.6s ease;
}

header::before {
  content: none;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.86;
  transition:
    opacity 0.2s,
    transform 0.2s ease;
  justify-self: start;
}

.brand-container:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.unlock-pill {
  position: absolute;
  bottom: -15px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #000000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  animation: initialShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.5s both;
}

@keyframes initialShake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-2px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(2px, 0, 0);
  }
}

.unlock-pill::before {
  content: "\1f512";
  font-size: 14px;
  filter: grayscale(100%) brightness(0);
}

.card.explored .unlock-pill {
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
}

.card:hover .unlock-pill {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  color: #000000;
  border-color: #000000;
}

.brand-logo-img {
  height: 26px;
  width: auto;
}

.breadcrumb-nav {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--google-grey);
}

.breadcrumb-item {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.breadcrumb-item:hover {
  text-decoration: underline;
  color: #000;
}

.breadcrumb-item.active {
  color: #000;
  font-weight: bold;
}

/* Main Slide Area */
.slide-deck {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  box-sizing: border-box;
  background: #fff;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.logo-hero {
  height: 120px;
  width: auto;
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .logo-hero {
    width: min(320px, 90vw);
    height: 140px;
  }

  #hero-slide .logo-hero,
  #final-slide .logo-hero {
    width: 65vw;
    height: auto;
  }
}

/* Final Slide Styles */
.final-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.final-logo {
  margin-bottom: 30px;
  /* Push logo up further from text */
}

.final-tagline {
  font-size: 24px;
  font-weight: 300;
  color: var(--google-grey);
  letter-spacing: 0.02em;
}

@media (min-width: 769px) {
  .final-tagline {
    font-size: 2.8vw;
    line-height: 1.4;
    margin-top: 10px;
  }
}

h1 {
  font-size: 40px;
  color: #202124;
  margin-bottom: 20px;
  font-weight: normal;
}

.subtitle {
  font-size: 34px;
  color: var(--google-grey);
  margin-top: 5px;
}

#intro-slide .subtitle {
  font-size: 40px;
}

@media (min-width: 769px) {
  #intro-slide h1 {
    font-size: 6.5vw;
    line-height: 1.1;
  }

  #intro-slide .subtitle {
    font-size: 6.5vw;
    margin-top: 16px;
  }

  #tree-slide h1 {
    font-size: 3.2vw;
    line-height: 1.1;
  }
}

/* Grid - Google Cards Style */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  margin-top: 30px;
}

@media (min-width: 769px) {
  :root {
    --desktop-footer-safe-padding: 90px;
  }

  /* If content grows taller than the viewport, allow the slide to scroll instead of clipping */
  .slide {
    overflow-y: auto;
    padding-bottom: var(--desktop-footer-safe-padding);
  }

  /* Push tree-slide content below the fixed header so title isn't clipped */
  #tree-slide {
    justify-content: center;
    padding-top: 80px;
  }

  .grid {
    max-width: 1800px;
    gap: 32px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* Engagement Model: left box, handshake, right box */
  #engagement-model .engagement-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 70px;
  }

  #engagement-model .engagement-container .engagement-box {
    flex: 0 0 420px;
    width: 420px;
    max-width: none;
  }

  #engagement-model .engagement-container .engagement-icon {
    flex: 0 0 auto;
  }

  .grid .card {
    flex: 1 1 calc(33.333% - 32px);
    max-width: 400px;
    min-width: 280px;
    padding: 24px;
  }

  /* Use higher specificity than the base `.card-content` rule below */
  .card .card-content {
    font-size: 19px;
    line-height: 1.5;
  }

  /* Use higher specificity than the base `.metric-large` rule below */
  .card .metric-large {
    font-size: 44px;
    margin-bottom: 10px;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(32, 33, 36, 0.12);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  /* Fixed width for consistent grid */
  position: relative;
  box-sizing: border-box;
}

.card:hover {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: transparent;
  z-index: 2;
}

.card.explored {
  background: #f8f9fa;
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f1f3f4;
  border-radius: 4px;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
  /* Greyscale images until hover? Optional but fits aesthetic */
}

.card-content {
  font-size: 14px;
  color: #202124;
  text-align: center;
  line-height: 1.4;
}

.metric-large {
  font-size: 24px;
  color: var(--google-blue);
  display: block;
  margin-bottom: 4px;
}

.lock-icon {
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.3;
}

/* Buttons - Google Style */
.nav-controls {
  position: fixed;
  bottom: 60px;
  right: 30px;
  z-index: 1001;
  display: flex;
  gap: 12px;
  pointer-events: none;
  /* Let clicks pass through the container */
}

.nav-btn {
  pointer-events: auto;
  /* Re-enable clicks on buttons */
  background: #000000;
  color: #ffffff;
  border: 1px solid #333;
  padding: 0 20px;
  height: 42px;
  line-height: 40px;
  border-radius: 22px;
  /* Pill shape for sexy look */
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.nav-btn:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  border-color: #555;
}

/* .nav-btn-alt removed to keep all buttons consistent (Black & Sexy) */
/* .nav-btn-alt {
    background: transparent;
    border: 1px solid #dadce0;
} */

.hidden {
  display: none !important;
}

/* Navigation */
.desktop-nav {
  display: flex;
  gap: 12px;
  margin: 0 auto;
  justify-self: center;
  grid-column: 2;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--nav-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid #111827;
  position: relative;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}

.desktop-nav a:hover {
  color: #111827;
  background: var(--nav-pill);
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.desktop-nav a.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.desktop-nav a:focus-visible {
  outline: 2px solid rgba(255, 106, 61, 0.35);
  outline-offset: 2px;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--nav-text);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  justify-self: end;
  grid-column: 3;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: -18px 0 30px rgba(15, 23, 42, 0.16);
  z-index: 2000;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-menu.hidden {
  transform: translateX(100%);
  opacity: 0;
  display: flex !important;
}

.mobile-menu a {
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 12px;
  border-radius: 10px;
  background: transparent;
  transition:
    background 0.2s,
    transform 0.2s;
}

.mobile-menu a:hover {
  background: #f3f4f6;
  transform: translateX(2px);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

@keyframes navFloat {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flowchart Section */
.flowchart-container {
  width: 100%;
  max-width: 1000px;
  height: auto;
  /* Let it grow naturally */
  overflow-y: visible;
  /* Let the slide handle the scrolling */
  margin-top: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
  /* Ensure content is not hidden by footer */
}

/* Simple mobile flow representation */
.flow-step {
  display: none;
  margin-bottom: 20px;
  text-align: center;
}

.flow-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

.flow-box.clickable {
  position: relative;
  cursor: pointer;
  border-color: #2563eb;
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.18),
    0 10px 22px rgba(37, 99, 235, 0.22);
  animation: clickPulse 1.6s ease-in-out infinite;
}

.flow-box.clickable::after {
  content: "\1f512\fe0e Unlock";
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid #000000;
  border-radius: 999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.flow-box.clickable.clicked-hidden-pill::after {
  opacity: 0;
  pointer-events: none;
}

.flow-arrow {
  font-size: 20px;
  color: var(--google-grey);
  margin: 5px 0;
}

/* Desktop Grid Flowchart */
.flow-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, auto);
  gap: 15px;
  width: 100%;
  grid-template-areas:
    "start a1 solution a2"
    ". . . ."
    "no case yes decision"
    "build a4 team integrate"
    "production handhold measure value";
  align-items: center;
  justify-items: center;
}

.flow-node {
  background: #fff;
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.flow-node.decision {
  background: #e8f0fe;
  color: #1967d2;
  border-color: #d2e3fc;
  font-weight: bold;
  transform: rotate(45deg);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Un-rotate text inside diamond */
/* Simplifying diamond for stability - just styled box */
.flow-node.decision {
  transform: none;
  width: 100%;
  height: auto;
  border: 2px solid #aecbfa;
}

.flow-arrow-right,
.flow-arrow-up-right,
.flow-arrow-down-right {
  color: var(--google-grey);
  font-size: 18px;
}

/* Engagement Model */
.engagement-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.engagement-box {
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 32px 32px 26px;
  border-radius: 22px;
  width: 100%;
  max-width: 340px;
  background: linear-gradient(140deg,
      rgba(255, 255, 255, 0.95),
      rgba(248, 250, 252, 0.9));
  box-shadow:
    0 24px 40px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.engagement-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(17, 24, 39, 0.4),
      rgba(148, 163, 184, 0.2));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.engagement-box::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.08), transparent 70%);
  opacity: 0.6;
}

.engagement-box h2 {
  font-size: 17px;
  margin: 2px 0 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding-bottom: 14px;
  color: #0f172a;
}

.clean-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0;
  display: grid;
  gap: 10px;
}

.clean-list li {
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  text-align: center;
  font-size: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 10px 18px rgba(15, 23, 42, 0.06);
  letter-spacing: 0.01em;
}

.engagement-icon {
  font-size: 46px;
  filter: drop-shadow(0 16px 22px rgba(15, 23, 42, 0.22));
}

/* Founder */
#founder h1 {
  margin-bottom: 24px;
  width: 100%;
}

.founder-container {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 980px;
  margin-top: 18px;
  text-align: left;
}

.founder-img {
  text-align: center;
  flex-shrink: 0;
}

.founder-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 18px 28px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

.founder-img h2 {
  font-size: 22px;
  color: #0f172a;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}

.info-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 16px;
  /* Increased font size */
  line-height: 1.5;
  color: #334155;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}


/* Team */
.team-founder {
  display: flex;
  justify-content: center;
  margin: 12px 0 22px;
}

.team-founder img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 18px 28px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.team-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 40px;
}

.team-card {
  width: 200px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  position: relative;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.team-card-inner {
  position: relative;
}

.team-card-front,
.team-card-back {
  width: 100%;
  text-align: center;
}

.team-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.team-card-front h3 {
  margin: 0;
  min-height: 24px;
}

.team-card-front p {
  margin: 0;
  min-height: 40px;
  width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-card.expandable {
  cursor: pointer;
}

.team-card.expandable:hover {
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.team-card.expandable:not(.expanded)::after {
  content: "\1f512\fe0e Unlock";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid #000000;
  border-radius: 999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.team-card.expanded::after {
  opacity: 0;
  pointer-events: none;
}

.team-card-back {
  margin-top: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease;
}

.team-card.expanded .team-card-back {
  max-height: 1000px;
  opacity: 1;
}

.team-back-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 10px;
}

.team-card-back {
  text-align: center;
}

.team-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  width: 100%;
}

.team-detail-list li {
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: #f1f3f4;
  border-radius: 50%;
  margin: 0 auto 15px;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 0;
  z-index: 1105;
  background: #f2f2f2;
  border-top: 1px solid #e4e4e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #5f6368;
}

.footer-content,
.brand-container {
  padding: 12px 30px;
}

@media (max-width: 768px) {
  .team-grid {
    gap: 28px;
  }

  .team-card {
    width: min(360px, 92vw);
    margin-left: auto;
    margin-right: auto;
  }
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.progress-bar-bg {
  width: 100px;
  height: 6px;
  background: #dadce0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #111827;
  width: 0%;
  transition: width 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }
}

@keyframes clickPulse {

  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 2px rgba(37, 99, 235, 0.18),
      0 10px 22px rgba(37, 99, 235, 0.18);
  }

  50% {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 6px rgba(37, 99, 235, 0.08),
      0 16px 30px rgba(37, 99, 235, 0.26);
  }
}

.wiggle {
  animation: wiggle 0.4s ease-in-out;
}

/* Responsiveness */
@media (max-width: 768px) {
  :root {
    --mobile-footer-height: 76px;
    --mobile-nav-gap: 10px;
  }

  /* Nav */
  .desktop-nav {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .grid {
    padding: 0 10px;
    max-height: none;
    /* Let it grow naturally */
    overflow-y: visible;
    /* Let the slide handle scrolling */
    justify-content: center;
    padding-bottom: 50px;
    /* Reduced from 150px, main padding is on slide */
  }

  .card {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }

  .slide {
    padding-top: 80px;
    justify-content: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    padding-bottom: 100px;
    /* Reduced dead space */
  }

  #hero-slide,
  #intro-slide {
    justify-content: center;
    /* Center vertically on mobile */
    padding-top: 0;
  }

  .logo-hero {
    max-width: 80%;
    /* Prevent overflow on small screens */
    height: auto;
  }

  h1 {
    font-size: 20px;
  }

  .subtitle {
    font-size: 14px;
  }

  #intro-slide .subtitle {
    font-size: 20px;
  }

  /* Keep breadcrumbs on mobile, but make them compact and non-wrapping */
  .breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1.1;
    max-width: calc(100vw - 24px);
    padding: 0 12px;
    min-height: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #breadcrumb-container:empty {
    opacity: 0;
  }

  .nav-controls {
    /* Keep nav buttons above the fixed footer on small screens */
    bottom: calc(var(--mobile-footer-height) + var(--mobile-nav-gap) + constant(safe-area-inset-bottom));
    bottom: calc(var(--mobile-footer-height) + var(--mobile-nav-gap) + env(safe-area-inset-bottom));
    right: 20px;
    width: auto;
  }

  footer {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    height: calc(var(--mobile-footer-height) + constant(safe-area-inset-bottom));
    height: calc(var(--mobile-footer-height) + env(safe-area-inset-bottom));
    padding: 6px 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .progress-container {
    margin: 0;
    justify-content: center;
    gap: 8px;
  }

  #progress-text {
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .progress-bar-bg {
    width: 70px;
    height: 3px;
  }

  .brand-container {
    padding: 0;
    font-size: 9px;
    line-height: 1.1;
    max-width: calc(100vw - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Flowchart Mobile */
  .flow-diagram {
    display: flex;
    flex-direction: column;
  }

  .flow-arrow-right {
    transform: rotate(90deg);
    margin: 5px 0;
  }

  /* Founder Mobile */
  .founder-container {
    flex-direction: column;
    align-items: center;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .engagement-container {
    gap: 20px;
  }

  .engagement-box {
    padding: 15px;
  }
}

/* Pulse animation for the boxes */
@keyframes ebbGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(66, 133, 244, 0.2));
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(66, 133, 244, 0.5));
  }

  100% {
    filter: drop-shadow(0 0 2px rgba(66, 133, 244, 0.2));
  }
}

.joint-type-standard-rectangle body,
.joint-type-standard-polygon body {
  animation: ebbGlow 4s infinite ease-in-out;
}

/* Make the links feel like they are moving */
@keyframes dashFlow {
  to {
    stroke-dashoffset: -20;
  }
}

.joint-link path {
  animation: dashFlow 1s infinite linear;
}

/* Container override for Section 3 */
#value-realisation .flowchart-container {
  width: 100%;
  max-width: 1100px;
  height: 550px;
  margin: 0 auto;
  overflow: visible;
  /* Allows glow to bleed out of container */
  display: flex;
  justify-content: center;
}

/* Remove the old CSS grid placeholder elements */
#value-realisation .flow-diagram,
#value-realisation .flow-step {
  display: none;
}

/* Node Pulse (Ebb and Glow) */
.joint-type-standard-rectangle body,
.joint-type-standard-polygon body {
  animation: nodePulse 4s infinite ease-in-out;
  transition: stroke 0.3s ease;
}

@keyframes nodePulse {
  0% {
    filter: drop-shadow(0 0 2px rgba(66, 133, 244, 0.1));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(66, 133, 244, 0.4));
  }

  100% {
    filter: drop-shadow(0 0 2px rgba(66, 133, 244, 0.1));
  }
}

/* Smooth dash movement for the links */
.joint-link path {
  animation: dashFlow 2s infinite linear;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -20;
  }
}

/* Style for the paper planes */
.path-plane {
  filter: drop-shadow(0 0 3px rgba(66, 133, 244, 0.6));
  pointer-events: none;
  /* Prevents the plane from interfering with clicks */
}

#value-realisation .flowchart-container {
  width: 95%;
  max-width: 1200px;
  height: auto;
  /* Allow natural growth */
  min-height: 60vh;
  /* Minimum height for desktop feel */
  margin: 20px auto;
  overflow: visible;
  /* No clipping */
  border: 1px solid transparent;
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
  /* pointer-events: none; */
  /* Removed to enable click interactions */
  /* Let scroll/touch pass through */
  touch-action: pan-y !important;
  /* Force browser to handle vertical scroll */
}

/* Ensure children don't steal events */
#value-realisation .flowchart-container svg,
#value-realisation .flowchart-container .joint-paper,
#value-realisation .flowchart-container .joint-paper>* {
  touch-action: pan-y !important;
}

@media (max-width: 768px) {
  #value-realisation .flowchart-container {
    height: auto;
    /* No fixed height on mobile */
    min-height: 500px;
    /* Ensure enough space for the chart */
    overflow: visible;
    padding-bottom: 0;
    /* Remove double padding (slide has 100px) */
  }
}

/* Node Glow and Particles stay the same as before */
.joint-type-standard-rectangle body,
.joint-type-standard-polygon body {
  animation: nodePulse 4s infinite ease-in-out;
}

@keyframes nodePulse {
  0% {
    filter: drop-shadow(0 0 2px rgba(66, 133, 244, 0.1));
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(66, 133, 244, 0.3));
  }

  100% {
    filter: drop-shadow(0 0 2px rgba(66, 133, 244, 0.1));
  }
}

.path-plane {
  filter: drop-shadow(0 0 3px rgba(66, 133, 244, 0.6));
}

@media (min-width: 769px) {
  header .brand-container {
    display: none;
  }
}