/* ======================================================
   FEATURED TOPIC FOLD
   ====================================================== */
.featured-fold {
  position: relative;
  min-height: calc(100vh - 60px);
  height: auto;
  overflow: hidden;
  background: var(--gray-900);
  color: var(--white);
  box-sizing: border-box;
}

/* --- Header bar (pinned top of fold, cards 2+) --- */
.featured-fold__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-8);
  transition: opacity 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.featured-fold__header--hidden {
  opacity: 0;
  pointer-events: none;
}

.featured-fold__label {
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-500);
}

.featured-fold__title {
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
  margin: 0;
}

.featured-fold__header-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.featured-fold__counter {
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

/* --- Hero card big title (Card 1 only) --- */
.featured-fold__hero-heading {
  text-align: center;
  margin-bottom: var(--space-8);
  width: 100%;
  max-width: 980px;
}

.featured-fold__hero-label {
  display: block;
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.featured-fold__hero-title {
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: clamp(var(--text-7xl), min(10vw, 15vh), 9rem);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.9;
  color: var(--white);
  margin: 0;
}

/* --- Horizontal scroll track --- */
.featured-fold__track {
  display: flex;
  min-height: 100%;
  height: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: visible;
}

.featured-fold__track::-webkit-scrollbar {
  display: none;
}

/* --- Individual card --- */
.featured-fold__card {
  min-width: 100%;
  width: 100%;
  min-height: 100%;
  height: auto;
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(88px, 13vh, 140px) var(--space-8) clamp(88px, 12vh, 120px);
  box-sizing: border-box;
  position: relative;
  background: var(--gray-900);
  overflow: visible;
}

.featured-fold__card-inner {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(300px, 520px);
  gap: var(--space-12);
  align-items: center;
  max-width: 1000px;
  width: 100%;
}

/* Card 1 (hero) uses full-width layout with big heading above grid */
.featured-fold__card--hero {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: clamp(56px, 8vh, 76px);
  padding-bottom: clamp(86px, 13vh, 130px);
}

.featured-fold__card--hero .featured-fold__card-inner {
  grid-template-columns: minmax(220px, 320px) minmax(280px, 460px);
  max-width: 880px;
}

.featured-fold__card--hero .featured-fold__thumbnail img {
  max-height: min(340px, 36vh);
  width: auto;
  margin: 0 auto;
}

/* --- Thumbnail --- */
.featured-fold__thumbnail {
  position: relative;
  overflow: hidden;
}

.featured-fold__thumbnail img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.featured-fold__card:hover .featured-fold__thumbnail img {
  filter: brightness(1);
}

/* --- Text copy --- */
.featured-fold__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.featured-fold__featured-label {
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-600);
  padding-bottom: var(--space-1);
  width: fit-content;
}

.featured-fold__piece-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.featured-fold__year {
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
}

.featured-fold__desc {
  font-family: "Montserrat", sans-serif;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--gray-400);
  margin: 0;
  text-align: justify;
  text-align-last: left;
}

.featured-fold__card--hero .featured-fold__desc {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--gray-300);
  text-align: justify;
  text-align-last: left;
}

.featured-fold__links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-2);
}

.featured-fold__link {
  display: inline-block;
  font-family: "Staatliches", "Montserrat", sans-serif;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--white);
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.featured-fold__link:hover {
  color: var(--gray-300);
  border-color: var(--gray-300);
}

.featured-fold__link--disabled {
  color: var(--gray-500);
  border-color: var(--gray-600);
  pointer-events: none;
}

/* --- Through-line (per-card SVG segment) --- */
.featured-fold__line {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  height: 24px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}

.featured-fold__line path {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-dasharray: 6, 5;
}

/* --- Navigation arrows --- */
.featured-fold__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-size: 0;
}

.featured-fold__arrow:hover {
  color: var(--white);
  border-color: var(--white);
}

.featured-fold__arrow--left {
  left: var(--space-6);
}

.featured-fold__arrow--right {
  right: var(--space-6);
}

.featured-fold__arrow svg {
  width: 18px;
  height: 18px;
}

.featured-fold__arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  .featured-fold {
    height: calc(100vh - 60px);
    min-height: 620px;
  }

  .featured-fold__track,
  .featured-fold__card {
    height: 100%;
    min-height: 0;
  }
}

/* --- Dot indicators --- */
.featured-fold__dots {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  z-index: 10;
}

.featured-fold__dot {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-fold__dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-600);
  transition: background 0.2s ease;
}

.featured-fold__dot--active::after {
  background: var(--white);
}

.featured-fold__dot:hover:not(.featured-fold__dot--active)::after {
  background: var(--gray-400);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .featured-fold__card-inner,
  .featured-fold__card--hero .featured-fold__card-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 500px;
  }

  .featured-fold__thumbnail img {
    max-height: 35vh;
    width: auto;
    margin: 0 auto;
  }

  .featured-fold__card {
    padding: 70px var(--space-6) 70px;
    align-items: flex-start;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  /* Let the fold grow to fit card content — no fixed viewport height */
  .featured-fold {
    height: auto;
    min-height: 0;
  }

  /* Hide arrows on mobile — swipe/dots handle navigation */
  .featured-fold__arrow {
    display: none;
  }

  .featured-fold__header {
    padding: var(--space-4) var(--space-4);
    gap: var(--space-3);
  }

  .featured-fold__header .featured-fold__label {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
  }

  .featured-fold__header .featured-fold__title {
    font-size: 0.85rem;
  }

  /* Scale down the hero card big heading dramatically */
  .featured-fold__hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: -0.01em;
  }

  .featured-fold__hero-heading {
    margin-bottom: var(--space-5);
  }

  .featured-fold__hero-label {
    font-size: 0.6rem;
    margin-bottom: var(--space-2);
  }

  .featured-fold__track {
    display: flex;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  /* Horizontal slider: each card takes full width */
  .featured-fold__card {
    min-width: 100%;
    width: 100%;
    height: auto;
    padding: 100px var(--space-5) var(--space-10);
    border-bottom: none;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .featured-fold__card--hero {
    padding-top: var(--space-4);
    padding-bottom: var(--space-6);
  }

  /* Compact thumbnails on mobile */
  .featured-fold__thumbnail img {
    max-height: 220px;
    width: auto;
    margin: 0 auto;
  }

  .featured-fold__card--hero .featured-fold__thumbnail img {
    max-height: 200px;
  }

  /* Tighten text spacing on mobile */
  .featured-fold__piece-title {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
  }

  .featured-fold__desc {
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: left;
  }

  .featured-fold__card--hero .featured-fold__desc {
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: left;
  }

  .featured-fold__copy {
    gap: var(--space-3);
  }

  .featured-fold__links {
    gap: var(--space-4);
    margin-top: var(--space-1);
  }

  /* Move dots below track statically so they never overlap content */
  .featured-fold__dots {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    padding: var(--space-4) 0 var(--space-8);
    background: var(--gray-900);
  }

  /* Hide the per-card decorative line on mobile */
  .featured-fold__line {
    display: none;
  }
}
