/* Experience story — selected variant 1: warm paper, orange editorial spine,
   two full screens + three keywords per chapter. No figcaption, no badges. */

.features:has(.experience-story) {
  background: #fffdf9;
  padding-bottom: 56px;
}

.features:has(.experience-story) .section-title {
  margin-bottom: 18px;
}

.experience-story {
  max-width: var(--content);
  margin: 0 auto;
}

.experience-intro {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 56px;
  color: var(--text-sub);
  font-size: 16px;
  text-align: center;
  line-break: strict;
  text-wrap: balance;
}

.experience-intro strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 17px;
}

.experience-no-break {
  white-space: nowrap;
}

/* ── Chapter shell + orange spine ── */
.experience-step {
  position: relative;
  display: grid;
  /* Symmetric columns keep the centered spine clear of both sides
     (an uneven split lets the wider column cross the 50% line). */
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  min-height: 600px;
  padding: 92px 0;
  border-top: 1px solid #e8e1d8;
  scroll-margin-top: 76px;
}

/* Vertical spine: drawn per chapter so adjacent chapters form one line. */
.experience-step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(255, 107, 53, 0.15));
}

.experience-step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 5px solid #fffdf9;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.28);
  transform: translate(-50%, -50%);
}

.experience-copy {
  grid-column: 1;
  min-width: 0;
}

.experience-gallery {
  grid-column: 3;
  min-width: 0;
}

.experience-step--reverse .experience-copy {
  grid-column: 3;
}

.experience-step--reverse .experience-gallery {
  grid-column: 1;
  grid-row: 1;
}

/* ── Chapter copy ── */
.experience-step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #c84a1c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.experience-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.experience-copy h3 {
  max-width: 500px;
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
  line-break: strict;
  text-wrap: balance;
}

.experience-description {
  max-width: 460px;
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
  line-break: strict;
  text-wrap: pretty;
}

.experience-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 480px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.experience-keywords li {
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(255, 107, 53, 0.28);
  border-radius: 999px;
  background: #fff0e8;
  color: #c84a1c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  line-break: strict;
  overflow-wrap: anywhere;
}

/* ── Real iPhone screenshots in a device frame ── */
.experience-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
  align-items: start;
  width: min(100%, 580px);
}

.experience-gallery--1 {
  grid-template-columns: 1fr;
  width: min(100%, 300px);
  justify-self: center;
}

.experience-step--reverse .experience-gallery--2 {
  justify-self: start;
}

/* Modern flagship-iPhone look: hairline titanium edge, thin even bezel,
   large continuous corner radius, Dynamic Island. */
.experience-shot {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 7px;
  border-radius: 46px;
  background: #050507;
  box-shadow:
    0 0 0 1.25px #74747a,
    0 1px 2px rgba(255, 255, 255, 0.35),
    0 22px 48px rgba(31, 28, 25, 0.22);
}

.experience-shot-island {
  position: absolute;
  top: calc(7px + 2.1%);
  left: 50%;
  z-index: 2;
  width: 27%;
  aspect-ratio: 10 / 3;
  border-radius: 999px;
  background: #050507;
  transform: translateX(-50%);
}

.experience-shot-screen {
  overflow: hidden;
  border-radius: 39px;
  aspect-ratio: 720 / 1565;
  background: #edf2f2;
}

.experience-shot-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ── Single column: spine moves to the left edge ── */
@media (max-width: 900px) {
  .experience-step,
  .experience-step--reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 30px;
    padding: 68px 0 68px 50px;
    align-items: start;
  }

  .experience-step::before {
    left: 6px;
  }

  .experience-step::after {
    top: 82px;
    left: 6px;
    transform: translate(-50%, 0);
  }

  .experience-copy,
  .experience-gallery,
  .experience-step--reverse .experience-copy,
  .experience-step--reverse .experience-gallery {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    justify-self: stretch;
  }

  .experience-step--reverse .experience-copy {
    grid-row: 1;
  }

  .experience-step--reverse .experience-gallery {
    grid-row: 2;
  }

  .experience-gallery--2 {
    max-width: 560px;
  }

  .experience-gallery--1 {
    max-width: 300px;
    justify-self: start;
  }

  /* Horizontal entrance animations would overflow a single column. */
  .experience-story .fade-in-left,
  .experience-story .fade-in-right {
    transform: translateY(24px);
  }

  .experience-story .fade-in-left.visible,
  .experience-story .fade-in-right.visible {
    transform: translateY(0);
  }
}

/* ── Phone: the two screens stack vertically, no horizontal scrolling ── */
@media (max-width: 640px) {
  .experience-intro {
    padding-bottom: 44px;
    font-size: 14px;
  }

  .experience-intro strong {
    font-size: 15px;
  }

  .experience-step,
  .experience-step--reverse {
    gap: 26px;
    padding: 56px 0 56px 40px;
  }

  .experience-step::after {
    top: 66px;
  }

  .experience-step-heading {
    margin-bottom: 13px;
  }

  .experience-number {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .experience-copy h3 {
    font-size: clamp(27px, 8vw, 34px);
    margin-bottom: 13px;
  }

  .experience-description {
    font-size: 14px;
  }

  .experience-keywords {
    gap: 7px;
    margin-top: 18px;
  }

  .experience-keywords li {
    padding: 6px 10px;
    font-size: 11px;
  }

  .experience-gallery,
  .experience-gallery--2 {
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
    max-width: 300px;
    justify-self: start;
  }

  .experience-gallery--1 {
    max-width: 300px;
  }

  .experience-shot {
    box-shadow:
      0 0 0 1.25px #74747a,
      0 1px 2px rgba(255, 255, 255, 0.35),
      0 14px 34px rgba(31, 28, 25, 0.2);
  }
}
