/* BEX editorial case study.
   Every source image keeps its native aspect ratio: no cover, no clipping. */
.bex-editorial {
  --bex-orange: #f2541b;
  --bex-ink: #070605;
  --bex-paper: #eeeae2;
  position: relative;
  overflow: clip;
  background: var(--bex-ink);
  color: #f7f3ed;
}

.bex-editorial *,
.bex-editorial *::before,
.bex-editorial *::after {
  box-sizing: border-box;
}

.bex-editorial figure,
.bex-editorial h3,
.bex-editorial h4,
.bex-editorial p {
  margin: 0;
}

.bex-artwork {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  clip-path: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.bex-editorial__intro {
  min-height: 100svh;
  padding: clamp(34px, 4vw, 76px) clamp(34px, 5.2vw, 100px) clamp(58px, 7vw, 128px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 70% 58%, rgba(255, 109, 47, .24), transparent 28%),
    linear-gradient(125deg, #050403 0 48%, #160804 100%);
}

.bex-editorial__intro::after {
  content: "BEX";
  position: absolute;
  right: -2vw;
  bottom: -5vw;
  color: rgba(242, 84, 27, .085);
  font-size: clamp(240px, 38vw, 720px);
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.09em;
  pointer-events: none;
}

.bex-editorial__eyebrow,
.bex-editorial__intro-copy,
.bex-ecosystem__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
}

.bex-editorial__intro h3 {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 1100px;
  font-size: clamp(88px, 11vw, 210px);
  font-weight: 570;
  line-height: .76;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

.bex-editorial__intro h3 em,
.bex-app-story h4 em {
  color: var(--bex-orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.bex-editorial__intro-copy {
  align-items: flex-end;
  padding-top: 24px;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 0;
}

.bex-editorial__intro-copy p {
  max-width: 39ch;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 430;
  line-height: 1.55;
  letter-spacing: -.02em;
}

.bex-editorial__intro-copy span {
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

.bex-plate {
  position: relative;
  padding: clamp(64px, 8vw, 150px) clamp(28px, 4vw, 78px);
  background:
    linear-gradient(180deg, #f25a1d 0, #e43d0b 100%);
}

.bex-plate::before {
  content: "";
  position: absolute;
  inset: 7% 3%;
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}

.bex-plate--hero .bex-artwork {
  position: relative;
  z-index: 1;
  max-width: 1589px !important;
  margin-inline: auto;
  box-shadow: 0 60px 150px rgba(61, 8, 0, .42);
}

.bex-plate figcaption {
  position: relative;
  z-index: 2;
  max-width: 1589px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bex-plate figcaption strong {
  color: #fff;
  font-weight: 600;
}

.bex-app-story {
  position: relative;
  min-height: 1180px;
  padding: clamp(90px, 11vw, 210px) clamp(34px, 6vw, 116px);
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 7vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 45%, rgba(255, 181, 110, .48), transparent 27%),
    linear-gradient(145deg, #f06b24, #f24912 52%, #c82e08);
}

.bex-app-story__copy {
  position: relative;
  z-index: 2;
  align-self: start;
  padding-top: 5vh;
}

.bex-app-story__copy > span,
.bex-scroll-story aside > span,
.bex-ecosystem__copy > span {
  display: block;
  margin-bottom: 34px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bex-app-story h4 {
  font-size: clamp(76px, 8vw, 150px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.bex-app-story__copy p {
  max-width: 28ch;
  margin-top: 46px;
  font-size: clamp(16px, 1.15vw, 21px);
  line-height: 1.65;
}

.bex-app-story figure {
  position: relative;
  z-index: 2;
  width: min(58vw, 920px);
  justify-self: end;
  box-shadow: 0 60px 150px rgba(74, 11, 0, .32);
}

.bex-app-story__word {
  position: absolute;
  z-index: 0;
  left: -4vw;
  bottom: -8vw;
  color: rgba(255, 255, 255, .1);
  font-size: clamp(300px, 42vw, 800px);
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.1em;
  pointer-events: none;
}

.bex-scroll-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 30vw) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px);
  padding: clamp(100px, 10vw, 190px) clamp(34px, 5vw, 96px);
}

.bex-scroll-story--dark {
  background:
    radial-gradient(circle at 76% 10%, rgba(255, 83, 20, .12), transparent 24%),
    #050505;
  color: #f5f1eb;
}

.bex-scroll-story--orange {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 197, 130, .42), transparent 25%),
    linear-gradient(180deg, #f45a1b, #e63e0c);
  color: #fff;
}

.bex-scroll-story aside {
  position: sticky;
  top: 9vh;
  align-self: start;
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  padding: 22px 0 30px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.bex-scroll-story aside h4 {
  max-width: 11ch;
  font-size: clamp(46px, 4.7vw, 90px);
  font-weight: 570;
  line-height: .9;
  letter-spacing: -.065em;
}

.bex-scroll-story aside p {
  max-width: 30ch;
  margin-top: auto;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.65;
}

.bex-scroll-story aside small {
  display: block;
  margin-top: 34px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bex-scroll-story figure {
  width: min(68vw, 1320px);
  justify-self: end;
  box-shadow: 0 60px 180px rgba(0, 0, 0, .42);
}

.bex-scroll-story--orange figure {
  box-shadow: 0 60px 180px rgba(93, 17, 0, .34);
}

.bex-ecosystem {
  min-height: 1200px;
  padding: clamp(100px, 11vw, 210px) clamp(34px, 6vw, 116px) 50px;
  display: grid;
  grid-template-columns: minmax(350px, .9fr) minmax(440px, 1.1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(54px, 8vw, 160px);
  background:
    radial-gradient(circle at 72% 46%, rgba(255, 255, 255, .75), transparent 28%),
    var(--bex-paper);
  color: #11100e;
}

.bex-ecosystem__copy h4 {
  max-width: 10ch;
  font-size: clamp(64px, 7vw, 132px);
  font-weight: 570;
  line-height: .84;
  letter-spacing: -.075em;
}

.bex-ecosystem__copy p {
  max-width: 31ch;
  margin-top: 44px;
  color: rgba(17, 16, 14, .67);
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.7;
}

.bex-ecosystem figure {
  width: min(48vw, 820px);
  justify-self: end;
  box-shadow: 0 42px 120px rgba(25, 24, 22, .12);
}

.bex-ecosystem__footer {
  grid-column: 1 / -1;
  padding-top: 22px;
  padding-bottom: 0;
  border-top: 1px solid rgba(17, 16, 14, .24);
  border-bottom: 0;
}

@supports (animation-timeline: view()) {
  .bex-plate .bex-artwork,
  .bex-app-story figure,
  .bex-scroll-story figure,
  .bex-ecosystem figure {
    animation: bex-enter linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 34%;
  }

  @keyframes bex-enter {
    from {
      opacity: .4;
      transform: translateY(70px) scale(.965);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 900px) {
  .bex-editorial__intro {
    min-height: 86svh;
  }

  .bex-editorial__intro-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .bex-app-story,
  .bex-scroll-story,
  .bex-ecosystem {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .bex-app-story figure,
  .bex-scroll-story figure,
  .bex-ecosystem figure {
    width: 100%;
    justify-self: stretch;
  }

  .bex-scroll-story aside {
    position: relative;
    top: auto;
    min-height: 0;
    padding-bottom: 42px;
  }

  .bex-scroll-story aside p {
    margin-top: 80px;
  }

  .bex-ecosystem__footer {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bex-editorial *,
  .bex-editorial *::before,
  .bex-editorial *::after {
    animation: none !important;
    transition: none !important;
  }
}
