/* Homepage chapters 04-09: Exterior design, Interior, Technology & capability, Lifestyle.
   Desktop values from desktop.html; <=760px from mobile.html. */

/* ---------- Shared ---------- */
.rx-h2--lg { font-size: var(--rx-fs-h2-lg); }
.rx-on-light { color: var(--rx-on-light); }
.rx-split-head { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.rx-split-head__text { max-width: 410px; margin: 0; font-size: 17px; line-height: 1.7; font-weight: 300; }
.rx-only-narrow, .rx-only-narrow-grid { display: none; }

/* Background film with instant poster (shared by design and technology bands). */
.rx-film__poster, .rx-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-film__video { opacity: 0; transition: opacity 1s var(--rx-ease); }
.rx-film__video.is-playing { opacity: 1; }

/* ---------- 04 Exterior design (ivory) ---------- */
.rx-design { background: var(--rx-ivory); padding: var(--rx-section) 0; }
.rx-design .rx-split-head__text { max-width: 400px; color: var(--rx-on-light-body); }
.rx-design__titles { max-width: 780px; }
.rx-design .rx-h2 { line-height: .98; }
.rx-design__em { display: block; font-style: italic; color: var(--rx-olive); padding-bottom: .06em; }

.rx-design__band { margin-top: 72px; }
.rx-design__wide { height: 560px; overflow: hidden; }
.rx-design__wide picture { display: block; height: 100%; transform-origin: 50% 60%; }
.rx-design__wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.rx-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-bottom: 1px solid var(--rx-line-light); }
.rx-dims__item { padding: 28px 24px; border-inline-end: 1px solid var(--rx-line-light); }
.rx-dims__item:first-child { padding-inline-start: 0; }
.rx-dims__item:last-child { border-inline-end: 0; }
.rx-dims dt { font-size: var(--rx-fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--rx-on-light-muted); }
.rx-dims dd { margin-top: 8px; font-family: var(--rx-font-display); font-size: 40px; line-height: 1; }
.rx-dims dd span { font-family: var(--rx-font-ui); font-size: 14px; }

.rx-design__pair { margin-top: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; align-items: start; }
.rx-design__figure { margin: 0; }
.rx-design__figure:nth-child(2) { margin-top: 120px; }
.rx-design__figure-media { height: 520px; }
.rx-design__figure-media img { width: 100%; height: 100%; object-fit: cover; }
.rx-design__figure figcaption { margin-top: 22px; display: flex; gap: 20px; align-items: baseline; }
.rx-design__numeral { font-family: var(--rx-font-display); font-size: 22px; color: var(--rx-bronze); }
.rx-design__figure strong { display: block; font-weight: 500; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; }
.rx-design__caption { display: block; font-size: 15px; line-height: 1.6; color: var(--rx-on-light-copy); font-weight: 300; }

.rx-film { margin-top: 96px; display: flex; flex-wrap: wrap; background: var(--rx-ink); color: var(--rx-on-dark); }
.rx-film__media { position: relative; flex: 999 1 620px; min-width: 0; height: 520px; overflow: hidden; }
.rx-film__copy { flex: 1 1 360px; min-width: 0; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.rx-film__copy .rx-eyebrow { color: var(--rx-accent); }
.rx-film__title { font-family: var(--rx-font-display); font-weight: 500; font-size: 44px; line-height: 1.05; }
.rx-film__text { font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--rx-on-dark-body); }
.rx-film__tag { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--rx-on-dark); }

/* ---------- 05 Interior ---------- */
.rx-interior { background: var(--rx-ink); padding: var(--rx-section) 0 120px; }
.rx-interior__head { max-width: 760px; margin-inline: auto; text-align: center; }
.rx-interior__text { max-width: 560px; margin: 22px auto 0; font-size: 17px; line-height: 1.65; font-weight: 300; color: var(--rx-on-dark-body); }
.rx-interior__wrap { position: relative; margin-top: 60px; }
.rx-interior__stage { position: relative; height: 640px; overflow: hidden; }
.rx-interior__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.rx-interior__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(9, 12, 11, .55) 0%, rgba(9, 12, 11, 0) 40%); }

.rx-spot {
	position: absolute; z-index: 2; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
	font-family: var(--rx-font-ui); font-size: 12px; font-weight: 600;
	background: rgba(9, 12, 11, .6); color: var(--rx-ivory); border: 1px solid rgba(244, 240, 232, .7);
	transition: background-color .3s, box-shadow .3s, color .3s;
}
.rx-spot:hover { background: rgba(9, 12, 11, .85); }
.rx-spot[aria-pressed="true"] { background: var(--rx-accent); color: var(--rx-ink); border: 0; box-shadow: 0 0 0 8px rgba(197, 168, 120, .25); }
.rx-spot[hidden] { display: none; }

.rx-detail {
	position: absolute; right: calc(var(--rx-gutter) + 28px); bottom: 28px; z-index: 3; width: min(380px, calc(100% - 56px));
	padding: 26px 28px; background: rgba(9, 12, 11, .86); border: 1px solid rgba(197, 168, 120, .35);
}
.rx-detail__n { font-size: var(--rx-fs-label); letter-spacing: .3em; text-transform: uppercase; color: var(--rx-accent); }
.rx-detail__title { margin-top: 10px; font-family: var(--rx-font-display); font-size: 30px; line-height: 1.1; }
.rx-detail__body { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--rx-on-dark-body); font-weight: 300; }
.rx-detail__nav { display: none; }
.rx-detail__step {
	width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 1px solid var(--rx-line-dark-strong); color: var(--rx-on-dark);
}
.rx-detail__step:hover { border-color: var(--rx-accent); }

.rx-interior__more { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.rx-interior__second { grid-column: span 2; height: 340px; }
.rx-interior__second img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.rx-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.rx-facts li { display: flex; gap: 18px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid rgba(244, 240, 232, .12); }
.rx-facts li:last-child { border-bottom: 0; }
.rx-facts__value { min-width: 72px; font-family: var(--rx-font-display); font-size: 34px; color: var(--rx-accent); }
.rx-facts__label { font-size: 15px; color: var(--rx-on-dark-body); }

/* ---------- 06 Technology (sand) + capability ---------- */
.rx-tech { background: var(--rx-sand); padding-top: var(--rx-section); }
.rx-tech .rx-eyebrow { color: var(--rx-bronze-deep); }
.rx-tech__titles { max-width: 760px; }
.rx-tech .rx-split-head__text { max-width: 420px; color: var(--rx-on-sand-body); }
.rx-tech__band { margin-top: 64px; display: flex; flex-wrap: wrap; background: var(--rx-sand-panel); }
.rx-tech__media { position: relative; flex: 999 1 640px; min-width: 0; height: 520px; overflow: hidden; }

.rx-energy { flex: 1 1 360px; min-width: 0; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.rx-energy__label { font-size: var(--rx-fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--rx-on-sand-muted); }
.rx-energy__modes { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.rx-chip {
	min-height: 44px; padding: 8px 16px; background: transparent; color: var(--rx-text-ink);
	border: 1px solid var(--rx-text-ink); font-size: 14px; transition: background-color .3s, color .3s;
}
.rx-chip:hover { background: rgba(20, 23, 19, .08); }
.rx-chip[aria-checked="true"] { background: var(--rx-text-ink); color: var(--rx-ivory); }
.rx-on-light .rx-chip:focus-visible { outline-color: var(--rx-olive); }
.rx-energy__track { margin-top: 12px; height: 6px; background: #CFC1A6; position: relative; overflow: hidden; }
.rx-energy__fill { position: absolute; inset: 0 auto 0 0; width: var(--ev); background: var(--rx-olive); transition: width .8s var(--rx-ease); }
.rx-energy[data-range="combined"] .rx-energy__fill { width: 100%; }
.rx-energy__scale { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--rx-on-sand-body); }
.rx-energy__scale span { transition: color .3s, font-weight .3s; }
.rx-energy__scale .is-on { color: var(--rx-text-ink); font-weight: 500; }
.rx-energy__spec { font-size: var(--rx-fs-label); line-height: 1.6; color: var(--rx-on-sand-muted); }

.rx-tech__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-inline-start: 1px solid var(--rx-line-sand); }
.rx-tech__stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 44px 32px; border-inline-end: 1px solid var(--rx-line-sand); border-bottom: 1px solid var(--rx-line-sand); }
.rx-tech__stat dd { margin: 0; font-family: var(--rx-font-display); font-size: 64px; line-height: 1; }
.rx-tech__stat dd span { margin-inline-start: 6px; font-family: var(--rx-font-ui); font-size: 16px; }
.rx-tech__stat dt { margin-top: 12px; font-size: var(--rx-fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--rx-on-sand-muted); }

.rx-capability { position: relative; margin-top: var(--rx-section); height: 760px; overflow: hidden; color: var(--rx-on-dark); background: var(--rx-ink); }
.rx-capability__media { position: absolute; inset: -6% 0; } /* headroom for the parallax drift */
.rx-capability__media picture { position: absolute; inset: 0; }
.rx-capability__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 12, 11, .75) 0%, rgba(9, 12, 11, .1) 40%, rgba(9, 12, 11, .2) 65%, rgba(9, 12, 11, .88) 100%); }
.rx-capability__inner { position: relative; height: 100%; padding-top: 90px; padding-bottom: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.rx-capability__top { max-width: 640px; }
.rx-tech .rx-capability .rx-eyebrow { color: var(--rx-accent); } /* dark band inside the sand chapter */
.rx-capability__title { margin-top: 18px; font-family: var(--rx-font-display); font-weight: 500; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; }
.rx-capability__label { margin-bottom: 16px; font-size: var(--rx-fs-label); letter-spacing: .24em; text-transform: uppercase; color: var(--rx-on-dark-control); }
.rx-modes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); border-top: 1px solid rgba(244, 240, 232, .3); }
.rx-modes li { padding-top: 22px; font-family: var(--rx-font-display); font-size: 34px; }
.rx-capability__text { margin-top: 28px; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--rx-on-dark-control); }

/* ---------- 09 Lifestyle ---------- */
.rx-lifestyle { background: var(--rx-ink); padding-top: var(--rx-section); }
.rx-lifestyle__title { max-width: 900px; }
.rx-lifestyle__title em { display: block; color: var(--rx-sand); padding-bottom: .06em; }
.rx-lifestyle__grid { margin: 64px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 4px; }
.rx-tile { position: relative; height: 620px; overflow: hidden; }
.rx-tile img { width: 100%; height: 100%; object-fit: cover; }
.rx-tile__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 12, 11, .85) 0%, rgba(9, 12, 11, 0) 55%); }
.rx-tile__caption { position: absolute; inset-inline: 32px; bottom: 32px; }
.rx-tile__kicker { display: block; font-size: var(--rx-fs-label); letter-spacing: .3em; text-transform: uppercase; color: var(--rx-accent); }
.rx-tile__title { display: block; margin-top: 10px; font-family: var(--rx-font-display); font-size: 34px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
	.rx-design__wide { height: 440px; }
	.rx-design__figure-media { height: 420px; }
	.rx-interior__stage { height: 500px; }
	.rx-interior__more { grid-template-columns: 1fr 1fr; }
	.rx-interior__second { grid-column: span 2; }
	.rx-capability { height: 640px; }
	.rx-tile { height: 480px; }
}
@media (max-width: 900px) and (min-width: 761px) {
	.rx-design__figure:nth-child(2) { margin-top: 0; }
	/* The card would cover the cockpit on narrow tablets: place it under the photograph. */
	.rx-detail { position: static; width: auto; margin-top: 0; }
	.rx-detail__nav { display: flex; justify-content: space-between; margin-top: 16px; }
}

/* ---------- Mobile (mobile.html) ---------- */
@media (max-width: 760px) {
	.rx-only-wide, .rx-only-wide-flex, .rx-only-wide-grid { display: none !important; }
	.rx-only-narrow { display: inline; }
	.rx-only-narrow-grid { display: grid; }
	.rx-h2--lg { font-size: 44px; }
	.rx-split-head { display: block; }
	.rx-split-head .rx-h2 { margin-top: 12px; }
	.rx-split-head__text { margin-top: 16px; font-size: 15px; line-height: 1.65; }

	.rx-design { padding: 72px 0 64px; }
	.rx-design > .rx-container { padding-inline: 16px; }
	.rx-design .rx-h2 { line-height: 1; }
	.rx-design__em { display: inline; }
	.rx-design__band { margin-top: 28px; padding-inline: 0 !important; }
	.rx-design__wide { height: 280px; }
	.rx-design__wide img { object-position: 30% 50%; }
	.rx-dims { margin: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rx-dims__item { padding: 18px 0; }
	.rx-dims__item:last-child { padding-inline-start: 16px; border-inline-start: 1px solid var(--rx-line-light); }
	.rx-dims__item:first-child { border-inline-end: 0; }
	.rx-dims dt { letter-spacing: .18em; }
	.rx-dims dd { margin-top: 6px; font-size: 30px; }
	.rx-dims dd span { font-family: var(--rx-font-display); font-size: 30px; }
	.rx-design__pair { display: none; }
	.rx-film { margin-top: 28px; }
	.rx-film__media { flex: 1 1 100%; height: 220px; }
	.rx-film__copy { display: none; }

	.rx-interior { padding: 72px 0 64px; }
	.rx-interior > .rx-container { padding-inline: 16px; }
	.rx-interior__head { text-align: start; }
	.rx-interior__head .rx-h2 { margin-top: 12px; }
	.rx-interior__text { display: none; }
	.rx-interior__wrap { margin-top: 28px; padding-inline: 0 !important; }
	.rx-interior__stage { height: 300px; }
	.rx-interior__shade { display: none; }
	.rx-spot { font-size: 12px; }
	.rx-spot[aria-pressed="true"] { box-shadow: 0 0 0 7px rgba(197, 168, 120, .3); }
	.rx-detail { position: static; width: auto; margin: 0 16px; padding: 22px 20px; background: var(--rx-charcoal); border: 0; border-top: 2px solid var(--rx-accent); }
	.rx-detail__n { letter-spacing: .28em; }
	.rx-detail__title { margin-top: 8px; font-size: 28px; }
	.rx-detail__body { margin-top: 8px; font-size: 14px; }
	.rx-detail__nav { display: flex; justify-content: space-between; margin-top: 16px; }
	.rx-interior__more { display: block; margin-top: 28px; }
	.rx-interior__second { display: none; }
	.rx-facts { gap: 14px; }
	.rx-facts li { padding-bottom: 14px; }
	.rx-facts__value { font-size: 28px; min-width: 60px; }
	.rx-facts__label { font-size: 14px; }

	.rx-tech { padding-top: 72px; }
	.rx-tech > .rx-container { padding-inline: 0; }
	.rx-tech .rx-split-head { padding-inline: 16px; }
	.rx-tech__band { margin-top: 28px; }
	.rx-tech__media { flex: 1 1 100%; height: 220px; }
	.rx-energy { display: none; }
	.rx-tech__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rx-tech__stat { padding: 24px 16px; }
	.rx-tech__stat dd { font-size: 44px; }
	.rx-tech__stat dt { margin-top: 6px; letter-spacing: .16em; }
	.rx-capability { margin-top: 0; height: 420px; }
	.rx-capability__media { inset: 0; }
	.rx-capability__inner { padding: 40px 0 24px; }
	.rx-capability__top { padding-inline: 16px; }
	.rx-capability__title { margin-top: 10px; font-size: 34px; line-height: 1.05; }
	.rx-capability__label, .rx-capability__text { display: none; }
	.rx-capability .rx-container { padding-inline: 0; }
	.rx-modes { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; border: 0; scrollbar-width: none; }
	.rx-modes::-webkit-scrollbar { display: none; }
	.rx-modes li { flex: 0 0 auto; padding: 12px 18px; border: 1px solid rgba(244, 240, 232, .5); font-family: var(--rx-font-ui); font-size: 14px; }

	.rx-lifestyle { padding-top: 72px; }
	.rx-lifestyle > .rx-container { padding-inline: 16px; }
	.rx-lifestyle__title em { display: inline; }
	.rx-lifestyle__grid {
		margin-top: 28px; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto;
		scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain;
	}
	.rx-lifestyle__grid::-webkit-scrollbar { display: none; }
	.rx-lifestyle__grid::after { content: ""; flex: 0 0 8px; }
	.rx-tile { flex: 0 0 280px; height: 420px; scroll-snap-align: start; }
	.rx-tile__caption { inset-inline: 18px; bottom: 18px; }
	.rx-tile__kicker { display: none; }
	.rx-tile__title { margin-top: 0; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.rx-film__video, .rx-energy__fill, .rx-chip, .rx-spot { transition: none; }
}
