* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Space Grotesk', sans-serif;
    background: #f5f0df;
    color: #111;
    line-height: 1.6;
  }
  
  /* NAV */
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
  }
  
  .nav-logo a {
    text-decoration: none;
    font-weight: 700;
    color: #111;
    font-size: 1.25rem;
  }
  
  .nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #111;
    font-size: 0.9rem;
  }
  
  .nav-links a:hover {
    opacity: 0.6;
  }
  
  /* HERO */
  
  .hero {
    padding: 4rem 2.5rem 3rem 2.5rem;
    max-width: 900px;
  }
  
  .glow-title {
    position: relative;
    font-size: 2.3rem;
    font-weight: 700;
    display: inline-block;
  }
  
  .glow-title::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 10px;
    bottom: 10px;
    background: #01f79d;
    filter: blur(32px);
    opacity: 0.50;
    border-radius: 16px;
    z-index: -1;
    /* Initial glow state */
    filter: blur(36px);
    opacity: 0.75;

/* Animation */
animation: glowPulse 5.5s ease-in-out infinite;
  }
  @keyframes glowPulse {
    0% {
      opacity: 0.60;
      filter: blur(32px);
    }
  
    50% {
      opacity: 0.95;
      filter: blur(90px);
    }
  
    100% {
      opacity: 0.60;
      filter: blur(32px);
    }
  }
  
  .aha {
    display: inline-block;
    animation: ahaPop 5.5s cubic-bezier(.4,0,.2,1) infinite;
  }
  

  
  @keyframes ahaPop {
    0% {
      transform: translateY(0);
    }
  
    3% {
      transform: translateY(-1.5px);
    }
  
    6% {
      transform: translateY(0);
    }
  
    100% {
      transform: translateY(0);
    }
  }
  
  
    
  
  
  /* CASE CARDS */
  
  .case-overview {
    padding: 2rem 2.5rem;
    max-width: 1100px;
  }
  
  .section-heading {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  
  .case-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
  }
  
  .case-card:hover {
    transform: translateY(-4px);
    border-color: #020003;
    
  }
  
  /* EXPERIENCES */
  
  .experiences-section {
    padding: 3rem 2.5rem;
    max-width: 900px;
  }
  
  .experience-item {
    margin-bottom: 1.8rem;
  }
  
  .experience-item h3 {
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  
  /* CASE STUDY */
  
  .case-study-header {
    padding: 3rem 2.5rem 1rem 2.5rem;
  }
  
  .role-line {
    margin-top: 0.6rem;
    opacity: 0.7;
  }
  
  .header-divider {
    height: 1px;
    background: #e5e5e5;
    margin-top: 0.8rem;
  }
  
  .tag-container {
    margin-top: 0.8rem;
  }
  
  .tag-button {
    font-size: 0.75rem;
    padding: 5px 9px;
    margin-right: 0.5rem;
    background: transparent;
    color: #111;
    border: 1.5px solid #111;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .tag-button:hover {
    background: #111;
    color: #f5f0df;
  }
  
  .case-study-content {
    padding: 2rem 2.5rem;
    max-width: 900px;
  }
  
  .section {
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 1.15em;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #555;
  }

  .section-list {
    margin: 0.75rem 0 1rem 1.5rem;
    padding-left: 1rem;
    max-width: 42rem;
  }

  .section-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }

  /* CAROUSEL (click-only) */

  .carousel {
    margin: 1rem 0 1.25rem;
    max-width: 42rem;
    position: relative;
    padding: 0 2.5rem; /* space for side arrows */
  }

  .carousel-slides {
    width: 100%;
  }

  .carousel-slide {
    display: none;
  }

  .carousel-slide.is-active {
    display: block;
  }

  .carousel-slide-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
  }

  .carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none; /* let dots/image be clickable; re-enable on buttons */
  }

  .carousel-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    background: transparent;
    color: #111;
    border: none;
    border-radius: 0; /* remove circles around arrows */
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    flex: 0 0 auto;
    pointer-events: auto;
  }

  .carousel-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
  }

  .carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.75rem;
  }

  .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #111;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .carousel-dot.is-active {
    background: #111;
  }

  .carousel-btn:focus-visible,
  .carousel-dot:focus-visible {
    outline: 2px solid #01f79d;
    outline-offset: 2px;
  }

  .carousel-slide-row {
    display: flex;
    gap: 0.75rem;
  }

  .carousel-slide-row img {
    width: 50%;
  }

  /* FLIP DEMO (qb1 -> qb2) */
  .flip-demo {
    margin: 1rem 0 1.25rem;
    max-width: 42rem;
    perspective: 1000px;
  }

  .flip-card {
    width: 100%;
    min-height: 220px; /* fallback before JS syncs the real height */
    position: relative;
  }

  .flip-inner {
    width: 100%;
    /* Don't rely on percentage height (parent height can be "auto"),
       otherwise the absolute faces can end up with 0 height. */
    min-height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: none;
  }

  .flip-demo.is-flipped .flip-inner {
    transform: rotateY(180deg);
  }

  .flip-demo.is-looping .flip-inner {
    /* Hold on each image for ~3s before rotating */
    animation: flipLoop 7s ease-in-out infinite;
  }

  @keyframes flipLoop {
    /* 0deg hold (qb1) for 3s */
    0% {
      transform: rotateY(0deg);
    }

    42.857% {
      transform: rotateY(0deg);
    }

    /* rotate to 180deg (qb2) */
    50% {
      transform: rotateY(180deg);
    }

    /* 180deg hold (qb2) for 3s */
    92.857% {
      transform: rotateY(180deg);
    }

    /* rotate back to 360deg (qb1) */
    100% {
      transform: rotateY(360deg);
    }
  }

  .flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: block;
  }

  .flip-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    border: none;
    background: transparent;
  }

  .flip-back {
    transform: rotateY(180deg);
  }

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

    .flip-demo.is-looping .flip-inner {
      animation: none;
    }
  }

  #spark-curriculum-carousel {
    max-width: 46.2rem; /* ~10% larger than 42rem */
  }
  
  /* IMAGE PLACEHOLDER */
  
  .image-placeholder {
    height: 220px;
    background: #f2f2f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin: 1rem 0;
  }

  .case-study-media-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
    margin: 1rem 0;
  }

  .strategy-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .strategy-text {
    flex: 1 1 auto;
  }

  .strategy-media {
    flex: 0 0 380px;
    max-width: 380px;
  }

  .strategy-media .case-study-media-image {
    margin: 0; /* already handled by the section layout */
  }

  @media (max-width: 900px) {
    .strategy-layout {
      flex-direction: column;
    }

    .strategy-media {
      flex: 0 0 auto;
      max-width: 100%;
      width: 100%;
    }
  }

  .wand-demo-video-wrap {
    margin: 1rem auto 1.25rem;
    max-width: 720px; /* slightly smaller video window */
    width: 100%;
    border-radius: 12px;
    overflow: hidden; /* prevents any letterboxing/background showing at edges */
  }

  .wand-demo-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover; /* fill frame to avoid white edges */
    border-radius: 0;
    border: none;
    background: transparent;
  }

  /* CASE STUDY PASSWORD PROTECTION */

  body.case-study-page .navbar,
  body.case-study-page .case-study-header,
  body.case-study-page .case-study-content {
    display: none;
  }

  body.case-study-page.case-study-unlocked .navbar,
  body.case-study-page.case-study-unlocked .case-study-header,
  body.case-study-page.case-study-unlocked .case-study-content {
    display: block;
  }

  body.case-study-page.case-study-unlocked .navbar {
    display: flex;
  }

  .case-study-lock-overlay {
    position: fixed;
    inset: 0;
    background: #f5f0df;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
  }

  .case-study-lock-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 2rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }

  .case-study-lock-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .case-study-lock-text {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .case-study-lock-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .case-study-lock-input {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
  }

  .case-study-lock-input:focus {
    outline: none;
    border-color: #111;
  }

  .case-study-lock-error {
    font-size: 0.85rem;
    color: #c00;
    min-height: 1.2em;
  }

  .case-study-lock-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .case-study-lock-btn:hover {
    opacity: 0.9;
  }

  /* ABOUT */

  .about-page {
    padding: 3rem 2.5rem;
  }

  .about-grid {
    max-width: 980px;
    margin: 0 auto;
  }

  .about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .about-hiking-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .about-hiking-image {
    flex: 0 0 48%;
    max-width: 480px;
  }

  .about-hiking-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
  }

  .about-intro {
    flex: 1 1 auto;
  }

  .about-intro p {
    margin-bottom: 1rem;
  }

  .about-intro p:last-child {
    margin-bottom: 0;
  }

  .about-outro {
    flex: 1 1 auto;
  }

  .about-outro p {
    margin-bottom: 0;
  }

  .wave-text {
    display: inline;
    white-space: nowrap;
  }

  .wave-text span {
    display: inline-block;
    animation: wave 4s ease-in-out infinite;
  }

  .wave-text span:nth-child(1) { animation-delay: 0s; }
  .wave-text span:nth-child(2) { animation-delay: 0.05s; }
  .wave-text span:nth-child(3) { animation-delay: 0.1s; }
  .wave-text span:nth-child(4) { animation-delay: 0.15s; }
  .wave-text span:nth-child(5) { animation-delay: 0.2s; }
  .wave-text span:nth-child(6) { animation-delay: 0.25s; }
  .wave-text span:nth-child(7) { animation-delay: 0.3s; }
  .wave-text span:nth-child(8) { animation-delay: 0.35s; }
  .wave-text span:nth-child(9) { animation-delay: 0.4s; }
  .wave-text span:nth-child(10) { animation-delay: 0.45s; }
  .wave-text span:nth-child(11) { animation-delay: 0.5s; }
  .wave-text span:nth-child(12) { animation-delay: 0.55s; }
  .wave-text span:nth-child(13) { animation-delay: 0.6s; }
  .wave-text span:nth-child(14) { animation-delay: 0.65s; }
  .wave-text span:nth-child(15) { animation-delay: 0.7s; }
  .wave-text span:nth-child(16) { animation-delay: 0.75s; }
  .wave-text span:nth-child(17) { animation-delay: 0.8s; }
  .wave-text span:nth-child(18) { animation-delay: 0.85s; }
  .wave-text span:nth-child(19) { animation-delay: 0.9s; }
  .wave-text span:nth-child(20) { animation-delay: 0.95s; }
  .wave-text span:nth-child(21) { animation-delay: 1s; }

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

  .about-content-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }

  .about-headshot {
    flex: 0 0 360px;
    max-width: 360px;
  }

  .about-headshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
  }

  @media (max-width: 900px) {
    .about-hiking-row {
      flex-direction: column;
      gap: 1.25rem;
    }

    .about-hiking-image {
      flex: 0 0 auto;
      max-width: 100%;
      width: 100%;
    }

    .about-content-row {
      flex-direction: column;
      gap: 1.25rem;
    }

    .about-headshot {
      flex: 0 0 auto;
      max-width: 100%;
      width: 100%;
    }
  }
  