/* A photographic forest-to-table sequence. All movement uses transform/opacity. */
#selvamart-intro[hidden] { display: none !important; }
body.selvamart-intro-active { overflow: hidden; }
.selvamart-intro {
	--intro-duration: 6200ms;
	position: fixed; inset: 0; z-index: 999999;
	display: block; overflow: hidden; isolation: isolate;
	background: #14221a; color: #fff9e9;
	text-align: left; opacity: 1;
	transition: opacity 420ms ease, visibility 420ms;
}
.selvamart-intro *, .selvamart-intro *::before, .selvamart-intro *::after { box-sizing: border-box; }
.selvamart-intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.sm-film__scene, .sm-film__shade, .sm-film__photo, .sm-film__light, .sm-film__mist { position: absolute; inset: 0; width: 100%; height: 100%; }
.sm-film__scene { overflow: hidden; }
.sm-film__photo { object-fit: cover; object-position: 64% 55%; transform-origin: 28% 42%; }
.is-playing .sm-film__photo { animation: smFilmCamera var(--intro-duration) cubic-bezier(.2,.4,.3,1) both; }
.sm-film__light {
	background: linear-gradient(118deg, transparent 42%, #fff0b918 54%, transparent 65%);
	transform-origin: 75% 0; opacity: 0;
}
.is-playing .sm-film__light { animation: smFilmLight var(--intro-duration) ease-in-out both; }
.sm-film__mist {
	inset: 16% -15% 0; width: 130%; height: 70%; opacity: 0;
	background: radial-gradient(ellipse at 70% 55%, #e5ecd81c, transparent 60%);
}
.is-playing .sm-film__mist { animation: smFilmMist var(--intro-duration) ease-in-out both; }
.sm-film__shade { background: linear-gradient(90deg, #0b1b12e8, #0b1b1282 42%, #0b1b1200 75%), linear-gradient(0deg, #07160dc9, transparent 26%, transparent 82%, #07160d80); }
.sm-film__masthead, .sm-film__skip, .sm-film__story, .sm-film__footer, .sm-film__progress { position: absolute; z-index: 2; }
.sm-film__masthead { top: max(32px, env(safe-area-inset-top)); left: max(5vw, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 8px; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #efddae; }
.sm-film__mark { font-size: 25px; line-height: 1.3; letter-spacing: 0; color: #fff9e9; }
.sm-film__skip { top: max(32px, env(safe-area-inset-top)); right: max(5vw, env(safe-area-inset-right)); display: inline-flex; gap: 18px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #fff9e961; border-radius: 30px; background: #102117bd; color: #fff9e9; font: inherit; font-size: 13px; cursor: pointer; }
.sm-film__skip:hover { background: #fff9e9; color: #183222; }
body .selvamart-intro .sm-film__skip:focus-visible { outline: 3px solid #f4d993 !important; outline-offset: 5px; }
.sm-film__story { left: max(5vw, env(safe-area-inset-left)); top: 35%; width: min(590px, 48vw); }
.sm-film__eyebrow { color: #ebd4a1; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.8; margin: 0 0 26px; }
.sm-film__chapters { display: grid; }
.sm-film__chapter { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(14px); }
.sm-film__chapter > span { display: block; font-size: clamp(17px, 1.8vw, 25px); line-height: 1.65; color: #e5d8b9; margin-bottom: 14px; }
.sm-film__chapter > strong { display: block; color: #fff9e9; font-family: Georgia, 'Times New Roman', serif !important; font-size: clamp(36px, 4.4vw, 68px); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
.is-playing .sm-film__chapter--forest { animation: smFilmForest var(--intro-duration) ease both; }
.is-playing .sm-film__chapter--table { animation: smFilmTable var(--intro-duration) ease both; }
.is-playing .sm-film__chapter--brand { animation: smFilmBrand var(--intro-duration) ease both; }
.sm-film__caption { margin: 26px 0 0; font-size: 13px; color: #e5d8b9; letter-spacing: .025em; }
.sm-film__footer { left: max(5vw, env(safe-area-inset-left)); right: max(5vw, env(safe-area-inset-right)); bottom: max(34px, calc(env(safe-area-inset-bottom) + 18px)); display: flex; gap: 32px; color: #f3e7cf; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sm-film__footer span { opacity: .45; }
.is-playing .sm-film__footer span:nth-child(1) { animation: smFilmForest var(--intro-duration) ease both; }
.is-playing .sm-film__footer span:nth-child(2) { animation: smFilmTable var(--intro-duration) ease both; }
.is-playing .sm-film__footer span:nth-child(3) { animation: smFilmBrand var(--intro-duration) ease both; }
.sm-film__progress { bottom: 0; left: 0; width: 100%; height: 3px; background: #ffffff20; }
.sm-film__progress span { display: block; height: 100%; background: #e9d19b; transform-origin: left; }
.is-playing .sm-film__progress span { animation: smFilmProgress var(--intro-duration) linear both; }
@keyframes smFilmCamera { from { transform: scale(1.13) translate3d(1.2%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
@keyframes smFilmLight { 0% { opacity: .1; transform: rotate(-4deg); } 65% { opacity: .7; } 100% { opacity: .3; transform: rotate(2deg); } }
@keyframes smFilmMist { 0% { opacity: .05; transform: translate3d(-3%, 2%, 0); } 60% { opacity: .6; } 100% { opacity: .15; transform: translate3d(3%, -1%, 0); } }
@keyframes smFilmForest { 0% { opacity: 0; transform: translateY(12px); } 8%, 26% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes smFilmTable { 0%, 32% { opacity: 0; transform: translateY(12px); } 39%, 59% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes smFilmBrand { 0%, 65% { opacity: 0; transform: translateY(12px); } 73%, 100% { opacity: 1; transform: none; } }
@keyframes smFilmProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 767px) {
	.sm-film__photo { object-position: 72% center; transform-origin: 65% 60%; }
	.sm-film__shade { background: linear-gradient(180deg, #0a1b14b3, #0a1b149c 45%, #0a1b1426 76%, #0a1b14b8); }
	.sm-film__masthead { top: max(24px, env(safe-area-inset-top)); left: 24px; max-width: 60%; }
	.sm-film__mark { font-size: 22px; }
	.sm-film__skip { top: max(24px, env(safe-area-inset-top)); right: 20px; padding-inline: 14px; }
	.sm-film__story { left: 24px; top: 23%; width: calc(100% - 48px); }
	.sm-film__eyebrow { font-size: 10px; margin-bottom: 18px; }
	.sm-film__chapter > strong { font-size: clamp(36px, 9.8vw, 54px); max-width: 360px; }
	.sm-film__chapter > span { font-size: 18px; }
	.sm-film__caption { font-size: 12px; margin-top: 18px; }
	.sm-film__footer { left: 24px; right: 24px; gap: 16px; font-size: 9px; }
}
@media (max-height: 520px) and (min-width: 600px) {
	.sm-film__masthead, .sm-film__skip { top: 18px; }
	.sm-film__story { top: 29%; width: 62%; }
	.sm-film__eyebrow, .sm-film__caption { display: none; }
	.sm-film__chapter > strong { font-size: 36px; }
	.sm-film__chapter > span { font-size: 16px; margin-bottom: 8px; }
	.sm-film__footer { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	#selvamart-intro { display: none !important; }
	body.selvamart-intro-active { overflow: auto; }
}
