/* ---- Case hero (Figma-alike) ---- */
.case-hero__media {
  position: relative;
  height: clamp(400px, 70vh, 680px);
  border-radius: 20px;
  overflow: hidden;
}
.case{

    width: 100%;

}
.case-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
    object-fit: cover;
  object-position: center;
  filter: brightness(.72) saturate(.98);
  transition: transform .8s cubic-bezier(.2,.9,.2,1), filter .5s;
  transform-origin: center;
}

.case-hero__media:hover img {
  transform: scale(1.04);
  filter: brightness(.8);
}

/* center the text over image */
.case-hero__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;

  pointer-events: none;
}

.case-hero__caption h1 {
  margin: 0;
  color: #fff;
  font-weight: 300;
  line-height: 1.08;             /* was .95 */
  font-size: clamp(3.2rem, 10.5vw, 7.6rem);
  letter-spacing: -0.02em;
  text-shadow: 0 20px 46px rgba(0,0,0,.6);
  max-width: 90%;
  font-family: 'DM Sans', sans-serif;
}

.case-hero__caption h1 .soft-break {
  display: block;
  margin-top: 0.06em;            /* tiny gap between lines */
}

.case-hero__caption .subtitle {
  margin-top: .6rem;
  color: rgba(255,255,255,.95);
  font-size: clamp(.95rem, 2.2vw, 1.25rem);
  font-weight: 300;
}

/* mobile adjustments */
@media (max-width: 640px) {
  .case-hero__media { height: clamp(280px, 45vh, 420px); }
  .case-hero__caption { padding: 6vh 5vw; }
  .case-hero__caption h1 {
    font-size: clamp(2rem, 12vw, 4.8rem);
    line-height: 1.12;           /* extra space on small screens */
  }
}

/* Explainer CTA buttons (vertical on mobile, horizontal on desktop) */
.explainer-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-left: 3vw;
  justify-content: center;
}
@media (min-width: 700px) {
  .explainer-wrap {
    flex-direction: row;
    align-items: center;
    gap: 4vw;
  }
  .explainer-cta {
    flex-direction: column;
    gap: 1.2rem;
    margin-left: 4vw;
    margin-top: 0;
  }
}

/* Outline style for Figma button */
.btn--outline {
  background: #fff;
  color: #1D1D1D;
  border: 2px solid #1D1D1D;
  box-shadow: none;
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: #1D1D1D;
  color: #fff;
  border-color: #1D1D1D;
}

/* Info grid */
.case-info {
  margin-top: 4vw;
  margin-bottom: 4vw;
  display: flex;
  flex-direction: column;
  gap: 2.5vw;
  padding-top: 2vw;
  padding-bottom: 2vw;
}
.case-info__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2vw;
  border-bottom: 1px solid #ececec;
  padding: 1.2vw 0;
}
.case-info__row:last-child {
  border-bottom: none;
}
.case-info__label {
  min-width: 120px;
  color: #818489;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
  flex: 0 0 140px;
}
.case-info__value {
  color: #222;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
  flex: 1 1 0;
}
.case-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
}
.case-info__tags span {
  display: inline-block;
  background: #1D1D1D;
  color: #fff;
  border-radius: 999px;
  padding: .45em 1.2em;
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.case-parallax-stack {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 8vw auto 10vw auto;
  min-height: 80vh;
}
.parallax-card {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16/10;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30,30,60,0.10);
  background: #fff;
  will-change: transform, opacity;
  pointer-events: none;
}
.parallax-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== Card Parallax (Chris Coyier-style) ===== */
/* Reduce motion: static stack */
@media (prefers-reduced-motion: reduce){
  .cp{ margin-block: 40px; }
  .cp__sticky{ position: relative; top: 0; height: auto; }
  .cp__stack{ position: relative; height: auto; }
  .cp-card{ position: relative; margin: 24px 0; transform: none !important; }
}

/* ===== Olivier-style Cards Parallax ===== */
.olc { margin-block: clamp(48px, 10vh, 120px); }
.olc__main { position: relative; }
.olc__card-container { height: 100vh; position: relative; }
.olc__card{
  position: sticky;
  top: calc(10vh + var(--offset, 0px));
  width: min(1100px, 92vw);
  height: clamp(360px, 72vh, 640px);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  background: #f6f7f9;
  transform-origin: center top;
  will-change: transform;
}
/* Center media inside the card */
.olc__card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ECF0F1;
}

.olc__card img,
.olc__card video {
  width: 100%;

  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
  background: #f4f4f4;

  box-shadow: none;
  padding: 0;
}
@media (prefers-reduced-motion: reduce){
  .olc__card { top: auto; position: relative; height: auto; }
  .olc__card-container { height: auto; }
}
.back-arrow-btn {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.82);
  border-radius: 50%;
  box-shadow: 0 2px 16px rgba(30,30,60,0.07);
  color: #181a1b;
  font-size: 1.35rem;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
}
.back-arrow-btn:hover,
.back-arrow-btn:focus-visible {
  background: #181a1b;
  color: #fff;
  box-shadow: 0 4px 24px rgba(30,30,60,0.13);
}
@media (max-width: 700px) {
  .back-arrow-btn {
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .olc__card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    box-sizing: border-box;
  }
  .olc__card img,
  .olc__card video {
    border-radius: 18px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f4f4f4;
  }
}
.enjoy-more {
  text-align: center;
  margin: 7vw auto 4vw auto;
  max-width: 600px;
}
.enjoy-more h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: #181a1b;
  letter-spacing: -0.01em;
}
.enjoy-more p {
  color: #555;
  margin-bottom: 1.5em;
  font-size: 1.1rem;
}
.enjoy-more .btn {
  font-size: 1.1rem;
  padding-inline: 2.2em;
}
.btn--icon.case-nav__back {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #1d1d1d;
  background: transparent;
  color: #1d1d1d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.btn--icon.case-nav__back:hover,
.btn--icon.case-nav__back:focus-visible {
  background: #1d1d1d;
  color: #fff;
  border-color: #1d1d1d;
}

/* sticky safety for cards section */
.olc, .olc__main, .olc__card-container {
  overflow: visible !important;

}

