/* Ryder Media — homepage styles */
:root {
	--ink: #0b0a09;
	--cream: #ece6dc;
	--gold: #c9a96e;
	--muted: #7d766c;
	--body2: #d8d1c6;
	--band: #f4f1eb;
	--hair: #24211d;
	--ph: #151311;
	--gutter: clamp(20px, 4vw, 56px);
	--section: clamp(130px, 16vw, 240px);
	--card-w: clamp(170px, 18vw, 250px);
	--serif: 'Instrument Serif', Georgia, serif;
	--sans: 'Manrope', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: auto; }
html, body.rm { overflow-x: hidden; }
@supports (overflow: clip) { html, body.rm { overflow-x: clip; } }
a { color: var(--cream); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--gold); }
button { font-family: var(--sans); }
img { max-width: none; }
.rm-page { background: var(--ink); min-height: 100vh; min-height: 100svh; overflow-x: clip; }
.rm-eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.rm-center { text-align: center; }

/* Grain */
@keyframes rm-grain { 0% { background-position: 0 0 } 33% { background-position: -6px 5px } 66% { background-position: 5px -6px } 100% { background-position: 0 0 } }
.rm-grain {
	position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 300px 300px; animation: rm-grain 0.6s steps(3) infinite;
}

/* Header */
.rm-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
	padding: 22px var(--gutter); mix-blend-mode: difference; opacity: 0; transition: opacity .6s ease, transform .6s ease;
}
.rm-header.is-in { opacity: 1; transition: opacity 1.2s ease .4s, transform .6s ease; }
.rm-header.is-hidden { opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
.rm-header__logo { display: block; line-height: 0; }
.rm-header__logo img { height: clamp(40px, 4.4vw, 56px); width: auto; display: block; }
.rm-header__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.rm-header__nav a { color: #fff; }

/* Hero */
.rm-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.rm-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 1.6s ease; }
.rm-slide.is-active { opacity: 1; pointer-events: auto; }
.rm-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: blur(18px) brightness(0.55); transform: scale(1.1); }
.rm-slide__media, .rm-slide__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.rm-slide__media video { object-fit: cover; }
.rm-bg-iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.18); border: 0; pointer-events: none; }
.rm-slide__shade, .rm-journey__sgrad {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(11,10,9,0) 45%, rgba(11,10,9,0.55) 100%), linear-gradient(180deg, rgba(11,10,9,0.45) 0%, rgba(11,10,9,0) 25%, rgba(11,10,9,0) 50%, rgba(11,10,9,0.85) 100%);
}
.rm-slide__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 10vh, 110px); }
.rm-slide__copy .rm-eyebrow { margin-bottom: 16px; }
.rm-slide__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.01em; margin: 0 0 32px; text-wrap: balance; max-width: 14ch; }
.rm-pills { display: flex; flex-wrap: wrap; gap: 14px; }
.rm-pill { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 30px; border-radius: 999px; font: 600 13px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.rm-pill--solid { border: 1px solid var(--cream); background: var(--cream); color: var(--ink); }
.rm-pill--solid:hover { background: var(--gold); border-color: var(--gold); }
.rm-pill--ghost { border: 1px solid rgba(236,230,220,0.7); color: var(--cream); background: transparent; }
.rm-pill--ghost:hover { border-color: var(--gold); color: var(--gold); }
.rm-tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.rm-intro { position: absolute; inset: 0; z-index: 5; background: #000; transition: opacity 1.6s ease; }
.rm-intro.is-done { opacity: 0; pointer-events: none; }
.rm-intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-intro__skip { position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 56px); border: 0; background: transparent; color: rgba(236,230,220,0.7); font: 600 11px var(--sans); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; padding: 12px 0; transition: color .3s ease; }
.rm-intro__skip:hover { color: var(--gold); }

.rm-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(236,230,220,0.35); background: rgba(11,10,9,0.4); color: var(--cream); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; transition: border-color .3s ease, color .3s ease; }
.rm-arrow:hover { border-color: var(--gold); color: var(--gold); }
.rm-arrow--prev { left: clamp(12px, 2vw, 28px); }
.rm-arrow--next { right: clamp(12px, 2vw, 28px); }
.rm-dots { position: absolute; right: var(--gutter); bottom: clamp(56px, 10vh, 110px); display: flex; align-items: center; gap: 18px; z-index: 2; }
.rm-dots__row { display: flex; gap: 10px; }
.rm-dot { width: 10px; height: 10px; border-radius: 999px; border: 1px solid var(--cream); background: transparent; padding: 0; cursor: pointer; transition: width .4s ease, background .4s ease; }
.rm-dot.is-active { width: 28px; background: var(--cream); }
.rm-pause { width: 36px; height: 36px; border: 0; background: transparent; color: var(--cream); font: 600 12px var(--sans); letter-spacing: 0.1em; cursor: pointer; }
[data-heroui] { transition: opacity 1.2s ease .4s; }

/* Statement */
.rm-statement { background: var(--ink); color: var(--cream); padding: clamp(110px, 16vw, 240px) var(--gutter); overflow: hidden; }
.rm-statement__logo { display: block; height: clamp(80px, 10vw, 140px); width: auto; margin: 0 auto clamp(40px, 5vw, 72px); }
.rm-statement__copy { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 68px); line-height: 1.08; margin: 0 auto; max-width: 1280px; text-wrap: balance; text-align: center; will-change: transform; }

/* Slate */
.rm-slate { padding: 0 0 var(--section); }
.rm-slate__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto clamp(28px, 3vw, 48px); }
.rm-slate__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 60px); margin: 0; }
.rm-slate__hint { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rm-shelves { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 100px); }
.rm-shelf__label { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto 16px; }
.rm-shelf__count { font-size: 12px; letter-spacing: 0.18em; color: var(--muted); }
.rm-row { position: relative; height: calc(var(--card-w) * 1.5 + 60px); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rm-row.is-grabbing { cursor: grabbing; }
.rm-static { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 24px); padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; }
.rm-card { display: block; width: var(--card-w); color: var(--cream); }
.rm-card--loop { position: absolute; left: 0; top: 0; will-change: transform; }
.rm-card__poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--ph); }
.rm-card__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; pointer-events: none; }
.rm-card__title { margin-top: 12px; font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.15; text-wrap: balance; transition: color .3s ease; }
.rm-card:hover { color: var(--gold); }
.rm-card:hover .rm-card__poster img { transform: scale(1.05); }
.rm-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--cream); background: rgba(11,10,9,0.55); color: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; opacity: 0; transition: opacity .3s ease, background .3s ease, border-color .3s ease, color .3s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rm-card__play span { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.rm-card:hover .rm-card__play, .rm-card__play:focus-visible { opacity: 1; }
.rm-card__play:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (hover: none) { .rm-card__play { opacity: 1; } }

/* Partners */
.rm-partners { padding: 0 var(--gutter) var(--section); }
.rm-partners__inner { max-width: 1200px; margin: 0 auto; }
.rm-partners .rm-eyebrow { margin-bottom: clamp(40px, 5vw, 64px); }
.rm-partners__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 4vw, 56px) clamp(8px, 1vw, 16px); }
.rm-partner { flex: 0 0 clamp(140px, 18%, 220px); height: clamp(52px, 5vw, 72px); display: flex; align-items: center; justify-content: center; }
.rm-partner img { width: auto; height: auto; object-fit: contain; opacity: 0.72; transition: opacity .4s ease; }
.rm-partner img:hover { opacity: 1; }

/* Footer */
.rm-footer { padding: var(--section) var(--gutter) 40px; text-align: center; border-top: 1px solid var(--hair); }
.rm-footer .rm-eyebrow { margin-bottom: 24px; }
.rm-footer__cta { font-family: var(--serif); font-size: clamp(48px, 9vw, 140px); line-height: 1; display: inline-block; }
.rm-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(80px, 10vw, 140px); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Services journey */
.rm-journey { position: relative; height: 820vh; border-top: 1px solid var(--hair); }
.rm-journey__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.rm-journey__still, .rm-journey__canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.rm-journey__canvas { opacity: 0; }
.rm-journey__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%); pointer-events: none; }
.rm-journey__screen { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; opacity: 0; container-type: size; background: #000; pointer-events: none; will-change: transform, opacity; backface-visibility: hidden; transform-origin: 0 0; }
.rm-journey__screen [data-jscreen-media], .rm-journey__screen video, .rm-journey__screen .rm-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; }
.rm-journey__screen video { object-fit: cover; }
.rm-journey__screen .rm-bg-iframe { width: max(100%, 177.78cqh); height: max(100%, 56.25cqw); }
.rm-journey__sgrad { opacity: 0; }
.rm-journey__grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,10,9,0.82) 0%, rgba(11,10,9,0.45) 34%, rgba(11,10,9,0) 60%), linear-gradient(180deg, #0b0a09 0%, rgba(11,10,9,0) 14%, rgba(11,10,9,0) 82%, #0b0a09 100%); }
.rm-journey__intro, .rm-chapter { position: absolute; left: var(--gutter); bottom: clamp(64px, 12vh, 128px); }
.rm-journey__intro .rm-eyebrow, .rm-chapter > .rm-eyebrow { margin-bottom: 16px; }
.rm-journey__headline { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 84px); line-height: 0.95; }
.rm-journey__headline em { color: var(--gold); }
.rm-chapter { width: min(560px, calc(100% - 40px)); pointer-events: none; }
.rm-chapter__line { margin-bottom: 32px; }
.rm-chapter__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 12px; padding-top: 22px; }
.rm-chapter__items > div { font-size: 14px; line-height: 1.4; color: var(--body2); }
.rm-chapter [data-step] { opacity: 0; transform: translateY(14px); }
.rm-chapter > .rm-eyebrow[data-step] { transition: opacity .6s ease, transform .6s ease; }
.rm-chapter__line[data-step] { transition: opacity .7s ease, transform .7s ease; }
.rm-chapter__items [data-step] { transition: opacity .5s ease, transform .5s ease; }
.rm-index { position: absolute; right: var(--gutter); bottom: clamp(64px, 12vh, 128px); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.rm-index button { background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream); opacity: 0.4; transition: opacity .4s ease, color .4s ease; }
.rm-index button.is-active { opacity: 1; color: var(--gold); }
.rm-index__track { width: 120px; height: 1px; background: rgba(236,236,220,0.2); margin-top: 6px; }
.rm-index__track > div { height: 1px; width: 0; background: var(--gold); }
@media (max-width: 760px) {
	.rm-dots { bottom: 22px; left: var(--gutter); right: var(--gutter); justify-content: space-between; }
	.rm-index { display: none; }
	.rm-chapter__items { row-gap: 8px; column-gap: 18px; }
	.rm-chapter__items > div { font-size: 13px; }
}

/* Trailer modal */
.rm-modal { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,4,0.92); display: flex; align-items: center; justify-content: center; padding: clamp(16px, 5vw, 80px); }
.rm-modal[hidden] { display: none; }
.rm-modal__box { position: relative; width: min(100%, calc((100vh - 160px) * 1.7778)); aspect-ratio: 16 / 9; background: #000; }
.rm-modal__player, .rm-modal__player video, .rm-modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.rm-modal__close { position: absolute; top: -48px; right: 0; border: 0; background: transparent; color: var(--cream); font: 600 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; padding: 12px 0; transition: color .3s ease; }
.rm-modal__close:hover { color: var(--gold); }

/* Portrait screens (phones): fit widescreen video to the width instead of cropping the sides */
@media (orientation: portrait) {
	.rm-slide__media video, .rm-intro video, .rm-journey__screen video { object-fit: contain; }
	.rm-hero .rm-bg-iframe { width: 100%; height: 56.25vw; transform: translate(-50%, -50%); }
	.rm-journey__screen .rm-bg-iframe { width: 100%; height: 56.25cqw; transform: translate(-50%, -50%); }
	.rm-slide__media { top: -8%; bottom: 8%; height: auto; }
	.rm-modal { padding: 16px; }
	.rm-modal__box { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.rm-grain { animation: none; }
}
