/* Hero: full-screen photo, title, buttons and the facts column on the right. */

.r-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: var(--r-navy);
  color: #fff;
}
.r-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.r-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: r-hero-zoom 9s cubic-bezier(.2, .7, .2, 1) both;
}
.r-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 37%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .2) 14%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .6) 70%, rgba(0, 0, 0, .45) 100%);
}

.r-hero__in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--r-maxw);
  margin: 0 auto;
  padding: 0 max(var(--r-gutter), env(safe-area-inset-right, 0px)) 56px max(var(--r-gutter), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.r-hero__main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }

.r-hero__title {
  display: flex; flex-direction: column;
  font: 300 77px/1.02 var(--r-font-head);
  letter-spacing: -.03em;
  color: #fff;
}
.r-hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.r-hero__line > span { display: block; animation: r-hero-line 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .15s; }
.r-hero__line--gold { color: var(--r-gold-text); }
.r-hero__line--gold > span { animation-delay: .3s; }
.r-hero__sub { font: 400 19px/1.25 var(--r-font); color: #fff; animation: r-hero-rise .9s cubic-bezier(.2, .7, .2, 1) .5s both; }
.r-hero__btns { display: flex; gap: 14px; padding-top: 10px; animation: r-hero-rise .9s cubic-bezier(.2, .7, .2, 1) .62s both; }
.r-page .r-hero__btn { font-weight: 500; }
.r-hero .r-btn--gold { color: var(--r-ink); }
.r-hero__arrow { width: 12px; height: 12px; margin-left: 2px; }

/* Facts column: one item at a time shows its photo (auto-rotates, click/hover to pick). */
.r-hero__facts { flex: none; width: 250px; display: flex; flex-direction: column; }
.r-hero__fact {
  display: flex; flex-direction: column;
  padding: 14px 0;
  border-top: 1px solid var(--r-gold-line);
  cursor: pointer;
  outline-offset: 4px;
}
.r-hero__fact:last-child { border-bottom: 1px solid var(--r-gold-line); }
.r-hero__fact-ph { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.4, 0, .2, 1); }
.r-hero__fact-ph > div { overflow: hidden; min-height: 0; }
.r-hero__fact-img {
  display: block; width: 250px; height: 188px; object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s ease, transform 1.2s ease;
}
.r-hero__fact.is-on .r-hero__fact-ph { grid-template-rows: 1fr; }
.r-hero__fact.is-on .r-hero__fact-img { opacity: 1; transform: none; }
.r-hero__fact-txt { display: flex; flex-direction: column; }
.r-hero__fact-val {
  width: fit-content;
  padding-right: .08em;
  font: 300 38px/1.05 var(--r-font);
  letter-spacing: -.035em;
  background: var(--r-gold-text-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.r-hero__fact--single .r-hero__fact-val { max-width: 170px; font-size: 24px; }
.r-hero__fact-short { display: none; }
.r-hero__fact-cap { font: 400 15px/18px var(--r-font); color: rgba(255, 255, 255, .82); }

/* Entrance waits for the loader. */
.r-loading .r-hero__line > span,
.r-loading .r-hero__sub,
.r-loading .r-hero__btns,
.r-loading .r-hero__img { animation-play-state: paused; }

@keyframes r-hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes r-hero-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes r-hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .r-hero__in { flex-direction: column; align-items: stretch; gap: 28px; padding-bottom: 44px; }
  .r-hero__title { font-size: 54px; }
  .r-hero__facts { width: auto; flex-direction: row; gap: 24px; }
  .r-hero__fact {
    flex: 1 1 0; min-width: 0;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 16px 0 0;
    cursor: default;
  }
  .r-hero__fact:last-child { border-bottom: 0; }
  .r-hero__fact-ph { display: block; flex: none; }
  .r-hero__fact-img {
    width: 66px; height: 50px; margin: 0;
    border-radius: 12px; border: 1px solid rgba(220, 192, 136, .45);
    opacity: 1; transform: none;
  }
  .r-hero__fact-txt { gap: 2px; }
  .r-hero__fact-val { font: 300 26px/1.2 var(--r-font-head); letter-spacing: 0; background: none; color: var(--r-gold-text); -webkit-text-fill-color: currentColor; padding: 0; }
  .r-hero__fact--single .r-hero__fact-val { max-width: none; font-size: 22px; line-height: 1.1; white-space: nowrap; }
  .r-hero__fact-val.has-short { display: none; }
  .r-hero__fact-short { display: block; font: 300 22px/1.1 var(--r-font-head); color: var(--r-gold-text); white-space: nowrap; }
  .r-hero__fact-cap { font-size: 12px; line-height: 15px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .r-hero { min-height: 640px; }
  .r-hero__in { padding-bottom: 33px; gap: 0; }
  .r-hero__title { font-size: 42px; }
  .r-hero__sub { font-size: 15px; line-height: 1.2; }
  .r-hero__btns { flex-direction: column; gap: 12px; width: 100%; }
  .r-page .r-hero__btn { width: 100%; height: 54px; font-size: 17px; }
  .r-hero__facts { display: none; }
}

/* Beat the generic `.r-page button` reset in base.css. */
.r-page .r-hero__btn { padding: 0 24px; }
.r-page .r-hero .r-btn--gold { background: var(--r-gold-grad); color: var(--r-ink); }
.r-page .r-hero .r-btn--outline { border: 1px solid var(--r-gold); color: var(--r-gold-text); }
.r-page .r-hero .r-btn--outline:hover { background: var(--r-gold-grad); border-color: transparent; color: var(--r-navy); }
.r-page .r-hero__btn { font: 500 17px/1 var(--r-font); }
