/* Reviant Builder: base styles for sections built in the Reviant Editor.
   Kept light on purpose: the site's own CSS styles headings, text and buttons. */

.wp-site-blocks .rvs-section {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-top: 0;
	margin-bottom: 0;
}
.rvs-sec-inner {
	--rvs-gap: 32px;
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--rvs-gap);
	width: 100%;
	max-width: var(--rv-content-w, 1200px); /* The site's own content width. */
	margin: 0 auto;
	box-sizing: border-box;
}
/* Column width: --rvs-w (1–100) percent of the row, minus its share of the gaps. */
.rvs-col {
	--rvs-w: 100;
	position: relative;
	flex: 0 0 calc(var(--rvs-w) * 1% - var(--rvs-gap) * (100 - var(--rvs-w)) / 100);
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-sizing: border-box;
}
.rvs-el { position: relative; box-sizing: border-box; min-width: 0; margin: 0; }
.rvs-el > :first-child { margin-top: 0; }
.rvs-el > :last-child { margin-bottom: 0; }
.rvs-text > :last-child { margin-bottom: 0; }

/* Overlay (::before) and grain (::after) layers. */
.rvs-layers { position: relative; isolation: isolate; }
.rvs-layers::before,
.rvs-layers::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
}
.rvs-layers::before { z-index: 1; }
.rvs-layers::after { z-index: 2; }
.rvs-col.rvs-layers > * { position: relative; z-index: 3; }

/* Background video: under the overlay, the grain and the content. The background image shows until it plays. */
.wp-site-blocks .rvs-has-video { isolation: isolate; }
.rvs-bg-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.rvs-bg-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rvs-bg-video video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; } /* iOS Low Power Mode: no play button over the section. */
/* YouTube / Vimeo: a 16:9 player cropped to fill the section like a cover image, faded in once it plays. */
.rvs-bg-embed { container-type: size; }
.rvs-bg-embed iframe {
	position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
	width: 100%; height: 100%;
	width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
	transform: translate(-50%, -50%);
	opacity: 0; transition: opacity .8s ease;
}
.rvs-bg-embed.is-on iframe { opacity: 1; }
@media (max-width: 781px) {
	.rvs-bg-video-nophone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rvs-bg-video { display: none; }
}

/* Elements */
.rvs-el-image img { display: block; max-width: 100%; height: auto; border-radius: inherit; }
/* The box around the image: border, corners, shadow and the grain layer go here. */
.rvs-img-wrap { display: inline-block; vertical-align: top; position: relative; max-width: 100%; overflow: hidden; }
.rvs-img-wrap img { height: 100%; }
.rvs-el-image a { display: block; }
.rvs-caption { margin-top: 8px; font-size: 13px; opacity: .7; }
.rvs-el-buttons, .rvs-el-button { display: flex; flex-wrap: wrap; gap: 12px; }
.rvs-el-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* Like the site's own buttons: main = brand red with white text, outline = see-through with a thin border. */
.rvs-el .wp-block-button__link:not(.has-border-color) { background-color: var(--rv-brand, #EE2C2F); color: #fff; }
.rvs-el .wp-block-button__link.has-border-color { background-color: transparent; color: inherit; border: 1px solid currentColor; }
.rvs-el-button .rvs-icon { width: 1.2em; height: 1.2em; }
.rvs-spacer { height: 100%; }
.rvs-el-spacer { height: 60px; }
.rvs-divider { border: 0; border-top: 1px solid currentColor; opacity: .25; width: 100%; margin: 0; }
.rvs-el-divider { text-align: left; }
.rvs-icon { display: inline-block; width: 40px; height: 40px; vertical-align: middle; }
.rvs-icon-link { color: inherit; }
/* Graphic: the drawing lines up with the element's alignment (text-align). */
.rvs-svg { display: block; line-height: 0; }
.rvs-svg svg { display: inline-block; vertical-align: top; max-width: 100%; height: auto; }
.rvs-svg-link { display: block; }
.rvs-empty { padding: 16px; border: 1px dashed currentColor; opacity: .5; font-size: 13px; text-align: center; }

/* Entrance animations (only when the script runs; never for reduced motion). */
.rvs-js .rvs-anim { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rvs-delay, 0ms); }
.rvs-js .rvs-anim-fade-up { transform: translateY(32px); }
.rvs-js .rvs-anim-fade-down { transform: translateY(-32px); }
.rvs-js .rvs-anim-fade-left { transform: translateX(32px); }
.rvs-js .rvs-anim-fade-right { transform: translateX(-32px); }
.rvs-js .rvs-anim-zoom { transform: scale(.92); }
.rvs-js .rvs-anim.rvs-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.rvs-js .rvs-anim { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 781px) {
	.rvs-sec-inner { --rvs-gap: 24px; }
}

/* ---------- Media ---------- */
.rvs-video { position: relative; width: 100%; background: #000; overflow: hidden; }
.rvs-video iframe, .rvs-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.rvs-video-consent {
	position: absolute; inset: 0; width: 100%; border: 0; padding: 16px; cursor: pointer; color: #fff;
	background: #111 center / cover no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	font: inherit;
}
.rvs-video-consent::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); transition: background .2s; }
.rvs-video-consent:hover::before, .rvs-video-consent:focus-visible::before { background: rgba(0,0,0,.2); }
.rvs-video-consent > * { position: relative; }
.rvs-video-play { width: 72px; height: 72px; border-radius: 50%; background: var(--rv-brand, #EE2C2F); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.rvs-video-play .rvs-icon { width: 34px; height: 34px; margin-left: 4px; }
.rvs-video-note { font-size: 12px; opacity: .8; margin: 0; }

.rvs-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rvs-gallery-item { display: block; position: relative; overflow: hidden; border-radius: inherit; }
.rvs-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: var(--rvs-ratio, auto); object-fit: cover; transition: transform .4s ease; }
a.rvs-gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 781px) { .rvs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rvs-el-banner, .rvs-el-trailer { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.rvs-banner-bg { position: absolute; inset: 0; z-index: 0; background: #111 center / cover no-repeat; }
.rvs-banner-inner { position: relative; z-index: 3; max-width: 720px; }
.rvs-banner-title { margin: 0 0 12px; color: inherit; }
.rvs-banner-text > :last-child { margin-bottom: 0; }
.rvs-banner-inner .wp-block-buttons { margin-top: 20px; }
.rvs-el-trailer { justify-content: center; }
.rvs-trailer-play { margin-top: 24px; display: inline-flex; align-items: center; gap: 14px; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.rvs-trailer-play .rvs-video-play { width: 56px; height: 56px; }
.rvs-trailer-play .rvs-icon { width: 26px; height: 26px; }
.rvs-el-trailer .rvs-video-note { margin-top: 8px; }

.rvs-ba { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; }
.rvs-ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.rvs-ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.rvs-ba-before img { width: 100%; height: 100%; object-fit: cover; }
.rvs-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.rvs-ba-range:focus-visible + .rvs-ba-handle { outline: 2px solid #fff; outline-offset: 2px; }
.rvs-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.5); }
.rvs-ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.rvs-ba-label { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 3px; }
.rvs-ba-label.is-after { left: auto; right: 12px; }

/* Lightbox */
.rvs-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.rvs-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rvs-lightbox iframe { width: min(1200px, 100%); aspect-ratio: 16 / 9; border: 0; }
.rvs-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 12px; }
.rvs-lb-close { top: 8px; right: 12px; }
.rvs-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.rvs-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.rvs-lightbox button:focus-visible { outline: 2px solid #fff; }

/* ---------- Studio ---------- */
.rvs-el-gamecard { overflow: hidden; }
.rvs-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: inherit; background: rgba(255,255,255,.03); color: inherit; text-decoration: none; transition: transform .25s ease; }
a.rvs-card:hover { transform: translateY(-4px); }
.rvs-card-cover { position: relative; aspect-ratio: 16 / 9; background: #111; }
.rvs-card-cover img, .rvs-card-noimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvs-card-status { position: absolute; top: 12px; left: 12px; background: var(--rv-brand, #EE2C2F); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
.rvs-card-body { padding: 20px; }
.rvs-card-title { margin: 0 0 6px; font-size: 24px; }
.rvs-card-meta { margin: 0 0 10px; font-size: 13px; opacity: .65; }
.rvs-card-text { font-size: 15px; opacity: .85; }
.rvs-card-text > :last-child { margin-bottom: 0; }

.rvs-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rvs-news-link { display: block; color: inherit; text-decoration: none; }
.rvs-news-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.rvs-news-date { font-size: 12px; opacity: .6; text-transform: uppercase; letter-spacing: .06em; }
.rvs-news-title { margin: 6px 0 8px; font-size: 20px; }
.rvs-news-link:hover .rvs-news-title { text-decoration: underline; }
.rvs-news-excerpt { margin: 0; font-size: 14px; opacity: .75; }
@media (max-width: 781px) { .rvs-news { grid-template-columns: 1fr; } }

.rvs-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.rvs-social a { display: inline-flex; color: inherit; opacity: .85; transition: opacity .2s, color .2s; }
.rvs-social a:hover, .rvs-social a:focus-visible { opacity: 1; color: var(--rv-brand, #EE2C2F); }
.rvs-social .rvs-icon { width: 24px; height: 24px; }

.rvs-team-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.rvs-team-name { margin: 0 0 4px; font-size: 22px; }
.rvs-team-role { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--rv-brand, #EE2C2F); }
.rvs-team-bio { font-size: 15px; opacity: .8; }
.rvs-team-links { margin-top: 12px; }
.rvs-team-links .rvs-icon { width: 18px; height: 18px; }

.rvs-el-wishlist .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; }
.rvs-el-wishlist .rvs-icon { width: 1.3em; height: 1.3em; }

.rvs-dl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rvs-dl-icon .rvs-icon { width: 36px; height: 36px; color: var(--rv-brand, #EE2C2F); }
.rvs-dl-body { flex: 1 1 220px; }
.rvs-dl-title { margin: 0 0 4px; font-size: 20px; }
.rvs-dl-text { margin: 0; font-size: 14px; opacity: .75; }

/* ---------- Layout & interaction ---------- */
.rvs-acc-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.rvs-acc-q { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 18px; }
.rvs-acc-q::-webkit-details-marker { display: none; }
.rvs-acc-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; transition: transform .2s; color: var(--rv-brand, #EE2C2F); }
.rvs-acc-item[open] .rvs-acc-q::after { transform: translateY(-50%) rotate(45deg); }
.rvs-acc-a { padding: 0 0 18px; opacity: .85; }
.rvs-acc-a > :last-child { margin-bottom: 0; }

.rvs-tab-list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 20px; }
.rvs-tab-btn { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 10px 16px; cursor: pointer; opacity: .65; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rvs-tab-btn[aria-selected="true"] { opacity: 1; border-bottom-color: var(--rv-brand, #EE2C2F); }
.rvs-tab-btn:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.rvs-tab-panel > :last-child { margin-bottom: 0; }
html:not(.rvs-js) .rvs-tab-panel[hidden] { display: block; } /* Without the script, show every tab. */

.rvs-cd-label { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.rvs-cd-units { display: flex; flex-wrap: wrap; gap: 16px; }
.rvs-cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.rvs-cd-num { font-size: 48px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.rvs-cd-name { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; margin-top: 6px; }
.rvs-cd-done { font-size: 32px; font-weight: 700; margin: 0; }

.rvs-quote { margin: 0; }
.rvs-quote-text { margin: 0 0 16px; padding: 0 0 0 20px; border-left: 3px solid var(--rv-brand, #EE2C2F); font-size: 22px; line-height: 1.45; }
.rvs-quote-text > :last-child { margin-bottom: 0; }
.rvs-quote-by { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rvs-quote-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rvs-quote-name { display: block; font-style: normal; font-weight: 700; }
.rvs-quote-name a { color: inherit; }
.rvs-quote-role { display: block; opacity: .65; }
