/* ==========================================================================
   DUNESCAPE JOURNEYS — ABOUT
   1. Our story split   2. The numbers   3. Testimonials slider
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. OUR STORY — 50/50, with an overlapping second image
   -------------------------------------------------------------------------- */

.story { background: var(--pearl); }

.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.story__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 54ch;
}

.story__copy p {
  color: var(--ink-soft);
  line-height: 1.78;
}

.story__copy p + p { margin-top: 0.25rem; }

/* Drop cap on the opening paragraph — magazine cue */
.story__copy .drop::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.2em;
  line-height: 0.82;
  padding: 0.08em 0.14em 0 0;
  color: var(--gold-deep);
}

/* --- Visual stack --- */
.story__visual {
  position: relative;
  padding-bottom: 90px;
  padding-right: 60px;
}

.story__visual-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand-dim);
}

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

.story__visual-sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sand-dim);
  box-shadow: var(--shadow-lift);
  border: 8px solid var(--pearl);
}

.story__visual-sub img { width: 100%; height: 100%; object-fit: cover; }

/* Est. marker riding the top-left corner */
.story__stamp {
  position: absolute;
  top: -22px;
  left: -22px;
  z-index: 3;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
}

.story__stamp b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--sand);
  font-weight: 400;
}

@media (max-width: 991px) {
  .story__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .story__visual { padding-bottom: 70px; padding-right: 40px; max-width: 560px; }
  .story__stamp { width: 88px; height: 88px; top: -16px; left: -16px; }
}

/* --------------------------------------------------------------------------
   2. THE NUMBERS — counting stat badges on deep dark
   -------------------------------------------------------------------------- */

.numbers {
  position: relative;
  background: var(--deep);
  color: var(--ink-inv);
  overflow: hidden;
}

.numbers .bloom {
  width: 720px;
  height: 520px;
  top: -220px;
  left: 50%;
  margin-left: -360px;
  opacity: 0.3;
}

.numbers__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-inv);
  border-bottom: 1px solid var(--rule-inv);
}

.stat {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--rule-inv);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  align-items: center;
  transition: background-color var(--dur) var(--ease-out);
}

.stat:last-child { border-right: 0; }
.stat:hover { background: rgba(201, 169, 98, 0.05); }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-inv);
}

.stat__note {
  font-size: var(--fs-xs);
  color: var(--ink-inv-faint);
  line-height: 1.5;
  max-width: 22ch;
}

@media (max-width: 991px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--rule-inv); }
  .stat { padding: var(--space-md) var(--space-sm); }
}

@media (max-width: 520px) {
  .numbers__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .stat:not(:last-child) { border-bottom: 1px solid var(--rule-inv); }
}

/* --------------------------------------------------------------------------
   3. TESTIMONIALS — 3-up slider, pearl cards on sand
   -------------------------------------------------------------------------- */

.testimonials { background: var(--sand); overflow: hidden; }

.slider { position: relative; }

.slider__viewport {
  overflow: visible;
  margin-inline: calc(var(--pad-x) * -1);
  padding-inline: var(--pad-x);
  /* Clip the overflow to the viewport edge without cutting card shadows */
  clip-path: inset(-40px -100vw -40px 0);
}

.slider__track {
  display: flex;
  gap: var(--gutter);
  will-change: transform;
}

.slider__item {
  flex: 0 0 calc((100% - var(--gutter) * 2) / 3);
  min-width: 0;
}

@media (max-width: 1100px) {
  .slider__item { flex-basis: calc((100% - var(--gutter)) / 2); }
}

@media (max-width: 767px) {
  .slider__item { flex-basis: 100%; }
}

/* --- Card --- */
.quote-card {
  background: var(--pearl);
  padding: var(--space-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  border-top: 2px solid var(--gold);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

/* Stars left, quote mark right — one tidy top line */
.quote-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  height: 1.25rem;
  margin-top: -0.15rem;
  color: var(--gold);
  opacity: 0.35;
  flex: none;
}

.quote-card__stars {
  display: flex;
  gap: 3px;
  color: var(--gold-deep);
}

.quote-card__stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* Review headline — carries the card at a glance */
.quote-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--deep);
  text-wrap: balance;
  margin-top: 0.3rem;
}

/* Reserve two lines so every card's review body starts on the same baseline */
@media (min-width: 768px) {
  .quote-card__title { min-height: 2.56em; }
}

.quote-card__text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.72;
  letter-spacing: -0.003em;
  color: var(--ink-soft);
  flex: 1;
}

.quote-card__text p + p { margin-top: 0.75rem; }

.quote-card__by {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--rule);
}

.quote-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-label);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  flex: none;
}

.quote-card__name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--deep);
  line-height: 1.3;
}

.quote-card__origin {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 767px) {
  /* One card at a time — let each size to its own review instead of
     stretching every card to the tallest one in the track */
  .slider__track { align-items: flex-start; }
  .quote-card { height: auto; padding: var(--space-sm) var(--space-sm) var(--space-md); }
  .quote-card__title { font-size: 1.0625rem; }
}

/* --- Controls --- */
.slider__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.slider__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--deep-12);
  border-radius: 50%;
  color: var(--deep);
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-out);
}

.slider__btn svg { width: 17px; height: 17px; }

.slider__btn:hover:not([disabled]) {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--sand);
}

.slider__btn[disabled] { opacity: 0.28; cursor: not-allowed; }

.slider__dots {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.slider__dot {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--deep-12);
  transition: background-color var(--dur) var(--ease-out), width var(--dur) var(--ease-out);
}

.slider__dot.is-active { background: var(--gold); width: 42px; }

@media (max-width: 767px) {
  .slider__dots { display: none; }
}
