/*
 * Palette sampled from the reference recording:
 *   loader background  #f1ede7  (warm cream)
 *   counter text       #363a3c  (soft charcoal)
 *   gate / hero text   #ffffff
 * Fonts (Google Fonts, loaded by the plugin):
 *   display  Lexend Giga 300  - wide, light geometric sans (closest free match)
 *   ui       Source Sans 3 600 - buttons and small labels
 */
:root {
	--ois-cream: #f1ede7;
	--ois-ink: #363a3c;
	--ois-display: "Lexend Giga", "Helvetica Neue", Arial, sans-serif;
	--ois-ui: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

html.ois-lock, html.ois-lock body { overflow: hidden; height: 100%; }

#ois-root {
	position: fixed; inset: 0; z-index: 999999;
	background: var(--ois-cream); color: #fff;
	font-family: var(--ois-ui);
	will-change: transform;
}
html:not(.ois-lock) #ois-root { display: none; }

/* ---------- Loader (cream, logo centered, counter near the bottom) ---------- */
.ois-loader { position: absolute; inset: 0; color: var(--ois-ink); }
.ois-logo { position: absolute; left: 50%; top: 50%; width: 90px; max-width: 40vw; height: auto; transform: translate(-50%, -50%); opacity: 0; }
.ois-counter {
	position: absolute; left: 50%; bottom: 14vh; transform: translateX(-50%);
	display: flex; align-items: flex-start;
	font-family: var(--ois-display); font-weight: 300;
	font-size: clamp(34px, 3.6vw, 64px); line-height: 1; letter-spacing: 0;
	color: var(--ois-ink);
}
.ois-col { display: inline-block; height: 1em; overflow: hidden; width: .9em; }
.ois-strip { display: block; will-change: transform; }
.ois-strip i { display: block; height: 1em; font-style: normal; text-align: center; }
.ois-pct { font-size: .3em; margin-left: .2em; margin-top: .1em; align-self: flex-start; }

/* ---------- Gate (looping video, headline, glass button) ---------- */
.ois-gate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; visibility: hidden; background: #2a1f16; }
.ois-gate-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ois-gate-shade { position: absolute; inset: 0; background: rgba(0,0,0,.22); pointer-events: none; }

.ois-gate-center { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vw, 44px); text-align: center; padding: 0 24px; }
.ois-gate-logo { width: min(210px, 46vw); height: auto; opacity: 0; }
.ois-gate-title {
	margin: 0; overflow: hidden; padding-bottom: .1em;
	font-family: var(--ois-display); font-weight: 300;
	font-size: clamp(26px, 3.7vw, 66px); line-height: 1.1; letter-spacing: -0.01em; color: #fff;
}
.ois-gate-title span { display: inline-block; will-change: transform; }
.ois-actions { display: flex; flex-direction: column; align-items: center; }

.ois-btn {
	font-family: var(--ois-ui); font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
	font-size: clamp(13px, 1.05vw, 17px); color: #fff; cursor: pointer;
}
.ois-btn-main {
	padding: 20px 44px; border-radius: 22px;
	background: rgba(255,255,255,.16);
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	border: 1px solid rgba(255,255,255,.55);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 30px rgba(0,0,0,.18);
	transition: background .3s, transform .3s;
}
.ois-btn-main:hover { background: rgba(255,255,255,.32); transform: translateY(-2px); }

.ois-link {
	background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.78);
	font-family: var(--ois-ui); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
	text-decoration: underline; text-underline-offset: 5px; transition: color .25s;
}
.ois-link:hover { color: #fff; }
.ois-link-mute { position: absolute; left: 0; right: 0; bottom: 10vh; margin: 0 auto; width: max-content; opacity: 0; }

/* Quick anchors (right side of the gate) */
.ois-quick {
	position: absolute; right: 3vw; top: 32vh; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
	font-family: var(--ois-ui); font-size: 13px; color: #fff; opacity: 0;
}
.ois-quick-label { opacity: .9; line-height: 1.15; max-width: 6em; }
.ois-quick ul { list-style: none; margin: 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.ois-quick ul::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.5); }
.ois-quick li { position: relative; }
.ois-quick li::before {
	content: ""; position: absolute; left: -24px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
	border-radius: 50%; border: 1px solid #fff; background: rgba(255,255,255,.3);
}
.ois-quick a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Intro video ---------- */
.ois-intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; background: #000; }
.ois-skip-video { position: absolute; right: 3vw; bottom: 4vh; opacity: 0; visibility: hidden; }

/* ---------- Hero (centered title, small link under it) ---------- */
.ois-hero { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #0b0e12; color: #fff; display: flex; }
.ois-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.ois-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.32)); }
.ois-hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 6vw; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.ois-hero-title {
	margin: 0; font-family: var(--ois-display); font-weight: 300;
	font-size: clamp(28px, 3.3vw, 60px); line-height: 1.1; letter-spacing: -0.01em;
}
.ois-line { display: block; overflow: hidden; padding-bottom: .1em; }
.ois-line > span { display: inline-block; transform: translateY(110%); will-change: transform; }
.ois-anchors { margin-top: 18px; display: flex; gap: 28px; justify-content: center; opacity: 0; transform: translateY(16px); }
.ois-anchors a {
	color: #fff; text-decoration: underline; text-underline-offset: 5px;
	font-family: var(--ois-ui); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.ois-scroll {
	position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 4vh;
	font-family: var(--ois-display); font-weight: 300; font-size: 13px; letter-spacing: .04em;
	display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0;
}
.ois-scroll i { display: block; width: 1px; height: 44px; background: #fff; transform-origin: top; animation: ois-pulse 2s ease-in-out infinite; }
@keyframes ois-pulse { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(0); transform-origin: bottom} }

@media (max-width: 700px) {
	.ois-quick { display: none; }
	.ois-btn-main { padding: 16px 28px; }
	.ois-link-mute { bottom: 7vh; }
}
@media (prefers-reduced-motion: reduce) {
	.ois-scroll i { animation: none; }
}
