/* the-scalejoy-collective.css — The ScaleJOY Collective page
 * Source: Figma — Full prototype V4 → The ScaleJOY Collective (989:1112) at 1728px
 * Sections: hero, ticker, 3× for-you, feel-seen-cta, about-joy, features
 */

.site-main--collective {
  background: var(--bg, #F2E8D4);
  color: var(--brand, #183A40);
}

/* ===========================
 * Section 1 — Hero (split: content LEFT, video RIGHT)
 * Figma 989:1112 → Frame 1686557699 (gap 60 horiz, counter-axis CENTER)
 * =========================== */
.coll-hero {
  background: var(--bg);
  padding-block: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 4.5vw, 5rem);
}

.coll-hero__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 747fr) minmax(0, 721fr);
  gap: clamp(2rem, 3.5vw, 3.75rem);
  align-items: center;
}

.coll-hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4.7vw, 5.0625rem);
  align-items: flex-start;
  width: 100%;
}

.coll-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.95vw, 4.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.33;
  color: #561F33;
  text-align: left;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.coll-hero__title-emph {
  font-weight: 700;
  font-style: italic;
  position: relative;
  display: inline-block;
}

.coll-hero__underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.47em;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.coll-hero__sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 2.9vw, 3.125rem);
  width: 100%;
}

.coll-hero__lead {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  line-height: 1.25;
  color: #561F33;
  text-align: center;
  max-width: none;
  width: 100%;
}

.coll-hero__cta {
  align-self: center;
}

.coll-hero__media {
  position: relative;
  width: 100%;
  max-width: 721px;
  aspect-ratio: 721 / 615;
  overflow: hidden;
  justify-self: end;
}

.coll-hero__video-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.coll-hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coll-hero__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F2E8D4;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.coll-hero__video-trigger:hover .coll-hero__play,
.coll-hero__video-trigger:focus-visible .coll-hero__play {
  transform: scale(1.08);
}

.coll-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ===========================
 * Section 2 — Marquee Ticker (teal bg, scrolling values)
 * =========================== */
.coll-ticker {
  background: var(--brand, #183A40);
  color: var(--bg, #F2E8D4);
  padding-block: clamp(1.25rem, 2vw, 1.75rem);
  overflow: hidden;
}

.coll-ticker__track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  animation: coll-ticker-scroll 30s linear infinite;
  will-change: transform;
}

.coll-ticker__item {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--brand-light, #67929A);
}

.coll-ticker__dot {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  color: var(--brand-light, #67929A);
  opacity: 0.75;
}

@keyframes coll-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .coll-ticker__track { animation: none; }
}

/* ===========================
 * Sections 3-5 — "This Is For You" alternating bands
 * Source: Figma 989:1141 (cream), 989:1148 (maroon), 989:1153 (wide cream)
 * Sticky behavior is opt-in via .coll-for-you--sticky on the section.
 * =========================== */
.coll-for-you {
  padding-block: clamp(3rem, 6.95vw, 7.5rem);
  background: var(--bg, #F2E8D4);
  color: var(--brand, #183A40);
}

.coll-for-you--sticky {
  position: sticky;
  top: 0;
}

.coll-for-you--cream { z-index: 1; }
.coll-for-you--maroon {
  background: #561F33;
  color: var(--bg, #F2E8D4);
  z-index: 2;
}
.coll-for-you--wide {
  padding-block: clamp(3.5rem, 7.5vw, 8.125rem);
  z-index: 3;
}

/* Sticky stacking order on this page (DOM order, ascending z so each next covers the sticky-pinned prev):
 *   coll-hero               (no sticky, default)
 *   coll-ticker             (no sticky, default)
 *   coll-for-you--cream     sticky  z 1
 *   coll-for-you--maroon    sticky  z 2
 *   coll-for-you--wide      sticky  z 3
 *   coll-feel-seen          relative z 10  ← covers wide
 *   coll-about-joy          relative z 11  ← covers feel-seen
 *   trusted-by              sticky  z 12  ← covers about-joy (via coll-stack-z4)
 *   coll-features           relative z 13  ← covers trusted-by
 *   why-leaders             sticky  z 14  ← covers features (via coll-stack-z5)
 *   testimonials            relative z 15  ← covers why-leaders (scoped rule below)
 */
.coll-stack-z4 { z-index: 12; }
.coll-stack-z5 { z-index: 14; }

.site-main--collective .home-testimonials {
  position: relative;
  z-index: 15;
  background: var(--bg, #F2E8D4);
}

.coll-for-you__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 912fr) minmax(0, 482fr);
  gap: clamp(1.5rem, 3.5vw, 3.75rem);
  align-items: center;
  justify-content: space-between;
}

.coll-for-you--wide .coll-for-you__inner {
  grid-template-columns: 1fr;
  text-align: center;
  gap: clamp(1.5rem, 2.3vw, 2.5rem);
  justify-items: center;
  max-width: 1400px;
}

.coll-for-you__qualifier {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.15vw, 1.25rem);
}

.coll-for-you--cream .coll-for-you__qualifier {
  align-items: flex-start;
  text-align: left;
}

.coll-for-you__lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.475vw, 3.75rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.333;
  letter-spacing: -0.005em;
}

.coll-for-you__lead .is-emph {
  font-weight: 600;
  font-style: italic;
}

.coll-for-you--cream .coll-for-you__lead .is-emph { color: #561F33; }
.coll-for-you--maroon .coll-for-you__lead .is-emph { color: var(--brand-light, #67929A); }
.coll-for-you--wide .coll-for-you__lead .is-emph { color: #561F33; }

.coll-for-you__list {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.62vw, 1.75rem);
  font-weight: 500;
  font-style: normal;
  line-height: 2.32;
}

.coll-for-you__stamp {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.11vw, 4.4375rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.333;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
  justify-self: start;
}

.coll-for-you--wide .coll-for-you__stamp {
  text-align: center;
  justify-self: center;
}

/* ===========================
 * Section 6 — Feel Seen CTA (teal bg, vertical stack center)
 * Source: Figma 989:1157 — bg #183A40, pad 170/90, gap 110, full-bleed.
 * z-index 10 so it covers the sticky for-you trio (z 1/2/3) when scrolling past.
 * =========================== */
.coll-feel-seen {
  position: relative;
  z-index: 10;
  background: var(--brand, #183A40);
  color: var(--bg, #F2E8D4);
  padding-block: clamp(5rem, 9.85vw, 10.625rem);
  overflow: hidden;
  isolation: isolate;
}

/* Single decorative logomark, top-left, ~80-100px from section top */
.coll-feel-seen__shape {
  position: absolute;
  top: clamp(48px, 5.5vw, 100px);
  left: 0;
  width: clamp(180px, 21.4vw, 369px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  transform: translateX(-12%);
  opacity: 1;
}

@media (max-width: 991px) {
  .coll-feel-seen__shape {
    opacity: 0.35;
    top: clamp(32px, 6vw, 60px);
  }
}

.coll-feel-seen__inner {
  position: relative;
  z-index: 1;
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2rem, 6.36vw, 6.875rem);
}

.coll-feel-seen__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 2.9vw, 3.125rem);
}

.coll-feel-seen__question {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.475vw, 3.75rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.333;
  color: var(--bg, #F2E8D4);
}

.coll-feel-seen__statement {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.11vw, 4.4375rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.333;
  letter-spacing: -0.005em;
  max-width: 1100px;
  color: var(--bg, #F2E8D4);
}

.coll-feel-seen__cta {
  margin-top: 0;
}

.coll-feel-seen .btn-layout.hollow-light {
  padding: clamp(1.1rem, 1.74vw, 1.875rem) clamp(1.5rem, 2.32vw, 2.5rem);
  font-size: clamp(0.95rem, 1.04vw, 1.125rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-width: 1px;
}

/* ===========================
 * Section 7 — About Joy (photo LEFT, content RIGHT)
 * =========================== */
.coll-about-joy {
  position: relative;
  z-index: 11;
  background: var(--bg, #F2E8D4);
  padding-block: clamp(3rem, 4.05vw, 4.375rem);
}

.coll-about-joy__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 582fr) minmax(0, 896fr);
  gap: clamp(2rem, 4.05vw, 4.375rem);
  align-items: stretch;
}

.coll-about-joy__media {
  position: relative;
  width: 100%;
  max-width: 582px;
  aspect-ratio: 582 / 605;
  overflow: hidden;
  border-radius: 8px;
  justify-self: start;
}

.coll-about-joy__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coll-about-joy__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 4.62vw, 5rem);
  align-items: stretch;
}

.coll-about-joy__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.2vw, 5.625rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.333;
  color: var(--brand, #183A40) !important;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.coll-features__title {
  color: var(--brand, #183A40);
}

.coll-about-joy__body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2.3vw, 2.5rem);
}

.coll-about-joy__body p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.33vw, 1.4375rem);
  font-weight: 400;
  line-height: 1.87;
  color: var(--ink, #252522);
}

.coll-about-joy__dropcap {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.95vw, 6.4375rem);
  line-height: 0.85;
  color: var(--brand, #183A40);
  margin-right: 0.05em;
  vertical-align: -0.22em;
  display: inline-block;
}

.coll-about-joy__cta {
  margin-top: 0;
  width: 100%;
}

.coll-about-joy__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
 * Section 8 — Features / Want a Peek
 * Mixed heading + 4-col feature grid + body
 * =========================== */
.coll-features {
  position: relative;
  z-index: 13;
  background: var(--bg, #F2E8D4);
  padding-block: clamp(3.5rem, 6vw, 7rem);
}

.coll-features__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2.5rem, 4.5vw, 5rem);
}

.coll-features__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.1rem, 0.64vw, 0.6875rem);
  font-family: var(--serif);
  line-height: 1.333;
  color: #561F33;
}

.coll-features__line {
  font-size: clamp(1.85rem, 3.475vw, 3.75rem);
  font-weight: 600;
  line-height: 1.333;
  color: #561F33;
}

.coll-features__display {
  font-size: clamp(4rem, 9.84vw, 10.625rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.333;
  color: #561F33;
  letter-spacing: -0.015em;
}

.coll-features__display em {
  font-style: italic;
  font-weight: 900;
}

.coll-features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  width: 100%;
  max-width: 1728px;
}

.coll-features__item {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.39vw, 1.5rem);
  font-weight: 400;
  line-height: 1.333;
  color: var(--brand, #183A40);
  text-align: left;
  padding-right: clamp(1rem, 2vw, 1.5rem);
}

.coll-features__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  right: 0;
  width: 1px;
  background: var(--brand, #183A40);
}

.coll-features__body {
  margin: 0;
  max-width: 1100px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.9vw, 3.125rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--brand, #183A40);
  letter-spacing: -0.005em;
  text-align: center;
}

/* ===========================
 * Responsive — 1399px
 * =========================== */
@media (max-width: 1399px) {
  .coll-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .coll-about-joy__inner {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  }
}

/* ===========================
 * Responsive — 991px (tablet)
 * =========================== */
@media (max-width: 991px) {
  .coll-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .coll-hero__media {
    max-width: 100%;
    justify-self: stretch;
    aspect-ratio: 16 / 11;
  }

  .coll-for-you__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
    justify-items: center;
  }

  .coll-for-you__stamp {
    text-align: center;
  }

  .coll-about-joy__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .coll-about-joy__media {
    max-width: 100%;
    aspect-ratio: 16 / 11;
    justify-self: stretch;
  }

  .coll-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coll-features__item:nth-child(2)::after,
  .coll-features__item:nth-child(4)::after {
    display: none;
  }
}

/* ===========================
 * Responsive — 767px (mobile)
 * =========================== */
@media (max-width: 767px) {
  .coll-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
  }

  .coll-ticker__item,
  .coll-ticker__dot {
    font-size: clamp(1.15rem, 5vw, 1.65rem);
  }

  .coll-for-you__lead,
  .coll-feel-seen__question {
    font-size: clamp(1.25rem, 5vw, 1.85rem);
  }

  .coll-for-you__stamp,
  .coll-feel-seen__statement {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .coll-for-you__list {
    font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  }

  .coll-about-joy__title {
    font-size: clamp(1.85rem, 8vw, 3rem);
  }

  .coll-features__line {
    font-size: clamp(1.25rem, 5vw, 1.85rem);
  }

  .coll-features__display {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
  }

  .coll-features__body {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }

  .coll-features__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .coll-features__item:not(:last-child)::after {
    top: auto;
    bottom: -0.65rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    height: 1px;
  }

  .coll-hero__cta,
  .coll-feel-seen__cta .btn-layout {
    width: 100%;
  }
}

/* ===========================
 * Responsive — 575px (small mobile)
 * =========================== */
@media (max-width: 575px) {
  .coll-hero__inner,
  .coll-for-you__inner,
  .coll-feel-seen__inner,
  .coll-about-joy__inner,
  .coll-features__inner {
    padding-inline: 18px;
  }
}
