/*
 * DJI Store Brno – opening party landing.
 * Everything is scoped under .djibrno so the shop's own CSS stays untouched.
 */

.djibrno {
	--ink: #111315;
	--text: #3b3e40;
	--muted: #6b7075;
	--line: #e4e6e9;
	--surface: #f4f5f7;
	--blue: #0060ef;
	--blue-dark: #004fc4;
	--night: #0a0c11;
	--radius: 24px;
	--radius-sm: 16px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--gap: clamp(16px, 2.2vw, 28px);

	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	display: grid;
	gap: clamp(56px, 8vw, 120px);
	padding-bottom: clamp(40px, 6vw, 80px);
}

/* Local reset – the shop theme styles bare elements. */
.djibrno *,
.djibrno *::before,
.djibrno *::after { box-sizing: border-box; }
.djibrno h1, .djibrno h2, .djibrno h3,
.djibrno p, .djibrno ul, .djibrno ol, .djibrno dl, .djibrno dd, .djibrno dt { margin: 0; padding: 0; }
.djibrno ul, .djibrno ol { list-style: none; }
.djibrno img { display: block; max-width: 100%; height: auto; border: 0; }
.djibrno a { text-decoration: none; color: inherit; }
.djibrno [hidden] { display: none !important; }

/* ---------- Typography ---------- */

.djibrno-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}
.djibrno-eyebrow--dark { color: var(--blue); }

.djibrno-h2 {
	font-size: clamp(30px, 4.4vw, 56px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--ink);
}
.djibrno-h3 {
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
}
.djibrno-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 820px; }

/* ---------- Buttons ---------- */

.djibrno-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.djibrno-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	border: 1.5px solid transparent;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.djibrno-btn:hover { transform: translateY(-2px); }
.djibrno-btn:focus-visible,
.djibrno-product:focus-visible,
.djibrno-ics:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 3px; }
.djibrno .djibrno-btn--primary { background: var(--blue); color: #fff; }
.djibrno .djibrno-btn--primary:hover { background: var(--blue-dark); }
.djibrno .djibrno-btn--light { background: #fff; color: var(--ink); }
.djibrno .djibrno-btn--light:hover { background: #e8ebef; }
.djibrno .djibrno-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.djibrno .djibrno-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */

.djibrno-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--radius);
	background: var(--night);
	color: #fff;
	min-height: clamp(600px, 86vh, 860px);
	display: flex;
	align-items: center;
}
.djibrno-hero__media { position: absolute; inset: 0; z-index: -2; }
.djibrno-hero__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	/* Crops away the text baked into the teaser image and centres the lit shop window. */
	object-position: 62% 80%;
	transform-origin: 62% 80%;
	transform: scale(1.18);
	animation: djibrno-kenburns 22s var(--ease) both;
}
.djibrno-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(8, 10, 15, .92) 0%, rgba(8, 10, 15, .72) 38%, rgba(8, 10, 15, .1) 70%),
		linear-gradient(0deg, rgba(8, 10, 15, .55) 0%, rgba(8, 10, 15, 0) 35%);
}
.djibrno-hero__inner {
	width: 100%;
	max-width: 760px;
	padding: clamp(40px, 6vw, 88px);
	display: grid;
	gap: 22px;
	justify-items: start;
}
.djibrno-hero__title {
	font-size: clamp(48px, 8.2vw, 112px);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.035em;
	color: #fff;
}
.djibrno-hero__lead { font-size: clamp(17px, 1.6vw, 21px); color: rgba(255, 255, 255, .86); max-width: 30em; }

.djibrno-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 0;
	padding: 6px 0;
}
.djibrno-facts li {
	display: grid;
	gap: 2px;
	padding: 0 22px;
	border-left: 1px solid rgba(255, 255, 255, .22);
}
.djibrno-facts li:first-child { padding-left: 0; border-left: 0; }
.djibrno-facts span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.djibrno-facts strong { font-size: 17px; font-weight: 700; color: #fff; }

.djibrno-countdown {
	padding: 16px 20px 18px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.djibrno-countdown__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .66); margin-bottom: 8px; }
.djibrno-countdown__grid { display: flex; gap: clamp(14px, 2.4vw, 28px); }
.djibrno-countdown__grid div { display: grid; justify-items: start; }
.djibrno-countdown__grid b {
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
	color: #fff;
}
.djibrno-countdown__grid span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.djibrno-countdown.is-live .djibrno-countdown__label { color: #7fb0ff; }

.djibrno-ics { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7) !important; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 1px; }
.djibrno-ics:hover { color: #fff !important; border-color: #fff; }

/* ---------- Program timeline ---------- */

.djibrno-timeline {
	--label: 300px;
	--col-gap: 32px;
	--pad: clamp(24px, 3.4vw, 44px);
	position: relative;
	padding: var(--pad);
	border-radius: var(--radius);
	background: var(--surface);
}
.djibrno-timeline__scale {
	display: flex;
	justify-content: space-between;
	margin-left: calc(var(--label) + var(--col-gap));
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.djibrno-timeline__scale span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.djibrno-timeline__scale span:first-child { justify-content: flex-start; }
.djibrno-timeline__scale span:last-child { justify-content: flex-end; }
.djibrno-timeline__rows { display: grid; }
.djibrno-timeline__rows li {
	display: grid;
	grid-template-columns: var(--label) 1fr;
	column-gap: var(--col-gap);
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}
.djibrno-timeline__rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.djibrno-timeline__rows p { display: grid; gap: 1px; }
.djibrno-timeline__rows strong { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.djibrno-timeline__rows p span { font-size: 13px; color: var(--muted); }

.djibrno-bar {
	display: block;
	height: 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--blue), #3d8bff);
	margin-left: calc((var(--from) - 16) / 4 * 100%);
	width: calc((var(--to) - var(--from)) / 4 * 100%);
	transform-origin: left center;
}
.djibrno-bar--muted { background: #cfd4da; }

.djibrno-timeline__now {
	position: absolute;
	top: var(--pad);
	bottom: var(--pad);
	left: calc(var(--pad) + var(--label) + var(--col-gap) + (100% - 2 * var(--pad) - var(--label) - var(--col-gap)) * var(--now, 0));
	width: 2px;
	background: #e5484d;
	font-style: normal;
}
.djibrno-timeline__now span {
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translate(-50%, -100%);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: #e5484d;
	border-radius: 999px;
	padding: 2px 8px;
}

/* ---------- Highlight cards ---------- */

.djibrno-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.djibrno-card {
	display: grid;
	grid-template-rows: auto 1fr;
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
}
.djibrno-card__media { overflow: hidden; aspect-ratio: 4 / 5; }
.djibrno-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.djibrno-card:hover .djibrno-card__media img { transform: scale(1.04); }
.djibrno-card__body { display: grid; gap: 8px; align-content: start; padding: 24px 26px 30px; }
.djibrno-card__meta { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.djibrno-card strong { color: var(--ink); }

/* ---------- Statement ---------- */

.djibrno-statement { max-width: 1040px; margin: 0 auto; text-align: center; padding: 0 8px; }
.djibrno-statement p {
	font-size: clamp(24px, 3.2vw, 42px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.015em;
	color: var(--ink);
	text-wrap: balance;
}

/* ---------- Home Credit promo ---------- */

.djibrno-promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(28px, 4.4vw, 64px);
	border-radius: var(--radius);
	background: linear-gradient(120deg, #eaf2ff 0%, #f6f9ff 60%, #ffffff 100%);
	border: 1px solid #d9e6fb;
}
.djibrno-promo__text { display: grid; gap: 12px; max-width: 640px; }
.djibrno-promo__text p:last-child { font-size: 18px; }
.djibrno-promo__badge {
	position: relative;
	flex: none;
	width: clamp(140px, 15vw, 190px);
	aspect-ratio: 1;
	margin: 10px;
	border-radius: 50%;
	display: grid;
	place-content: center;
	text-align: center;
	background: var(--blue);
	color: #fff;
}
.djibrno-promo__badge::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 2px dashed rgba(0, 96, 239, .45);
	animation: djibrno-spin 24s linear infinite;
}
.djibrno-promo__badge span { font-size: clamp(38px, 4.4vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.djibrno-promo__badge small { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

/* ---------- Products ---------- */

.djibrno-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.djibrno-product {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 6px;
	padding: 20px 22px 24px;
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.djibrno-product:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 24px 48px -24px rgba(17, 19, 21, .28); }
.djibrno-product__media {
	display: block;
	aspect-ratio: 1;
	margin-bottom: 14px;
	border-radius: var(--radius-sm);
	background: #fff;
	overflow: hidden;
}
.djibrno-product__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.djibrno-product:hover .djibrno-product__media img { transform: scale(1.06); }
.djibrno-product__cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.djibrno-product__name { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.djibrno-product__cta {
	justify-self: start;
	margin-top: 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--blue);
}
.djibrno-product__cta::after { content: " →"; display: inline-block; margin-left: 4px; transition: transform .3s var(--ease); }
.djibrno-product:hover .djibrno-product__cta::after { transform: translateX(4px); }

/* ---------- Location ---------- */

.djibrno-location {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	padding: clamp(32px, 5vw, 72px);
	border-radius: var(--radius);
	background: var(--night);
	color: rgba(255, 255, 255, .8);
}
.djibrno-location__main { display: grid; gap: 16px; justify-items: start; }
.djibrno-location .djibrno-h2 { color: #fff; }
.djibrno-location__addr { font-size: 17px; margin-bottom: 8px; }
.djibrno-location__list div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 4px; }
.djibrno-location__list div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.djibrno-location__list dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7fb0ff; }
.djibrno-location__list dd { font-size: 16px; color: rgba(255, 255, 255, .86); }

/* ---------- Closing ---------- */

.djibrno-closing { text-align: center; display: grid; gap: 14px; justify-items: center; }
.djibrno-closing__title {
	font-size: clamp(40px, 7vw, 96px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.035em;
	background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--blue) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-bottom: .08em;
}
.djibrno-closing p { font-size: 17px; font-weight: 600; color: var(--muted); }

/* ---------- Motion ---------- */

/* Hero entrance – pure CSS, so it plays even if the editor strips the script. */
.djibrno-anim { animation: djibrno-rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }

/* Scroll reveal – armed only once the script has run (.is-ready), so it never hides content on its own. */
.djibrno.is-ready .djibrno-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.djibrno.is-ready .djibrno-reveal.is-in { opacity: 1; transform: none; }
.djibrno.is-ready .djibrno-timeline .djibrno-bar {
	transform: scaleX(0);
	transition: transform 1.2s var(--ease);
	transition-delay: calc(var(--d, 0) * 140ms + 250ms);
}
.djibrno.is-ready .djibrno-timeline.is-in .djibrno-bar { transform: scaleX(1); }

@keyframes djibrno-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}
@keyframes djibrno-kenburns {
	from { transform: scale(1.3); }
	to { transform: scale(1.18); }
}
@keyframes djibrno-kenburns-sm {
	from { transform: scale(1.62); }
	to { transform: scale(1.5); }
}
@keyframes djibrno-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.djibrno *,
	.djibrno *::before { animation: none !important; transition: none !important; }
	.djibrno.is-ready .djibrno-reveal,
	.djibrno.is-ready .djibrno-timeline .djibrno-bar { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.djibrno-products { grid-template-columns: repeat(2, 1fr); }
	.djibrno-timeline { --label: 220px; --col-gap: 24px; }
}

@media (max-width: 860px) {
	.djibrno-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.djibrno-location { grid-template-columns: 1fr; }
	.djibrno-promo { flex-direction: column-reverse; align-items: flex-start; }
	.djibrno-promo__badge { width: 120px; }
	.djibrno-promo__badge span { font-size: 34px; }
	.djibrno-promo__badge small { font-size: 11px; }
}

@media (max-width: 700px) {
	.djibrno { --radius: 20px; }
	.djibrno-hero {
		align-items: flex-start;
		min-height: 0;
		padding-bottom: 240px;
	}
	.djibrno-hero__media img { object-position: 64% 82%; transform-origin: 64% 82%; transform: scale(1.5); animation-name: djibrno-kenburns-sm; }
	.djibrno-hero::before {
		background: linear-gradient(180deg, rgba(8, 10, 15, .94) 0%, rgba(8, 10, 15, .82) 55%, rgba(8, 10, 15, 0) 82%);
	}
	.djibrno-hero__inner { padding: 36px 22px 0; gap: 18px; }
	.djibrno-facts li { padding: 0 14px; }
	.djibrno-facts li:nth-child(3) { flex-basis: 100%; padding-left: 0; border-left: 0; }
	.djibrno-facts strong { font-size: 15px; }
	.djibrno-countdown { width: 100%; }
	.djibrno-countdown__grid { justify-content: space-between; }
	.djibrno-actions { width: 100%; }
	.djibrno-actions .djibrno-btn { flex: 1 1 auto; }

	/* Timeline: label above its bar, the scale loses the label column. */
	.djibrno-timeline { --label: 0px; --col-gap: 0px; }
	.djibrno-timeline__scale span:nth-child(even) { visibility: hidden; }
	.djibrno-timeline__rows li { grid-template-columns: 1fr; row-gap: 10px; }
	.djibrno-timeline__rows p { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
	.djibrno-timeline__rows p span { white-space: nowrap; }

	.djibrno-products { gap: 12px; }
	.djibrno-product { padding: 12px 12px 16px; border-radius: var(--radius-sm); }
	.djibrno-product__media { margin-bottom: 8px; border-radius: 12px; }
	.djibrno-product__name { font-size: 15px; }
	.djibrno-product__cat { font-size: 11px; }
}
