/* Sections following Projects: layout and motion based on the supplied Bildora mirror. */

.stories-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0c0c0c;
  color: #fff;
}

.stories-section__sticky {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
  pointer-events: none;
}

.stories-section__intro {
  max-width: 730px;
  margin: auto;
  will-change: opacity, filter, transform;
}

.stories-section__intro .pill {
  background: #f15a29;
  color: #fff;
  box-shadow: 0 0 26px rgba(241, 90, 41, .44);
}

.stories-section__intro h2 {
  margin: 0 auto 18px;
  font-size: clamp(38px, 4.7vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.stories-section__intro p {
  max-width: 590px;
  margin: auto;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.65;
}

.stories-section__stream {
  position: relative;
  z-index: 1;
  height: 2280px;
  max-width: 1230px;
  margin-top: -50px;
  padding-bottom: 150px;
  pointer-events: none;
}

.story-card {
  position: absolute;
  width: min(400px, 39%);
  min-height: 385px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 52px;
  padding: 24px;
  background: #ef592c;
  color: #fff;
  pointer-events: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease, box-shadow .3s ease;
}

.story-card:hover {
  box-shadow: 0 30px 90px rgba(239, 89, 44, .19);
}

.story-card:nth-child(1) { left: 5%; top: 110px; }
.story-card:nth-child(2) { right: 6%; top: 0; }
.story-card:nth-child(3) { right: 1%; top: 690px; }
.story-card:nth-child(4) { left: 12%; top: 800px; }
.story-card:nth-child(5) { right: 9%; top: 1510px; }
.story-card:nth-child(6) { left: 4%; top: 1660px; }

.story-card__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-card h3 {
  max-width: 355px;
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.03em;
}

.story-card__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.story-card__number {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #e34c1f;
  font-size: 16px;
  font-weight: 700;
}

html.has-motion .story-card:not(.is-visible) {
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 90px, 0) scale(.94);
}

html.has-motion .story-card.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

/* Two editorial cards, as in Bildora's blog composition. */
.journal-section {
  padding: 128px 0 135px;
  background: #f5f2f2;
  color: #1f2d3d;
}

.journal-section__head {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.journal-section__head h2 {
  font-size: clamp(35px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.04em;
}

.journal-section__head p {
  max-width: 650px;
  margin: auto;
  color: #4b4b4b;
  font-size: 16px;
  line-height: 1.65;
}

.journal-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.journal-card {
  display: block;
  min-width: 0;
  color: #1f2d3d;
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1), filter .75s ease;
}

.journal-card__media {
  height: clamp(320px, 37vw, 470px);
  overflow: hidden;
  background: #dad0ce;
}

.journal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.journal-card:hover .journal-card__media img,
.journal-card:focus-visible .journal-card__media img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.journal-card__meta {
  display: block;
  margin-top: 20px;
  color: #5b5655;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.journal-card__meta span {
  margin: 0 6px;
  color: #ef592c;
}

.journal-card h3 {
  min-height: 2.45em;
  margin-top: 12px;
  color: #e6552a;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.journal-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  color: #3d3b3b;
  font-size: 13px;
}

.journal-card__bottom span:last-child {
  white-space: nowrap;
}

.journal-card__bottom span span {
  color: #ef592c;
  font-size: 18px;
  vertical-align: -1px;
}

.journal-section__note {
  margin-top: 28px;
  color: #8a817d;
  font-size: 12px;
  text-align: right;
}

html.has-motion .journal-card:not(.is-visible) {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 70px, 0);
}

/* Image-led call to action and oversized footer wordmark. */
.closing-cta {
  position: relative;
  isolation: isolate;
  min-height: 545px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1b1312;
  color: #fff;
  text-align: center;
}

.closing-cta__image,
.closing-cta__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing-cta__image {
  z-index: -2;
  object-fit: cover;
  object-position: center 45%;
  transform: translate3d(0, var(--cta-shift, 0px), 0) scale(1.08);
  will-change: transform;
}

.closing-cta__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.58) 72%, #050505 100%);
}

.closing-cta__content {
  padding-top: 120px;
  padding-bottom: 115px;
}

.closing-cta h2 {
  max-width: 950px;
  margin: 0 auto 65px;
  font-size: clamp(38px, 5.1vw, 70px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.closing-cta__rule {
  width: min(75%, 760px);
  height: 1px;
  margin: 0 auto 32px;
  background: rgba(255, 255, 255, .86);
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

html.has-motion .closing-cta:not(.is-visible) .closing-cta__rule {
  transform: scaleX(0);
}

.closing-cta__button {
  min-width: 205px;
  padding: 14px 24px;
  font-size: 14px;
}

.closing-cta__button span {
  margin-left: 10px;
  font-size: 20px;
  line-height: 0;
}

.footer--bildora {
  border-top: 0;
  padding: 76px 0 28px;
  background: #050505;
  color: #fff;
}

.footer--bildora .footer__grid {
  grid-template-columns: 1.18fr .72fr .98fr 1.25fr;
  gap: 42px;
  margin-bottom: 85px;
}

.footer--bildora .footer__intro img {
  width: 205px;
  height: 180px;
  margin-bottom: 18px;
  border-radius: 5px;
  object-fit: cover;
}

.footer--bildora .footer__intro p {
  max-width: 205px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.footer--bildora h4 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.footer--bildora ul {
  gap: 15px;
}

.footer--bildora li {
  overflow-wrap: anywhere;
  color: rgba(255,255,255,.84);
  font-size: 13px;
}

.footer--bildora a:hover {
  color: #ef592c;
}

.footer--bildora .footer__social {
  margin-top: 28px;
}

.footer--bildora .footer__social a {
  border: 0;
  border-radius: 6px;
  background: #1b1b1b;
}

.footer__wordmark {
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #ef592c 10%, #9d2a17 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(42px, 15.5vw, 220px);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.095em;
  white-space: nowrap;
}

.footer__wordmark span {
  display: block;
  margin: 0 0 10px 1%;
  color: #f15a29;
  font-size: clamp(13px, 2vw, 24px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2em;
}

.footer--bildora .footer__bottom {
  align-items: center;
  margin-top: 75px;
  padding-top: 24px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
}

.footer--bildora .footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Word blur and lift matches the reference's staggered headings. */
.motion-heading .motion-word {
  display: inline-block;
  transition: opacity .7s ease, filter .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--word-index) * 55ms);
}

html.has-motion .motion-heading:not(.is-visible) .motion-word {
  opacity: .08;
  filter: blur(10px);
  transform: translate3d(0, 16px, 0);
}

@media (max-width: 900px) {
  .stories-section__sticky {
    position: relative;
    height: auto;
    min-height: 540px;
  }

  .stories-section__stream {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: -35px;
    padding-bottom: 110px;
  }

  .story-card:nth-child(n) {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 330px;
  }

  .story-card:nth-child(even) {
    transform: translateY(42px);
  }

  .journal-section {
    padding: 100px 0;
  }

  .footer--bildora .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .navbar__pill,
  .navbar__cta .btn { display: none; }
  .navbar__toggle { display: flex; }
}

@media (max-width: 640px) {
  .stories-section__sticky {
    min-height: 420px;
    padding: 75px 24px 45px;
  }

  .stories-section__intro h2 {
    font-size: clamp(34px, 9vw, 50px);
  }

  .stories-section__intro p {
    font-size: 14px;
  }

  .stories-section__stream {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 0;
    padding-bottom: 80px;
  }

  .story-card:nth-child(n) {
    min-height: 280px;
    transform: none;
  }

  .story-card h3 {
    font-size: 24px;
  }

  .journal-section {
    padding: 78px 0 82px;
  }

  .journal-section__head {
    margin-bottom: 45px;
  }

  .journal-section__head h2 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .journal-section__head p {
    font-size: 14px;
  }

  .journal-section__grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .journal-card__media {
    height: 360px;
  }

  .journal-card h3 {
    min-height: 0;
  }

  .journal-card__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 18px;
  }

  .closing-cta {
    min-height: 500px;
  }

  .closing-cta__content {
    padding-top: 95px;
    padding-bottom: 90px;
  }

  .closing-cta h2 {
    margin-bottom: 50px;
    font-size: clamp(34px, 9vw, 50px);
  }

  .closing-cta__rule {
    width: 85%;
  }

  .footer--bildora {
    padding-top: 65px;
  }

  .footer--bildora .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 18px;
    margin-bottom: 65px;
  }

  .footer--bildora .footer__intro {
    grid-column: 1 / -1;
  }

  .footer--bildora .footer__contact {
    grid-column: 1 / -1;
  }

  .footer--bildora .footer__intro img {
    width: 180px;
    height: 160px;
  }

  .footer--bildora .footer__bottom {
    margin-top: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .story-card,
  .journal-card,
  .motion-heading .motion-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .closing-cta__image { transform: none !important; }
  .closing-cta__rule { transform: none !important; }
  .wa-float { animation: none !important; }
}
