/* GSAP Scroll Video ------------------------------------------------------ */

.gsv-wrap {
	position: relative;
	width: 100%;
}

.gsv-stage {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background-color: #0b0b0d;
}

.gsv-video,
.gsv-canvas,
.gsv-loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.gsv-fit-cover .gsv-video,
.gsv-fit-cover .gsv-loop { object-fit: cover; }
.gsv-fit-contain .gsv-video { object-fit: contain; }
.gsv-fit-contain .gsv-loop { object-fit: cover; }

/* The intro loop sits above the scrub media until the handover. */
.gsv-loop { z-index: 1; }

.gsv-intro-tint {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

/* The scroll overlay belongs to the scrubbing state. Holding it back during the
   intro stops it stacking with the intro overlay and the gate backdrop. The
   inline style sets --gsv-tint-o only, so these rules stay in control. */
.gsv-tint {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.gsv-live .gsv-tint,
.gsv-tint-always .gsv-tint { opacity: var(--gsv-tint-o, 0.55); }

/* Custom overlay artwork ------------------------------------------------- */
.gsv-ovimg {
	position: absolute;
	inset: 0;
	z-index: 3;
	box-sizing: border-box;
	pointer-events: none;
	opacity: var(--gsv-ov-o, 1);
	transition: opacity 0.8s ease;
}

/* Sits over the captions instead of under them. */
.gsv-ovimg--top { z-index: 6; }

/* Only once scrolling starts. */
.gsv-ovimg--live { opacity: 0; }
.gsv-live .gsv-ovimg--live { opacity: var(--gsv-ov-o, 1); }

/* Only on the start screen — needs to clear the gate backdrop to be seen. */
.gsv-ovimg--intro { z-index: 11; }
.gsv-live .gsv-ovimg--intro { opacity: 0; }

/* Progress bar ----------------------------------------------------------- */
.gsv-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	height: 2px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
	pointer-events: none;
}

.gsv-progress i {
	display: block;
	width: 100%;
	height: 100%;
	background: #fff;
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}

/* Caption ranges, drawn on the bar only while the readout is on. */
.gsv-range {
	position: absolute;
	top: 0;
	height: 100%;
	display: none;
	background: rgba(217, 201, 160, 0.85);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.gsv-hud-on .gsv-progress { height: 6px; }
.gsv-hud-on .gsv-range { display: block; }
.gsv-hud-on .gsv-hud { display: block; }

/* Timing readout --------------------------------------------------------- */
.gsv-hud {
	position: absolute;
	z-index: 20;
	display: none;
	min-width: 156px;
	padding: 10px;
	border-radius: 10px;
	background: rgba(10, 10, 12, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	line-height: 1.4;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.gsv-hud--br { right: 18px; bottom: 24px; }
.gsv-hud--bl { left: 18px; bottom: 24px; }
.gsv-hud--tr { right: 18px; top: 18px; }
.gsv-hud--tl { left: 18px; top: 18px; }

.gsv-hud-num {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 4px 0;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font: inherit;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gsv-hud-num:hover { background: rgba(255, 255, 255, 0.16); }
.gsv-hud-num.is-copied { background: #d9c9a0; color: #101014; }
.gsv-hud-num.is-copied::after { content: ' copied'; font-size: 10px; }

.gsv-hud-list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 34vh;
	overflow-y: auto;
}

.gsv-hud-list li {
	display: grid;
	grid-template-columns: 14px 1fr auto;
	gap: 6px;
	align-items: baseline;
	padding: 3px 4px;
	border-radius: 4px;
	opacity: 0.5;
}

.gsv-hud-list li.is-live {
	opacity: 1;
	background: rgba(217, 201, 160, 0.18);
}

.gsv-hud-list b { font-weight: 600; color: #d9c9a0; }
.gsv-hud-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsv-hud-list em { font-style: normal; opacity: 0.75; font-variant-numeric: tabular-nums; }

/* Sound toggle ----------------------------------------------------------- */
.gsv-sound {
	position: absolute;
	z-index: 6;
	left: var(--gsv-inset, 5vw);
	bottom: calc(38vh + 24px);
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.gsv-sound:hover { transform: scale(1.08); border-color: #fff; }
.gsv-sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.gsv-sound-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	transition: transform 0.3s ease, background 0.3s ease;
}

.gsv-sound.is-on .gsv-sound-dot {
	background: #fff;
	transform: scale(1.7);
}

/* Scroll hint ------------------------------------------------------------ */
.gsv-hint {
	position: absolute;
	left: 50%;
	bottom: 32px;
	z-index: 5;
	transform: translateX(-50%);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.gsv-live .gsv-hint { opacity: 1; }
.gsv-intro-playing .gsv-hint { opacity: 0; }

.gsv-hint span { display: block; animation: gsv-nudge 2s ease-in-out infinite; }

@keyframes gsv-nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

/* Captions --------------------------------------------------------------- */
.gsv-caps {
	--gsv-inset: 5vw;
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease;
}

/* Captions and the hint are part of the scrubbing state — a caption timed at
   0% would otherwise sit visible behind the start screen. */
.gsv-live .gsv-caps { opacity: 1; }
.gsv-intro-playing .gsv-caps { opacity: 0; }

.gsv-cap {
	--gsv-rise: 26px;
	position: absolute;
	max-width: 720px;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, var(--gsv-rise), 0);
	will-change: opacity, transform;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.gsv-cap-eyebrow {
	display: block;
	margin-bottom: 1.1em;
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	opacity: 0.65;
}

.gsv-cap h3 {
	margin: 0 0 0.55em;
	font-size: 64px;
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.015em;
	color: inherit;
}

.gsv-cap p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	opacity: 0.78;
	color: inherit;
}

/* The accented word */
.gsv-accent {
	font-style: italic;
	color: #d9c9a0;
	padding: 0 0.06em;
}

/* Caption placement — left column matches the reference layout. */
.gsv-cap--left-bottom { left: var(--gsv-inset); bottom: 14vh; }
.gsv-cap--left-middle { left: var(--gsv-inset); top: 50%; transform: translate3d(0, calc(-50% + var(--gsv-rise)), 0); }
.gsv-cap--left-top    { left: var(--gsv-inset); top: 16vh; }
.gsv-cap--right-bottom { right: var(--gsv-inset); bottom: 14vh; text-align: right; }
.gsv-cap--right-middle { right: var(--gsv-inset); top: 50%; transform: translate3d(0, calc(-50% + var(--gsv-rise)), 0); text-align: right; }
.gsv-cap--center {
	left: 50%;
	top: 50%;
	transform: translate3d(-50%, calc(-50% + var(--gsv-rise)), 0);
	text-align: center;
}

/* Type pairings ---------------------------------------------------------- */
.gsv-font-editorial .gsv-cap h3,
.gsv-font-editorial .gsv-gate h2 {
	font-family: 'Playfair Display', 'Times New Roman', serif;
	font-weight: 500;
}
.gsv-font-editorial .gsv-accent {
	font-family: 'Dancing Script', 'Playfair Display', cursive;
	font-weight: 600;
	font-size: 1.02em;
}
.gsv-font-editorial .gsv-cap p,
.gsv-font-editorial .gsv-cap-eyebrow {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.gsv-font-modern .gsv-cap h3,
.gsv-font-modern .gsv-gate h2 {
	font-family: 'Instrument Serif', Georgia, serif;
	font-weight: 400;
	letter-spacing: -0.02em;
}
.gsv-font-modern .gsv-accent {
	font-family: 'Caveat', cursive;
	font-weight: 600;
	font-size: 1.18em;
}
.gsv-font-modern .gsv-cap p,
.gsv-font-modern .gsv-cap-eyebrow {
	font-family: 'Inter', system-ui, sans-serif;
}

.gsv-font-luxury .gsv-cap h3,
.gsv-font-luxury .gsv-gate h2 {
	font-family: 'Cormorant Garamond', Garamond, serif;
	font-weight: 500;
}
.gsv-font-luxury .gsv-accent {
	font-family: 'Dancing Script', cursive;
	font-weight: 600;
	font-size: 1.08em;
}
.gsv-font-luxury .gsv-cap p,
.gsv-font-luxury .gsv-cap-eyebrow {
	font-family: 'Inter', system-ui, sans-serif;
	letter-spacing: 0.02em;
}

.gsv-font-grotesk .gsv-cap h3,
.gsv-font-grotesk .gsv-gate h2 {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: -0.03em;
}
.gsv-font-grotesk .gsv-accent {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-style: italic;
	font-weight: 500;
}
.gsv-font-grotesk .gsv-cap p,
.gsv-font-grotesk .gsv-cap-eyebrow {
	font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Start gate ------------------------------------------------------------- */
.gsv-gate {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	color: #f2f2f2;
}

.gsv-gate-bg {
	position: absolute;
	inset: 0;
	background-color: #08080a;
	opacity: 0.4;
}

.gsv-gate-inner { position: relative; max-width: 36rem; }

.gsv-gate h2 {
	margin: 0 0 0.4em;
	font-size: clamp(2.2rem, 6vw, 4.5rem);
	line-height: 1;
	color: inherit;
}

.gsv-gate p {
	margin: 0 0 2.2em;
	opacity: 0.7;
	line-height: 1.6;
}

.gsv-gate-btn {
	appearance: none;
	border: 0;
	cursor: not-allowed;
	min-width: 220px;
	padding: 15px 42px;
	border-radius: 999px;
	background: #fff;
	color: #101014;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.6;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.gsv-gate-btn.is-ready { cursor: pointer; opacity: 1; }
.gsv-gate-btn.is-ready:hover { transform: translateY(-2px); }
.gsv-gate-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Scroll lock while the gate is up --------------------------------------- */
html.gsv-locked,
html.gsv-locked body {
	overflow: hidden;
	height: 100%;
	touch-action: none;
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 767px) {
	.gsv-caps { --gsv-inset: 22px; }
	.gsv-cap h3 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
	.gsv-cap { max-width: calc(100% - 44px); }
	.gsv-sound { bottom: calc(34vh + 16px); }
}

.gsv-static .gsv-progress,
.gsv-static .gsv-hint { display: none; }
.gsv-static .gsv-video { object-fit: cover; }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.gsv-hint span { animation: none; }
}
