/* Royal Smoke — About page (7g sticky media + timeline) */

body.rs-about-page {
  background-color: var(--rs-page-bg);
  background-image: none;
}

body.rs-about-page .rs-site,
body.rs-about-page .rs-main {
  position: relative;
  z-index: 1;
  background: transparent;
  overflow: visible;
}

body.rs-about-page .rs-main {
  isolation: isolate;
}

body.rs-about-page .rs-crumbs-bar,
body.rs-about-page .rs-about,
body.rs-about-page .rs-footer {
  position: relative;
  z-index: 2;
}

@supports (-webkit-touch-callout: none) {
  body.rs-about-page {
    background-attachment: scroll;
  }
}

/* ——— Layout ——— */
.rs-about {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--rs-container);
  margin-inline: auto;
  padding:
    clamp(12px, 2.5vh, 28px)
    var(--rs-pad-x)
    calc(72px + env(safe-area-inset-bottom, 0px));
}

.rs-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

/* ——— Sticky media (left on desktop) ——— */
.rs-about__media {
  position: relative;
  width: 100%;
}

.rs-about__media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #100d0c;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.rs-about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.rs-about__media-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 13, 12, 0.08) 0%,
    rgba(16, 13, 12, 0.35) 48%,
    rgba(16, 13, 12, 0.92) 100%
  );
  pointer-events: none;
}

.rs-about__years {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    28px
    max(20px, env(safe-area-inset-left, 0px))
    max(28px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}

.rs-about__years-num {
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-display);
  font-size: clamp(64px, 14vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--rs-seashell);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.rs-about__years-label {
  margin-top: 10px;
  font-family: var(--rs-font-ui);
  font-size: 11px;
  font-weight: var(--rs-weight-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rs-gold);
}

/* ——— Body / timeline ——— */
.rs-about__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 8px;
}

.rs-about__kicker {
  display: block;
  font-family: var(--rs-font-ui);
  font-size: 12px;
  font-weight: var(--rs-weight-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rs-gold);
}

.rs-about__title {
  margin: 14px 0 0;
  max-width: 22ch;
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-display);
  font-size: clamp(28px, 5.5vw, 42px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--rs-seashell);
}

.rs-about__lead {
  margin: 16px 0 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rs-text-muted);
  text-wrap: pretty;
}

.rs-about__timeline {
  list-style: none;
  margin: clamp(32px, 5vw, 44px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rs-about__era {
  margin: 0;
  padding: 0 0 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rs-hairline);
}

.rs-about__era:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.rs-about__era-year {
  display: block;
  font-family: var(--rs-font-ui);
  font-size: 11px;
  font-weight: var(--rs-weight-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rs-gold);
}

.rs-about__era-title {
  margin: 10px 0 10px;
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-sub);
  font-size: clamp(20px, 3.4vw, 24px);
  line-height: 1.2;
  color: var(--rs-seashell);
}

.rs-about__era-text {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rs-text-muted);
  text-wrap: pretty;
}

.rs-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.rs-about__actions .rs-btn {
  flex: 1 1 auto;
  min-width: min(100%, 160px);
}

/* ——— Tablet ——— */
@media (min-width: 768px) and (max-width: 1099px) {
  .rs-about {
    padding-top: clamp(16px, 3vh, 32px);
  }

  .rs-about__grid {
    grid-template-columns: minmax(280px, 44%) minmax(0, 1fr);
    gap: clamp(28px, 3.5vw, 40px);
  }

  .rs-about__media {
    position: sticky;
    top: calc(var(--rs-header-h) + var(--rs-safe-t, 0px) + 16px);
    align-self: start;
  }

  .rs-about__media-frame {
    aspect-ratio: auto;
    height: calc(
      100dvh - var(--rs-header-h) - var(--rs-safe-t, 0px) - 112px
        - env(safe-area-inset-bottom, 0px)
    );
    max-height: 720px;
    min-height: 400px;
  }

  .rs-about__years {
    padding: 34px 28px;
  }

  .rs-about__actions .rs-btn {
    flex: 0 0 auto;
  }
}

/* ——— Desktop ——— */
@media (min-width: 1100px) {
  .rs-about {
    padding-top: clamp(20px, 3vh, 40px);
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .rs-about__grid {
    grid-template-columns: minmax(400px, 46%) minmax(0, 1fr);
    column-gap: clamp(40px, 4.5vw, 64px);
  }

  .rs-about__media {
    position: sticky;
    top: calc(var(--rs-header-h) + var(--rs-safe-t, 0px) + 20px);
    align-self: start;
  }

  .rs-about__media-frame {
    aspect-ratio: auto;
    height: calc(
      100dvh - var(--rs-header-h) - var(--rs-safe-t, 0px) - 120px
        - env(safe-area-inset-bottom, 0px)
    );
    max-height: 760px;
    min-height: 460px;
  }

  .rs-about__body {
    padding-top: 8px;
    padding-right: 0;
    max-width: none;
  }

  .rs-about__lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .rs-about__era-text {
    font-size: 15px;
    line-height: 1.75;
  }

  .rs-about__years {
    padding: 40px 34px;
  }

  .rs-about__actions .rs-btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 1400px) {
  .rs-about__grid {
    grid-template-columns: minmax(460px, 48%) minmax(0, 1fr);
    column-gap: 72px;
  }

  .rs-about__title {
    max-width: 18ch;
    font-size: clamp(36px, 3.2vw, 46px);
  }
}

/* ——— Mobile / small phone ——— */
@media (max-width: 767px) {
  .rs-about__media-frame {
    aspect-ratio: 4 / 5;
    max-height: min(72vh, 560px);
  }

  .rs-about__years {
    padding: 24px 18px max(22px, env(safe-area-inset-bottom, 0px));
  }

  .rs-about__actions {
    flex-direction: column;
  }

  .rs-about__actions .rs-btn {
    width: 100%;
    min-width: 0;
  }
}

/* iOS Safari: prefer svh fallback where dvh jumps on toolbar show/hide */
@supports (-webkit-touch-callout: none) {
  @media (min-width: 768px) {
    .rs-about__media-frame {
      height: calc(
        100svh - var(--rs-header-h) - var(--rs-safe-t, 0px) - 112px
          - env(safe-area-inset-bottom, 0px)
      );
    }
  }

  @media (min-width: 1100px) {
    .rs-about__media-frame {
      height: calc(
        100svh - var(--rs-header-h) - var(--rs-safe-t, 0px) - 120px
          - env(safe-area-inset-bottom, 0px)
      );
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-about__img {
    -webkit-transform: none;
    transform: none;
  }
}
