/* ==========================================================================
   Spundle — Homepage sections
   Desktop-first to mirror the original Webflow breakpoints.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-lilac);
}

.hero__inner {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__content {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding-right: var(--space-8);
}

.hero__media {
  width: 50%;
  align-self: stretch;
}

/* The photo is anchored to the section (not the column), like the original. */
.hero__media img {
  position: absolute;
  top: 0;
  left: 40vh;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Intro / video ------------------------------------------------------- */
.intro__panel {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: -80px;
  margin-left: var(--space-7);
  padding-top: var(--space-9);
  background-color: var(--color-mist);
}

.intro__inner {
  display: flex;
}

.intro__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 56vw;
}

.intro__header {
  margin-bottom: var(--space-7);
}

.intro__video {
  width: 610px;
  max-width: 100%;
  aspect-ratio: 610 / 341;
  margin-bottom: calc(var(--space-10) * -1);
  position: relative;
  z-index: var(--z-raised);
}

.intro__aside {
  position: relative;
  width: 240px;
  overflow: hidden;
}

.intro__aside .watermark {
  position: absolute;
  top: -0.08em;
  right: var(--space-3);
}

/* ---- Features ------------------------------------------------------------ */
.features {
  padding-top: var(--space-12);
  padding-bottom: var(--space-9);
}

.section-header {
  margin-bottom: var(--space-7);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--space-7);
}

/* ---- Timeline ------------------------------------------------------------ */
.timeline {
  padding-top: var(--space-8);
  padding-bottom: 100px;
  overflow: hidden;
}

.timeline__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.timeline__header .title {
  max-width: 672px;
  margin-bottom: 0;
}

/* ---- Founder ------------------------------------------------------------- */
.founder {
  position: relative;
  z-index: var(--z-raised);
  margin-bottom: calc(var(--section-overlap) * -1);
  margin-left: var(--space-7);
  background-color: var(--color-lilac);
}

.founder__clip {
  position: relative;
  margin-left: calc(var(--space-7) * -1);
  overflow: hidden;
}

.founder__row {
  display: flex;
}

.founder__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding-block: var(--space-6);
}

.founder__content .btn {
  align-self: flex-start;
  margin-top: var(--space-6);
}

.founder__media {
  position: relative;
  width: 50%;
  height: 480px;
}

.founder__media img {
  position: absolute;
  top: 50%;
  left: var(--space-9);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  translate: 0 -50%;
}

/* ---- Community: partners + waitlist share one background ---------------- */
.community {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-13);
  padding-bottom: var(--space-10);
  background-color: var(--color-mist);
  background-image: url("../img/ornament-lines.png");
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 600px;
}

.partners {
  margin-bottom: var(--space-10);
}

.partners .title {
  margin-bottom: var(--space-6);
}

.waitlist {
  position: relative;
  z-index: var(--z-raised);
}

.waitlist .card {
  max-width: var(--container-form);
  margin-inline: auto;
}

.community__watermark {
  position: absolute;
  top: -280px;
  right: 0;
  width: 240px;
  overflow: hidden;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (min-width: 1440px) {
  .hero__content {
    padding-right: 140px;
  }

  .founder__media {
    height: 510px;
  }
}

@media (max-width: 991px) {
  /* Hero: image on top, copy below */
  .hero__inner {
    flex-direction: column-reverse;
    width: 100%;
  }

  .hero__content {
    width: 100%;
    min-height: 40vh;
    padding: var(--space-8) var(--space-6);
  }

  .hero__media {
    width: 100%;
    height: 60vh;
    overflow: hidden;
  }

  .hero__media img {
    position: static;
    width: 100%;
    height: 100%;
    object-position: 100% 50%;
  }

  .intro__panel {
    display: block;
    margin: 0;
  }

  .intro__inner {
    display: block;
  }

  .intro__body {
    position: relative;
    z-index: var(--z-raised);
    width: auto;
    margin-inline: var(--space-6);
  }

  .intro__aside {
    position: absolute;
    top: 100px;
    right: 0;
    height: 100%;
  }

  .features {
    padding-top: 220px;
  }

  .features__list {
    grid-template-columns: 1fr;
  }

  .founder {
    margin: 0;
    padding-top: var(--space-8);
  }

  .founder__clip {
    margin-left: 0;
  }

  .founder__row {
    flex-direction: column;
  }

  .founder__content {
    width: 100%;
    padding-block: 0 var(--space-8);
  }

  .founder__media {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: auto;
  }

  .founder__media img {
    position: static;
    width: min(100%, 520px);
    height: auto;
    translate: none;
    object-fit: contain;
  }

  .community {
    padding-block: var(--space-9);
  }

  .community__watermark {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero__inner {
    flex-direction: column;
    min-height: 0;
  }

  .hero__content {
    justify-content: flex-end;
    min-height: 51vh;
    padding: 110px 50px 6vh;
  }

  .hero__media {
    height: 40vh;
  }

  .hero__media img {
    object-position: 50% 100%;
  }

  .section-header {
    margin-bottom: var(--space-6);
  }

  .intro__header {
    margin-bottom: var(--space-6);
  }

  .intro__video {
    width: 100%;
  }

  .intro__aside {
    display: none;
  }

  .features {
    padding-top: var(--space-11);
  }

  .timeline {
    padding-bottom: var(--space-8);
  }

  .founder__content .btn {
    margin-top: var(--space-5);
  }

  .community {
    background-image: none;
  }
}

@media (max-width: 479px) {
  .hero__content {
    min-height: 55vh;
    padding: 100px var(--space-4) 6vh;
  }

  .hero__media img {
    object-position: 100% 100%;
  }

  .section-header {
    margin-bottom: var(--space-5);
  }

  .intro__panel {
    padding-top: var(--space-8);
  }

  .intro__body {
    margin-inline: var(--space-4);
  }

  .features {
    padding-top: var(--space-11);
    padding-bottom: var(--space-6);
  }

  .timeline__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .community {
    padding-block: var(--space-8);
  }

  .partners {
    margin-bottom: 75px;
  }

  .partners .title {
    margin-bottom: 25px;
  }
}
