/* ==========================================================================
   JVC Landing
   Desktop sizes are expressed in "design pixels" of the 2000px-wide mockup:
   calc(N * var(--u)). Below 1000px a stacked mobile layout takes over.
   ========================================================================== */

@font-face {
	font-family: "JVC Helvetica";
	src: url("../fonts/helvetica-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Kyoto";
	src: url("../fonts/ppkyoto-extrabold.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--blue: #1b4ea2;
	--white: #ffffff;
	--helv: "JVC Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--kyoto: "PP Kyoto", Georgia, "Times New Roman", serif;
	--u: calc(min(100vw, 2400px) / 2000);
	--line: max(1px, calc(2 * var(--u)));
	/* top + footer bar: wordmark and JVC circles share the same height */
	--logo-h: calc(33.3 * var(--u));
	--bar-pad-y: calc(14 * var(--u));
	--bar-pad-l: calc(12 * var(--u));
	--bar-pad-r: calc(20 * var(--u));
	--footer-h: calc(var(--logo-h) + 2 * var(--bar-pad-y));
	--crest-h: calc(56 * var(--u));
	--lockup-h: calc(58 * var(--u));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding-bottom: var(--footer-h); /* room for the fixed footer bar */
	min-height: 100vh;
	min-height: 100svh;
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--blue);
	color: var(--white);
	font-family: var(--kyoto);
	font-weight: 800;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--white); color: var(--blue); }

:focus-visible {
	outline: var(--line) solid var(--white);
	outline-offset: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Type ------------------------------------------------------------------ */

/* Helvetica Bold "with contour and round corners" (brand guide) */
.helv {
	font-family: var(--helv);
	font-weight: 700;
	letter-spacing: -0.012em;
	-webkit-text-stroke: 0.028em currentColor;
	paint-order: stroke fill;
	stroke-linejoin: round;
}
.kyoto {
	font-family: var(--kyoto);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.jvc-svg { display: block; height: auto; }

/* Oval outline elements (language pills, CTA) */
.oval,
.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: var(--line) solid var(--white);
	border-radius: 50%;
	background: transparent;
	color: var(--white);
	font-family: var(--kyoto);
	font-weight: 800;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.oval:hover,
.pill:hover,
.pill.is-active {
	background: var(--white);
	color: var(--blue);
}

/* Header ---------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
	background: var(--blue);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: var(--bar-pad-y) var(--bar-pad-r) var(--bar-pad-y) var(--bar-pad-l);
}
.site-header__logo { display: block; color: var(--white); }
/* Crest (Wappen) instead of the wordmark */
.site-header--crest,
.site-header--lockup { align-items: center; }
.site-header--crest .site-header__logo,
.site-header--lockup .site-header__logo { line-height: 0; }
.lockup { display: block; height: var(--lockup-h); width: auto; }
.crest { display: block; height: var(--crest-h); width: auto; }
.wordmark { height: var(--logo-h); width: auto; }

.lang { display: flex; gap: calc(6 * var(--u)); padding-top: calc(4 * var(--u)); }
.pill {
	width: calc(72 * var(--u));
	height: calc(40 * var(--u));
	font-size: calc(24 * var(--u));
	padding-bottom: .08em;
}

/* Background slideshow -------------------------------------------------- */

.bg-slides {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: var(--blue);
	isolation: isolate;
	pointer-events: none;
}
.bg-slides__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.8s ease;
	will-change: opacity, transform;
}
.bg-slides__img.is-active {
	opacity: 1;
	animation: jvc-kenburns var(--kb, 8s) linear forwards;
}
@keyframes jvc-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}
.bg-slides__tint { position: absolute; inset: 0; background: var(--blue); }
/* Flipbook: hard cuts, no fade, no zoom */
.bg-slides--flip .bg-slides__img { transition: none; }
.bg-slides--flip .bg-slides__img.is-active { animation: none; }

/* Duotone: photos in black & JVC blue */
.bg-slides--duotone .bg-slides__img { filter: grayscale(1) contrast(1.1) brightness(1.05); }
.bg-slides--duotone .bg-slides__tint { mix-blend-mode: multiply; }
/* Colour photos with a light blue tint + darkening */
.bg-slides--color .bg-slides__tint { opacity: var(--overlay, .25); }
/* darkening layer: a bit stronger on the left/bottom where the text sits */
.bg-slides--color::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 70%),
		rgba(0, 0, 0, var(--dark, .35));
}

.landing { position: relative; z-index: 1; }

/* Landing --------------------------------------------------------------- */

.landing {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0 0 calc(50 * var(--u)) calc(168 * var(--u));
}
/* Elementor layout: spacing comes from the Elementor containers */
.landing--builder { padding: 0; display: block; }

.claims {
	padding-top: min(calc(252 * var(--u)), 20vh);
	display: grid;
	/* first column grows with the longest headline (e.g. German), both rows stay aligned */
	grid-template-columns: minmax(calc(464 * var(--u)), max-content) auto;
	column-gap: calc(40 * var(--u));
	row-gap: calc(92 * var(--u));
	align-items: start;
}
.claim { display: contents; }
.claim__head {
	margin: 0;
	font-size: calc(33 * var(--u));
	line-height: 1.1;
}
.claim__lines {
	margin: 0;
	padding-top: calc(2 * var(--u));
	font-size: calc(23.5 * var(--u));
	line-height: .92;
}

.landing__bottom {
	margin-top: auto;
	padding-top: calc(120 * var(--u));
	display: grid;
	grid-template-columns: calc(840 * var(--u)) auto;
	align-items: start;
}
.brandblock { grid-column: 1; grid-row: 1; padding-top: calc(78 * var(--u)); }
.waitlist   { grid-column: 2; grid-row: 1; }

.monogram { width: calc(226 * var(--u)); }
.signature {
	margin: calc(26 * var(--u)) 0 0;
	font-size: calc(23 * var(--u));
	line-height: .9;
}
.signature span { display: block; }
.signature .helv { font-size: 1.04em; letter-spacing: -0.02em; }


/* Waitlist form --------------------------------------------------------- */

.waitlist__title {
	margin: 0 0 calc(22 * var(--u));
	font-size: calc(33 * var(--u));
	line-height: 1.1;
}
.waitlist__row {
	display: flex;
	align-items: center;
	gap: calc(20 * var(--u));
}
.waitlist__input {
	width: calc(486 * var(--u));
	height: calc(60 * var(--u));
	margin: 0;
	padding: 0 calc(20 * var(--u));
	border: 0;
	border-radius: 0;
	background: var(--white);
	color: var(--blue);
	font-size: calc(33 * var(--u));
	-webkit-appearance: none;
	appearance: none;
}
.waitlist__input::placeholder { color: var(--blue); opacity: 1; }
.waitlist__input:focus::placeholder { opacity: .35; }
.waitlist__input:focus-visible { outline-offset: 3px; }
.waitlist__input[aria-invalid="true"] { box-shadow: inset 0 0 0 calc(3 * var(--u)) #e4002b; }

.waitlist__button {
	flex: none;
	width: auto;
	min-width: calc(280 * var(--u));
	padding: 0 calc(34 * var(--u)) .08em;
	white-space: nowrap;
	height: calc(68 * var(--u));
	font-size: calc(23.5 * var(--u));
	padding-bottom: .08em;
}
.waitlist__button:disabled { opacity: .6; cursor: progress; }

.waitlist__consent {
	margin: calc(14 * var(--u)) 0 0;
	max-width: calc(486 * var(--u));
	font-size: calc(17 * var(--u));
	line-height: 1.15;
	opacity: .85;
}
.waitlist__consent a { text-underline-offset: .15em; }

.waitlist__msg {
	margin: calc(18 * var(--u)) 0 0;
	max-width: calc(786 * var(--u));
	min-height: 1em;
	font-size: calc(23.5 * var(--u));
	line-height: 1.05;
}
.waitlist__msg:empty { display: none; }
.waitlist__form.is-done { display: none; }
.waitlist__form.is-done + .waitlist__msg { margin-top: 0; font-size: calc(33 * var(--u)); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer bar ------------------------------------------------------------ */

.site-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	height: var(--footer-h);
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 0 var(--bar-pad-r) 0 var(--bar-pad-l);
	background: none; /* links only, no bar */
	pointer-events: none;
}
.site-footer .legal { pointer-events: auto; text-shadow: 0 0 .6em rgba(0, 0, 0, .35); }

.legal {
	display: flex;
	gap: calc(18 * var(--u));
	font-family: var(--kyoto);
	font-size: calc(17 * var(--u));
}
.legal a { text-decoration: none; opacity: .85; }
.legal a:hover { text-decoration: underline; opacity: 1; }

/* Age gate -------------------------------------------------------------- */

.gate {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	padding: 0 calc(20 * var(--u)) calc(var(--footer-h) + 33 * var(--u)) calc(168 * var(--u));
	background: var(--blue);
	overflow-y: auto;
}
.jvc-age-ok .gate:not(.confirm) { display: none; }
body.home:has(.confirm) { overflow: hidden; }
.confirm .gate__text { max-width: 20em; margin-top: calc(40 * var(--u)); font-size: calc(33 * var(--u)); line-height: 1.12; }
.confirm__lines {
	margin: calc(40 * var(--u)) 0 0;
	font-size: calc(33 * var(--u));
	line-height: .92;
}
.confirm__btn {
	min-width: calc(300 * var(--u));
	height: calc(74 * var(--u));
	padding: 0 calc(36 * var(--u)) .08em;
	font-size: calc(26 * var(--u));
	white-space: nowrap;
}
.gate:focus { outline: none; }
html:not(.jvc-age-ok) body.home { overflow: hidden; }

.gate__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: calc(100 * var(--u));
	max-width: calc(1100 * var(--u));
}
.gate__question,
.gate__text {
	margin: 0;
	font-size: calc(66 * var(--u));
	line-height: .98;
}
.gate__text { margin-top: calc(70 * var(--u)); max-width: 10.5em; }
.gate__text:focus { outline: none; }
.gate__denied .gate__text { margin-top: 0; }
.gate__choices {
	display: flex;
	gap: calc(60 * var(--u));
	margin-top: calc(60 * var(--u));
}
.gate__btn {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: calc(62 * var(--u));
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	text-underline-offset: .12em;
	text-decoration-thickness: .06em;
}
.gate__btn:hover { text-decoration: underline; }

.gate__foot {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}
.gate__sig { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.gate__sig .monogram { width: calc(90 * var(--u)); }
.gate__sig .signature { margin: 0; }

/* Generic pages (Impressum, Datenschutz) -------------------------------- */

.legal-page {
	flex: 1;
	width: 100%;
	max-width: calc(1200 * var(--u) + 40px);
	padding: calc(160 * var(--u)) calc(168 * var(--u)) calc(140 * var(--u));
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: max(16px, calc(22 * var(--u)));
	line-height: 1.5;
}
.legal-page__title { margin: 0 0 1em; font-size: max(28px, calc(66 * var(--u))); line-height: 1; }
.legal-page__content h2,
.legal-page__content h3 { font-family: var(--helv); font-weight: 700; line-height: 1.2; margin: 2em 0 .5em; }
.legal-page__content a { text-underline-offset: .15em; }
.legal-page__back { margin-top: 3em; font-size: max(18px, calc(24 * var(--u))); }
.legal-page__back a { text-decoration: none; }

/* Elementor widgets ----------------------------------------------------- */

.jvc-claim { display: flex; align-items: flex-start; gap: calc(40 * var(--u)); }
.jvc-claim .claim__head { flex: 0 0 calc(464 * var(--u)); }
.jvc-signature { display: flex; flex-direction: column; align-items: flex-start; gap: calc(26 * var(--u)); }
.jvc-signature .signature { margin: 0; }
.jvc-logo { display: flex; color: var(--white); }
.jvc-logo a { display: block; color: inherit; line-height: 0; }
.jvc-logo .circles { width: calc(82 * var(--u)); }
.jvc-text { margin: 0; font-size: calc(33 * var(--u)); line-height: 1.1; }
.jvc-text.kyoto { font-size: calc(23.5 * var(--u)); line-height: .92; }

/* Ellipse like the "Join the waitlist." button.
   JVC Text widget: switch "Ellipse"; any other Elementor widget (e.g. Heading): CSS class jvc-oval */
.jvc-oval .elementor-heading-title,
.jvc-oval .jvc-text,
.jvc-text.is-oval {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .42em 1.35em .5em;
	border: var(--line) solid currentColor;
	border-radius: 50%;
	white-space: nowrap;
}

/* Language-specific elements: add the CSS class jvc-en or jvc-de to any Elementor element */
.jvc-lang-en .jvc-de,
.jvc-lang-de .jvc-en { display: none !important; }
/* …in the Elementor editor they stay visible (faded) so they can still be edited */
.elementor-editor-active.jvc-lang-en .jvc-de,
.elementor-editor-active.jvc-lang-de .jvc-en { display: block !important; opacity: .35; outline: 1px dashed rgba(255, 255, 255, .6); }

/* ==========================================================================
   Mobile / tablet (stacked)
   --m = 1% of the (capped) viewport width, matching the phone mockup.
   ========================================================================== */
@media (max-width: 999px) {
	:root {
		--m: calc(min(100vw, 560px) / 100);
		--line: 1.5px;
		--logo-h: calc(4.3 * var(--m));
		--bar-pad-y: calc(4 * var(--m));
		--bar-pad-l: calc(3.5 * var(--m));
		--bar-pad-r: calc(3.5 * var(--m));
		--crest-h: calc(10 * var(--m));
		--lockup-h: calc(5.6 * var(--m));
	}

	.site-header { align-items: center; }
	.lang { gap: calc(1.5 * var(--m)); padding-top: 0; }
	.pill {
		width: calc(12.5 * var(--m));
		height: calc(7.2 * var(--m));
		font-size: calc(4.3 * var(--m));
	}

	.landing { padding: 0 calc(3.5 * var(--m)) calc(6 * var(--m)); }
	.claims { padding-top: calc(16 * var(--m)); row-gap: calc(9 * var(--m)); }
	.claims { grid-template-columns: 1fr; }
	.claim { display: grid; grid-template-columns: 1fr; row-gap: calc(2 * var(--m)); }
	.claim__head { font-size: calc(5.6 * var(--m)); }
	.claim__lines { font-size: calc(4.8 * var(--m)); line-height: .92; padding: 0; }

	.landing__bottom {
		padding-top: calc(18 * var(--m));
		grid-template-columns: 1fr;
		row-gap: calc(18 * var(--m));
	}
	.waitlist   { grid-column: 1; grid-row: 1; }
	.brandblock {
		grid-column: 1; grid-row: 2;
		padding-top: 0;
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: calc(3 * var(--m));
	}
	.brandblock .monogram { width: calc(11.5 * var(--m)); }
	.brandblock .signature { margin: 0; font-size: calc(4 * var(--m)); }

	.waitlist__title { font-size: calc(5.6 * var(--m)); margin-bottom: calc(3.5 * var(--m)); }
	.waitlist__row { flex-direction: column; align-items: flex-start; gap: calc(4 * var(--m)); }
	.waitlist__input {
		width: 100%;
		height: calc(12 * var(--m));
		padding: 0 calc(3.5 * var(--m));
		font-size: max(16px, calc(5 * var(--m))); /* ≥16px avoids iOS zoom */
	}
	.waitlist__button {
		min-width: calc(52 * var(--m));
		padding: 0 calc(6 * var(--m)) .08em;
		height: calc(12 * var(--m));
		font-size: calc(4.6 * var(--m));
	}
	.waitlist__consent { max-width: none; font-size: calc(3.6 * var(--m)); margin-top: calc(3.5 * var(--m)); }
	.waitlist__msg { max-width: none; font-size: calc(4.6 * var(--m)); margin-top: calc(4 * var(--m)); }
	.waitlist__form.is-done + .waitlist__msg { font-size: calc(5.6 * var(--m)); }

	.legal { gap: calc(5 * var(--m)); font-size: calc(3.6 * var(--m)); }

	.gate { padding: 0 calc(3.5 * var(--m)) calc(var(--footer-h) + 6 * var(--m)); }
	.gate__body { justify-content: flex-start; padding-top: calc(38 * var(--m)); max-width: none; }
	.gate__question,
	.gate__text { font-size: calc(10 * var(--m)); line-height: .92; }
	.gate__text { margin-top: calc(13 * var(--m)); max-width: none; }
	.gate__choices { gap: calc(8 * var(--m)); margin-top: calc(12 * var(--m)); }
	.gate__btn { font-size: calc(9.4 * var(--m)); }
	.gate__foot { padding-right: 0; align-items: flex-start; }
	.gate__sig { gap: calc(1.5 * var(--m)); }
	.gate__sig .monogram { width: calc(11.5 * var(--m)); }
	.gate__sig .signature { font-size: calc(4 * var(--m)); }

	.confirm .gate__text { max-width: none; margin-top: calc(7 * var(--m)); font-size: calc(6.4 * var(--m)); line-height: 1.1; }
	.confirm__lines { margin-top: calc(8 * var(--m)); font-size: calc(6.4 * var(--m)); }
	.confirm__btn { min-width: calc(52 * var(--m)); height: calc(13 * var(--m)); padding: 0 calc(6 * var(--m)) .08em; font-size: calc(5.2 * var(--m)); }
	.jvc-claim { flex-direction: column; gap: calc(2 * var(--m)); }
	.jvc-claim .claim__head { flex: none; }
	.jvc-signature { flex-direction: row; align-items: center; gap: calc(3 * var(--m)); }
	.jvc-signature .monogram { width: calc(11.5 * var(--m)); }
	.jvc-signature .signature { font-size: calc(4 * var(--m)); }
	.jvc-logo .circles { width: calc(10.7 * var(--m)); }
	.jvc-text { font-size: calc(5.6 * var(--m)); }
	.jvc-text.kyoto { font-size: calc(4.8 * var(--m)); }

	.legal-page { padding: calc(20 * var(--m)) calc(3.5 * var(--m)) calc(12 * var(--m)); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	.bg-slides__img.is-active { animation: none; }
}
