/* Non-card layouts: accordion, sticky, rail, pin, immerse */

/* Sticky duo */
.jw-sticky-duo {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 920px) {
  .jw-sticky-duo {
    grid-template-columns: 1fr 0.95fr;
  }

  .jw-sticky-duo__rail {
    position: sticky;
    top: 6.5rem;
  }

  .jw-sticky-duo__media {
    max-width: 480px;
    justify-self: end;
    width: 100%;
    position: relative;
  }
}

.jw-sticky-duo__media {
  position: relative;
}

.jw-photo-stat {
  position: absolute;
  left: clamp(0.75rem, 2.5vw, 1.15rem);
  bottom: clamp(0.75rem, 2.5vw, 1.15rem);
  z-index: 2;
  width: min(11.5rem, 68%);
  padding: 0.95rem 1rem 1.05rem;
  background: var(--jw-sandstone);
  color: var(--jw-olive);
  box-shadow: 0 12px 28px rgba(42, 40, 32, 0.18);
}

.jw-photo-stat__link {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--jw-olive);
  text-decoration: none;
  transition: opacity 0.25s var(--jw-ease);
}

.jw-photo-stat__link:hover,
.jw-photo-stat__link:focus-visible {
  opacity: 0.72;
}

.jw-photo-stat__num {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--jw-olive);
}

.jw-photo-stat__label {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--jw-olive);
}

.jw-stat-inline {
  margin-top: 2rem;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--jw-olive);
}

/* Image accordion (21st-style feature accordion) */
.jw-acc {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 920px) {
  .jw-acc:not(.jw-acc--solo) {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
}

.jw-acc__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--jw-olive-deep, #3d3c2d);
}

@media (min-width: 920px) {
  .jw-acc:not(.jw-acc--solo) .jw-acc__visual {
    position: sticky;
    top: 6.5rem;
  }
}

.jw-acc__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s var(--jw-ease), transform 0.7s var(--jw-ease);
  pointer-events: none;
}

.jw-acc__figure.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.jw-acc__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jw-acc__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--jw-line);
}

.jw-acc__item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--jw-line);
  padding: 1.15rem 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  outline: none;
}

.jw-acc__item:focus-visible {
  outline: 2px solid var(--jw-khaki, #b8a76a);
  outline-offset: 4px;
}

.jw-acc__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  transition: color 0.3s var(--jw-ease);
}

.jw-acc__meta span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--jw-khaki, #b8a76a);
  min-width: 1.5rem;
}

.jw-acc__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--jw-ease), opacity 0.35s var(--jw-ease), padding 0.35s var(--jw-ease);
  color: var(--jw-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.jw-acc__panel p {
  margin: 0;
}

.jw-acc__item.is-open .jw-acc__panel {
  max-height: 240px;
  opacity: 1;
  padding-top: 0.75rem;
  padding-left: 2.35rem;
}

.jw-acc__panel .jw-link {
  display: inline-flex;
  margin-top: 0.75rem;
}

.jw-acc__item.is-open .jw-acc__meta {
  color: var(--jw-olive);
  font-weight: 500;
}

/* Horizontal rail */
.jw-section--rail {
  overflow: hidden;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.jw-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem var(--jw-pad) 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.jw-rail::-webkit-scrollbar {
  display: none;
}

.jw-rail__card {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jw-rail__card .jw-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.jw-rail__card .jw-media img {
  transition: transform 0.7s var(--jw-ease);
}

.jw-rail__card:hover .jw-media img {
  transform: scale(1.05);
}

.jw-rail__card .jw-link {
  margin-top: auto;
}

/* Scroll burn text (Our Journey — 21st.dev Scroll Burn Text pattern) */
.jw-burn {
  --jw-burn-ink: #2f2e24;
  --jw-burn-soft: rgba(47, 46, 36, 0.55);
  --jw-burn-red: #e2553f;
  --jw-burn-cyan: #2eb7c9;
  position: relative;
  background: #f4f0e6;
  color: var(--jw-burn-ink);
}

.jw-burn__pin {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 10vh, 6rem) var(--jw-pad);
  width: min(100%, calc(40rem + var(--jw-pad) * 2));
  margin-inline: auto;
  box-sizing: border-box;
}

.jw-burn__eyebrow {
  margin: 0 0 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jw-olive, #5b5a41);
  text-align: center;
  opacity: 0.75;
}

.jw-burn__stage {
  position: relative;
  min-height: clamp(16rem, 42vh, 24rem);
  perspective: 1400px;
  isolation: isolate;
}

.jw-burn__block {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transform-origin: center center;
  pointer-events: none;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

.jw-burn__block.is-front {
  pointer-events: auto;
}

.jw-burn__text {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--jw-burn-ink);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}
.jw-burn__year {
  margin: 2.25rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jw-olive, #5b5a41);
  text-align: center;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .jw-burn__block {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    margin-bottom: 2rem;
    pointer-events: auto;
  }

  .jw-burn__stage {
    min-height: 0;
  }

  .jw-burn__block.is-burning .jw-burn__text {
    text-shadow: none !important;
    filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 1 !important;
  }
}

/* Legacy pin-story selectors kept harmless if cached HTML remains */
.jw-pin-story {
  display: none;
}

/* Sticky scroll cards stack (21st.dev sticky-scroll-cards-section)
   Cards themselves are sticky with staggered tops so they pile up. */
.jw-stack {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
  background: var(--jw-ivory, #e3dad0);
  overflow: visible;
}

.jw-section--rail,
[data-brands-fan] {
  overflow-x: clip;
}

.jw-stack__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.jw-stack__intro .jw-lead {
  margin-inline: auto;
}

.jw-stack__list {
  position: relative;
  width: min(100% - (var(--jw-pad) * 2), 1100px);
  margin-inline: auto;
}

/* The card is relative — GSAP pin handles the stack (CSS sticky was releasing early) */
.jw-stack__card {
  position: relative;
  z-index: calc(10 + var(--stack-i, 0));
  margin: 0 0 45vh;
}

.jw-stack__card:last-child {
  margin-bottom: 0;
}

.jw-stack__scale {
  border-radius: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--stack-bg, #e8e4d4);
  color: var(--jw-olive-ink, #2a2920);
  box-shadow: 0 24px 55px rgba(42, 41, 32, 0.16);
  transform-origin: 50% 0%;
  will-change: transform, filter;
  overflow: hidden;
}

.jw-stack__inner {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.35rem, 3.5vw, 2.75rem);
  min-height: min(68vh, 34rem);
  overflow: hidden;
  border-radius: inherit;
}

.jw-stack__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 32rem;
}

.jw-stack__title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--jw-olive-ink, #2a2920);
}

.jw-stack__text {
  margin: 0 0 0.35rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: rgba(42, 40, 32, 0.72);
}

.jw-stack__media {
  margin: 0;
  border-radius: clamp(1rem, 2vw, 1.35rem);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--jw-olive-deep, #3d3c2d);
  max-height: min(48vh, 28rem);
  width: 100%;
}

.jw-stack__media-inner {
  width: 100%;
  height: 100%;
  transform-origin: center;
  will-change: transform;
}

.jw-stack__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 880px) {
  .jw-stack__inner {
    grid-template-columns: 1fr 1.05fr;
    min-height: min(62vh, 32rem);
  }

  .jw-stack__media {
    max-height: none;
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 879px) {
  .jw-stack__card {
    margin-bottom: 40vh;
  }

  .jw-stack__inner {
    min-height: auto;
  }

  .jw-stack__media {
    order: -1;
    max-height: 38vw;
    min-height: 11rem;
    aspect-ratio: 16 / 10;
  }
}

/* Immersive brand panels (legacy) */
.jw-immerse {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--jw-ivory);
}

.jw-immerse__bg {
  position: absolute;
  inset: 0;
}

.jw-immerse__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.jw-immerse__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 41, 32, 0.15) 0%, rgba(42, 41, 32, 0.82) 100%);
}

.jw-immerse__content {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--jw-pad) * 2), 720px);
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 8vh, 5rem);
}

.jw-immerse .jw-btn--primary {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

/* Partner manifesto */
.jw-manifesto {
  max-width: 52rem;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.jw-manifesto__text {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--jw-ink);
  margin: 0 0 1.75rem;
}

.jw-faq-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 920px) {
  .jw-faq-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }

  .jw-faq-layout > .jw-media {
    position: sticky;
    top: 6.5rem;
  }
}

/* Contact full split */
.jw-contact-split {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
}

@media (min-width: 900px) {
  .jw-contact-split {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.jw-contact-split__media {
  position: relative;
  min-height: 42vh;
  overflow: hidden;
  background: var(--jw-olive-ink, #2a2920);
}

.jw-contact-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

@media (min-width: 900px) {
  .jw-contact-split__media {
    min-height: 100%;
  }

  .jw-contact-split__media img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
  }
}

.jw-contact-split__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  background: linear-gradient(180deg, transparent, rgba(42, 41, 32, 0.85));
}

.jw-contact-split__form {
  padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--jw-ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 899px) {
  .jw-contact-split__form {
    padding-top: 5.5rem;
  }

  .jw-contact-split__caption {
    padding: 1.5rem;
  }

  .jw-form__row {
    grid-template-columns: 1fr;
  }
}

body.page-slug-contact .site-main,
.page-template-default .site-main:has(.jw-contact-split) {
  padding: 0;
}

/* Stacked fan carousel (21st.dev carousel-07) */
.jw-fan {
  --jw-fan-w: min(340px, 78vw);
  --jw-fan-h: min(460px, 108vw);
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
}

.jw-fan__stage {
  position: relative;
  height: clamp(32rem, 72vw, 36rem);
  perspective: 1400px;
  touch-action: pan-y;
  user-select: none;
}

.jw-fan__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--jw-fan-w);
  height: var(--jw-fan-h);
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--jw-olive-deep, #3d3c2d);
  box-shadow: 0 18px 40px rgba(42, 41, 32, 0.22);
  transform: translate(-50%, -50%);
  transform-origin: 50% 80%;
  cursor: grab;
  color: var(--jw-ivory, #e3dad0);
  will-change: transform, opacity, filter;
}

.jw-fan__card:active {
  cursor: grabbing;
}

.jw-fan__card.is-active {
  cursor: grab;
}

.jw-fan__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.jw-fan__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jw-fan__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 41, 32, 0.05) 35%, rgba(42, 41, 32, 0.78) 100%);
  pointer-events: none;
}

.jw-fan__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.jw-fan__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem 1.25rem 1.4rem;
  text-align: center;
}

.jw-fan__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.jw-fan__text {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.jw-fan__link {
  display: inline-flex;
  color: var(--jw-gold, #c4b07a);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s var(--jw-ease);
}

.jw-fan__link:hover {
  color: #fff;
}

.jw-fan__card:not(.is-active) .jw-fan__body,
.jw-fan__card:not(.is-active) .jw-fan__badge {
  opacity: 0.55;
}

.jw-fan__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.jw-fan__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 90, 65, 0.25);
  background: rgba(255, 255, 255, 0.55);
  color: var(--jw-olive, #5b5a41);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s var(--jw-ease), border-color 0.25s var(--jw-ease);
}

.jw-fan__btn:hover {
  background: #fff;
  border-color: rgba(91, 90, 65, 0.4);
}

.jw-fan__dots {
  display: flex;
  gap: 0.5rem;
}

.jw-fan__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(91, 90, 65, 0.28);
  cursor: pointer;
  transition: width 0.3s var(--jw-ease), background 0.3s var(--jw-ease);
}

.jw-fan__dots button.is-active {
  width: 1.4rem;
  background: var(--jw-olive, #5b5a41);
}

@media (max-width: 640px) {
  .jw-fan {
    --jw-fan-w: min(280px, 82vw);
    --jw-fan-h: min(400px, 112vw);
  }

  .jw-fan__stage {
    height: 28rem;
    overflow: visible;
  }

  .jw-fan__body {
    padding: 1rem 1.1rem 1.15rem;
  }

  .jw-fan__title {
    font-size: 1.35rem;
  }

  .jw-fan__text {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 920px) {
  .jw-acc:not(.jw-acc--solo) .jw-acc__visual {
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }

  .jw-sticky-duo__media {
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }

  .jw-rail__card {
    flex: 0 0 min(72vw, 260px);
  }

  .jw-immerse__content {
    padding-top: 5.5rem;
  }

  .jw-manifesto__text {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jw-fan__card {
    transition: none !important;
  }
}

