/* About page — cinematic frame scrub into an editorial journey timeline. */

.about-redesign {
  --about-cream: #fffae7;
  --about-red: #d02e2e;
  --about-ink: #2f2d2d;
  background: var(--about-cream);
}

.about-redesign main {
  overflow: clip;
}

.about-story {
  position: relative;
  height: 500svh;
  background: #171515;
  color: var(--about-cream);
}

.about-story__stage {
  position: sticky;
  top: 84px;
  height: calc(100svh - 84px);
  min-height: 560px;
  overflow: hidden;
  background: #171515 url('/assets/about/frames/desktop/frame-001.jpg') center / cover no-repeat;
}

.about-story__canvas,
.about-story__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-story__canvas {
  will-change: transform;
}

.about-story__shade {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(21, 17, 15, 0.35), transparent 32%, rgba(21, 17, 15, 0.28)),
    radial-gradient(circle at 50% 50%, transparent 25%, rgba(21, 17, 15, 0.22) 100%);
}

.about-story__opening,
.about-story__beats,
.about-story__close,
.about-story__hint {
  position: absolute;
  z-index: 2;
}

.about-story__opening {
  top: 12%;
  left: 50%;
  width: min(92vw, 1480px);
  transform: translateX(-50%);
  text-align: center;
  will-change: opacity, transform;
}

.about-story__kicker {
  margin: 0 0 16px;
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.about-story__opening h1 {
  margin: 0;
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(5rem, 13.4vw, 13.6rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 4px 38px rgba(0, 0, 0, 0.36);
}

.about-story__opening h1 em,
.about-story__close em {
  font-family: 'Playfair Display', serif;
  font-size: 0.76em;
  font-weight: 500;
  text-transform: none;
}

.about-story__beats {
  top: 19%;
  left: 50%;
  width: min(86vw, 820px);
  transform: translate(-50%, -50%);
  text-align: center;
}

.about-story__beat {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  color: var(--about-cream);
  font-size: clamp(1.45rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.65);
  will-change: opacity, transform;
}

.about-story__close {
  right: clamp(24px, 5vw, 76px);
  bottom: clamp(64px, 10vh, 110px);
  max-width: min(44vw, 650px);
  opacity: 0;
  text-align: right;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55);
  will-change: opacity, transform;
}

.about-story__close p {
  margin: 0;
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(2.4rem, 5.7vw, 6.3rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.about-story__close p:last-child {
  color: var(--about-cream);
  text-transform: none;
}

.about-story__hint {
  top: auto;
  bottom: clamp(42px, 6vh, 64px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-story__hint svg {
  animation: about-hint 1.5s ease-in-out infinite;
}

@keyframes about-hint {
  50% { transform: translateY(5px); }
}

.journey {
  position: relative;
  padding: clamp(86px, 10vw, 160px) 0 clamp(100px, 12vw, 180px);
  overflow: hidden;
  background: var(--about-red);
  color: var(--about-cream);
}

.journey__intro {
  width: min(100% - 96px, 1380px);
  margin: 0 auto clamp(90px, 10vw, 150px);
}

.journey__eyebrow {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey h2 {
  margin: 0;
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(5rem, 10.8vw, 11.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.journey h2 em {
  font-family: 'Playfair Display', serif;
  font-size: 0.77em;
  font-weight: 500;
  text-transform: none;
}

.journey__timeline {
  position: relative;
  width: min(100% - 96px, 1380px);
  min-height: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 64px);
}

.journey__line {
  position: absolute;
  top: 112px;
  right: calc(50% - 50vw);
  left: calc(50% - 50vw);
  height: 1px;
  background: rgba(255, 250, 231, 0.8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.15s cubic-bezier(.22, .8, .23, 1);
}

.journey__timeline.is-visible .journey__line {
  transform: scaleX(1);
}

.journey-card {
  position: relative;
  min-width: 0;
  padding-top: 0;
}

.journey-card--bottom {
  padding-top: 86px;
}

.journey-card__marker {
  position: absolute;
  top: 30px;
  left: 0;
  width: 1px;
  height: 82px;
  background: rgba(255, 250, 231, 0.85);
}

.journey-card--bottom .journey-card__marker {
  top: 112px;
}

.journey-card__step {
  height: 112px;
  margin: 0;
  padding: 23px 0 0 25px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  font-style: italic;
  line-height: 1;
}

.journey-card--bottom .journey-card__step {
  padding-top: 58px;
}

.journey-card img {
  width: min(100%, 250px);
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: center 28%;
  margin: 86px 0 30px;
  filter: saturate(0.9) contrast(1.02);
}

.journey-card--bottom img {
  margin-top: 86px;
}

.journey-card h3 {
  margin: 0 0 15px;
  font-family: 'Mariah Display', 'Arial Narrow', sans-serif;
  font-size: clamp(1.7rem, 2.3vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.journey-card > p:last-child {
  max-width: 310px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
}

.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 720ms ease,
    transform 900ms cubic-bezier(.22, .8, .23, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.journey-card:nth-of-type(1) { transition-delay: 80ms; }
.journey-card:nth-of-type(2) { transition-delay: 160ms; }
.journey-card:nth-of-type(3) { transition-delay: 240ms; }
.journey-card:nth-of-type(4) { transition-delay: 320ms; }

@media (max-width: 760px) {
  .about-story {
    height: 430svh;
  }

  .about-story__stage {
    min-height: 520px;
    background-image: url('/assets/about/frames/mobile/frame-001.jpg');
  }

  .about-story__opening {
    top: 11%;
    width: calc(100% - 28px);
  }

  .about-story__kicker {
    margin-bottom: 10px;
    font-size: 0.6rem;
  }

  .about-story__opening h1 {
    font-size: clamp(3.25rem, 17vw, 5.6rem);
    line-height: 0.84;
    white-space: normal;
  }

  .about-story__opening h1 em {
    display: block;
    margin-top: 0.06em;
  }

  .about-story__beats {
    top: 20%;
    width: calc(100% - 40px);
  }

  .about-story__beat {
    font-size: clamp(1.22rem, 6vw, 1.85rem);
  }

  .about-story__hint {
    top: auto;
    bottom: 48px;
  }

  .about-story__close {
    right: 20px;
    bottom: 66px;
    max-width: calc(100% - 40px);
  }

  .about-story__close p {
    font-size: clamp(2.15rem, 11vw, 4rem);
  }

  .journey {
    padding: 84px 0 110px;
  }

  .journey__intro {
    width: calc(100% - 40px);
    margin-bottom: 70px;
  }

  .journey h2 {
    font-size: clamp(4.2rem, 20vw, 6.5rem);
  }

  .journey__timeline {
    width: calc(100% - 40px);
    min-height: 0;
    display: block;
  }

  .journey__line {
    top: 0;
    right: auto;
    bottom: 0;
    left: 15px;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .journey__timeline.is-visible .journey__line {
    transform: scaleY(1);
  }

  .journey-card,
  .journey-card--bottom {
    padding: 0 0 78px 55px;
  }

  .journey-card:last-of-type {
    padding-bottom: 0;
  }

  .journey-card__marker,
  .journey-card--bottom .journey-card__marker {
    top: 18px;
    left: 9px;
    width: 13px;
    height: 1px;
  }

  .journey-card__step,
  .journey-card--bottom .journey-card__step {
    height: auto;
    padding: 0 0 18px;
    font-size: 2.35rem;
  }

  .journey-card img,
  .journey-card--bottom img {
    width: min(100%, 290px);
    margin: 0 0 24px;
  }

  .journey-card h3 {
    font-size: 2rem;
  }
}

@media (max-width: 820px) {
  .about-story__stage {
    top: 70px;
    height: calc(100svh - 70px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-story {
    height: 100svh;
  }

  .about-story__stage {
    position: relative;
    top: 0;
    height: 100%;
  }

  .about-story__canvas {
    display: none;
  }

  .about-story__beats {
    display: none;
  }

  .about-story__opening,
  .about-story__close,
  .about-story__hint,
  .reveal-up,
  .journey__line {
    opacity: 1 !important;
    transform: none !important;
  }

  .about-story__hint {
    display: none;
  }
}
