/* Concept R5 — Homepage Hero, Facts Strip & Editorial Rhythm */
:root {
  --r5-paper: #F3F0E8;
  --r5-ink: #141C33;
  --r5-cobalt: #2340C0;
  --r5-cobalt-dark: #192E94;
  --r5-orange: #D2401E;
  --r5-line: rgba(20, 28, 51, 0.18);
}

body[data-rreako-geo="home"] {
  background: var(--r5-paper);
  color: var(--r5-ink);
}

/* R5 Full-bleed Asymmetric Factory + G7 Hero */
.r5-hero {
  position: relative;
  min-height: calc(100svh - var(--bar-height, 64px));
  min-height: clamp(680px, calc(100svh - var(--bar-height, 64px)), 920px);
  background: var(--r5-paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.r5-hero-stage {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 56px) clamp(20px, 4.4vw, 64px) clamp(28px, 3.5vw, 44px);
  z-index: 2;
}

.r5-hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 61%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  background: url("media/line-6904.webp") center / cover no-repeat;
  z-index: 1;
  pointer-events: none;
}

.r5-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35, 64, 192, 0.92) 0%, rgba(35, 64, 192, 0.72) 46%, rgba(20, 28, 51, 0.30) 100%);
}

.r5-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 680px;
}

.r5-mono-kicker {
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r5-orange);
  margin: 0 0 clamp(16px, 2vw, 24px);
}

.r5-hero-copy h1 {
  margin: 0;
  font-size: clamp(54px, 7.6vw, 110px);
  line-height: 0.87;
  letter-spacing: -0.065em;
  font-weight: 900;
  color: var(--r5-ink);
}

.r5-hero-copy h1 em,
.r5-em {
  font-style: italic;
  color: var(--r5-cobalt);
}

.r5-hero-sub {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.42;
  color: var(--r5-ink);
  max-width: 46ch;
}

.r5-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(22px, 2.6vw, 34px);
}

.r5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  background: var(--r5-cobalt);
  color: #fff;
  border: 2px solid var(--r5-cobalt);
  transition: background-color .15s, border-color .15s, color .15s;
}

.r5-btn:hover,
.r5-btn:focus-visible {
  background: var(--r5-cobalt-dark);
  border-color: var(--r5-cobalt-dark);
}

.r5-btn--ghost {
  background: rgba(243, 240, 232, 0.9);
  color: var(--r5-ink);
  border-color: var(--r5-ink);
}

.r5-btn--ghost:hover,
.r5-btn--ghost:focus-visible {
  background: var(--r5-ink);
  color: #fff;
}

/* Right G7 Stage inside Hero */
.r5-hero-product {
  position: relative;
  z-index: 5;
  border: 0;
  padding: 0;
  margin: 0;
  min-height: clamp(380px, 54svh, 580px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.r5-hero-chip {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
  color: #fff;
  z-index: 7;
  pointer-events: none;
}

.r5-hero-chip span {
  display: block;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.r5-hero-chip b {
  display: block;
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 4px;
}

.r5-pose-stage {
  position: relative;
  width: 100%;
  height: clamp(380px, 56svh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.r5-pose-stage .r5-pose-img {
  position: absolute;
  max-height: 108%;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  filter: drop-shadow(-34px 42px 44px rgba(10, 16, 40, 0.48));
  transition: opacity .24s ease, transform .32s cubic-bezier(.22,.74,.19,1);
}

.r5-pose-img--handheld {
  transform: rotate(-8deg);
}

.r5-pose-img--extended {
  max-height: 112%;
  transform: rotate(12deg);
  opacity: 0;
  pointer-events: none;
}

#pose-extended:checked ~ .r5-pose-stage .r5-pose-img--handheld {
  opacity: 0;
  pointer-events: none;
  transform: rotate(-14deg) translateX(-18px);
}

#pose-extended:checked ~ .r5-pose-stage .r5-pose-img--extended {
  opacity: 1;
  pointer-events: auto;
  transform: rotate(12deg);
}

.r5-pose-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: inline-flex;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(20, 28, 51, 0.72);
  backdrop-filter: blur(6px);
}

.r5-pose-toggle label {
  cursor: pointer;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

#pose-handheld:checked ~ .r5-pose-toggle label[for="pose-handheld"],
#pose-extended:checked ~ .r5-pose-toggle label[for="pose-extended"] {
  background: #fff;
  color: var(--r5-ink);
}

/* Bottom 5-Column Dark Ink Facts Bar */
.r5-facts-bar {
  position: relative;
  z-index: 6;
  background: var(--r5-ink);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.r5-facts-bar > div {
  padding: clamp(18px, 2vw, 26px) clamp(16px, 2.4vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.r5-facts-bar > div:last-child {
  border-right: 0;
}

.r5-facts-bar b {
  display: block;
  font-size: clamp(22px, 2.35vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.r5-facts-bar span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 960px) {
  .r5-hero-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }
  .r5-hero-photo {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 52%;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }
  .r5-hero-product {
    min-height: 330px;
  }
  .r5-pose-stage {
    height: 320px;
  }
  .r5-facts-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .r5-facts-bar > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .r5-facts-bar > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}
