/*
 * One-page layout for davidmitterer.de
 * Loaded after the original Twenty Thirteen theme stylesheet; only overrides
 * what the single-page layout needs. Colours and type follow the old site:
 * Lato, #424242 text, #613F6C accent, translucent white content boxes,
 * #1d1d20 dark menu panel (from ShiftNav).
 */

:root {
	--accent: #613f6c;
	--text: #424242;
	--panel: #1d1d20;
	--panel-sub: #1a1a1d;
	--bar-height: 84px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--bar-height);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body.onepage {
	font-family: "Lato", arial, sans-serif;
	color: var(--text);
	background: #fff;
}

body.onepage h1,
body.onepage h2,
body.onepage h3 {
	font-family: "Lato", arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Fixed, cross-fading backgrounds                                    */
/* ------------------------------------------------------------------ */

.bg-stack {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: #fff;
}

.bg-layer {
	position: absolute;
	/* never wider than 1800px: on very wide screens the photo stays centred */
	inset: 0 max(0px, 50% - 900px);
	background-size: cover;
	background-position: 75% center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1.2s ease;
	will-change: opacity;
}

.bg-layer.is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.bg-layer { transition-duration: 0.01s; }
}

/* wider than 1800px: the photos no longer reach the screen edge, so their
   cut-off right edge fades into the white page instead of a hard line */
@media (min-width: 1801px) {
	.bg-layer {
		-webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
		mask-image: linear-gradient(to right, #000 88%, transparent);
	}
}

/* Start image: right-aligned like the original site, but starting below the
 * navigation bar and scaled to the remaining height so the bar never covers
 * the head. W = image width at that height (16:9). On wide screens the image
 * sits flush right (white photo background continues to the left); on narrow
 * screens the face (79% across the photo) is centred instead. */
.bg-layer--hero {
	--hero-h: calc(100vh - var(--bar-height));
	--hero-w: calc(var(--hero-h) * 16 / 9);
	inset: var(--bar-height) auto 0;
	height: var(--hero-h);
	width: var(--hero-w);
	/* right edge = viewport edge, or the edge of the centred 1800px area on wider screens */
	left: max(min(100%, 50% + 900px) - var(--hero-w), 50% - var(--hero-w) * 0.79);
	background-size: cover;
	background-position: center;
}

/* particles around the headline: behind the text, fade in after the headline */
.hero-particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 2s ease;
}

.hero-particles.is-ready {
	opacity: 1;
}

.hero__inner {
	position: relative; /* above the particle canvas */
}

@media (prefers-reduced-motion: reduce) {
	.hero-particles { display: none; }
}

/* ---- start photo animation: slow push-in, violet orb, hypnotic rings ----
 * The hero layer is exactly the photo (16:9, no cropping), so percentages map
 * straight onto the 1920×1080 image. The broken disc sits at
 * x 1364–1727, y 514–754 → centre 80.5% / 58%, about 19% of the width. */

.bg-stack {
	overflow: hidden; /* the push-in scales the layer slightly past its edges */
}

.ripple-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.bg-layer--hero {
	transform-origin: 80.5% 58%; /* zoom towards the disc */
	animation: hero-push 22s ease-in-out infinite alternate;
}

@keyframes hero-push {
	from { transform: scale(1); }
	to   { transform: scale(1.07); }
}

.orb {
	position: absolute;
	left: 80.5%;
	top: 58%;
	width: 19%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
	/* multiply: violet tints the white photo and skin, the black disc stays black,
	   so the glow reads as an aura around the disc rather than a sticker on top */
	mix-blend-mode: multiply;
}

.orb__glow {
	position: absolute;
	inset: -55%;
	border-radius: 50%;
	background: radial-gradient(circle closest-side,
		rgba(97, 63, 108, 0.55) 0%,
		rgba(120, 70, 160, 0.38) 38%,
		rgba(150, 100, 200, 0.16) 62%,
		rgba(150, 100, 200, 0) 100%);
	animation: orb-breathe 5s ease-in-out infinite;
}

@keyframes orb-breathe {
	0%, 100% { opacity: 0.55; transform: scale(0.9); }
	50%      { opacity: 1;    transform: scale(1.08); }
}

.orb__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(97, 63, 108, 0.45);
	opacity: 0;
	animation: orb-ripple 8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.orb__ring:nth-child(3) { animation-delay: 4s; } /* one ring every 4s */

@keyframes orb-ripple {
	0%   { opacity: 0;   transform: scale(0.95); border-width: 2px; }
	12%  { opacity: 0.5; }
	100% { opacity: 0;   transform: scale(2.8);  border-width: 1px; }
}

/* only run while the start photo is showing */
.bg-layer--hero:not(.is-active),
.bg-layer--hero:not(.is-active) .orb * {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.bg-layer--hero,
	.orb * {
		animation: none;
	}
	.orb__ring { display: none; }
	.orb__glow { opacity: 0.8; }
}

/* ------------------------------------------------------------------ */
/* Hero (start screen): staggered headline on the left                */
/* ------------------------------------------------------------------ */

.hero {
	position: relative;
	--hero-size: clamp(34px, min(4.6vw, 8vh), 84px); /* sized to stay left of the person */
	--hero-indent: calc(var(--hero-size) * 1.6); /* how far line 3 and the button step in */
	min-height: calc(100vh - var(--bar-height));
	display: flex;
	align-items: center;
	padding: 40px 16px 40px max(128px, 50% - 772px); /* lines up with the content boxes below */
	box-sizing: border-box;
}

.onepage .hero__title {
	margin: 0 0 4vh;
	font-size: var(--hero-size);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--text);
}

.hero__line {
	display: block;
	white-space: nowrap;
	animation: hero-in 1s ease both;
}

.hero__line:nth-child(1) { animation-delay: 0.2s; }
.hero__line:nth-child(2) { animation-delay: 0.55s; }
.hero__line:nth-child(3) { animation-delay: 0.9s; }

.hero__line--accent {
	color: var(--accent);
}

.hero__line--indent {
	margin-left: var(--hero-indent);
}

.hero__button,
.hero__button:visited {
	display: inline-block;
	margin-left: var(--hero-indent); /* same step-in as line 3 */
	padding: 16px 40px;
	border-radius: 2px;
	background: var(--accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(97, 63, 108, 0.35);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	animation: hero-in 1s ease 1.3s both;
}

.hero__button:hover,
.hero__button:focus-visible {
	background: #4e3157;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(97, 63, 108, 0.45);
}

@keyframes hero-in {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__line,
	.hero__button { animation: none; }
}

@media (max-width: 960px) {
	.hero {
		--hero-size: clamp(26px, 8.4vw, 64px);
		padding-left: 24px;
		align-items: flex-end; /* on phones the photo fills the screen: keep text below the face */
		padding-bottom: 6vh;
	}

	.hero__inner {
		padding: 16px 20px 20px 0;
		background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0));
	}
}

/* ------------------------------------------------------------------ */
/* Top navigation bar                                                 */
/* ------------------------------------------------------------------ */

.site-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--bar-height);
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 max(32px, 50% - 868px); /* logo and menu stay within the centred 1800px */
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	transition: height 0.3s ease, background 0.3s ease;
}

.site-bar.is-compact {
	/* height stays fixed: the start photo begins exactly below the bar */
	background: rgba(255, 255, 255, 0.95);
}

.site-bar__logo {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.site-bar__logo img {
	height: calc(var(--bar-height) - 20px);
	width: auto;
	transition: transform 250ms ease-out, height 0.3s ease;
}

.site-bar__logo:hover img {
	transform: scale(1.03);
}

.site-nav {
	margin-left: auto;
}

.site-nav__logo {
	display: none;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav > ul {
	display: flex;
	align-items: center;
	gap: 2px;
}

.site-nav li {
	position: relative;
}

.site-nav a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-nav a:visited {
	color: var(--text);
}

.site-nav a .fa {
	display: none; /* icons only in the mobile panel, like the old ShiftNav menu */
}

.site-nav a .fa.caret {
	display: inline-block;
	font-size: 9px;
	margin-left: 2px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
	color: var(--accent);
	border-bottom-color: var(--accent);
	text-decoration: none;
}

/* MEDIA drop-down */
.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	padding: 6px 0;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-nav .has-sub:hover > .sub-menu,
.site-nav .has-sub:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav .sub-menu a {
	border-bottom: 0;
	border-left: 3px solid transparent;
	padding: 9px 16px;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu a.is-current {
	border-left-color: var(--accent);
	background: rgba(97, 63, 108, 0.06);
}

.site-bar__toggle {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Sections                                                           */
/* ------------------------------------------------------------------ */

#main {
	padding-top: var(--bar-height);
}

.page-section {
	min-height: calc(100vh - var(--bar-height));
	padding: 32px 0 80px;
	box-sizing: border-box;
}

#start {
	min-height: calc(100vh - var(--bar-height));
}

/* the theme pulled content up under the old header; undo that */
.onepage .entry-content {
	margin: 0 100px 0 max(100px, 50% - 800px);
	max-width: 1200px;
	width: auto;
	min-height: 0;
	font-size: 1.5em; /* 24px body text; headings (em-based in the theme) scale with it */
	padding: 24px 28px;
	background: rgba(255, 255, 255, 0.6);
	box-sizing: border-box;
	animation: none;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}

.onepage .page-section.is-visible .entry-content {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.onepage .entry-content { transition: none; transform: none; }
}

.onepage .entry-content h1:first-child,
.onepage .entry-content h2:first-child {
	margin-top: 0;
}

.onepage .entry-content img {
	max-width: 100%;
	height: auto;
}

/* WordPress block bits the static pages relied on */
.wp-block-image,
.wp-block-gallery {
	margin: 0 0 1.5em;
}

.wp-block-image figcaption,
.wp-element-caption {
	font-size: 13px;
	font-style: italic;
	text-align: center;
	margin-top: 6px;
}

.wp-block-embed {
	margin: 0 0 1.5em;
}

.wp-block-embed__wrapper {
	position: relative;
	padding-top: 56.25%;
}

.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
	padding-top: 75%;
}

.wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.wp-block-pullquote {
	margin: 1.5em 0;
	padding: 1.5em 0;
	border-top: 3px solid var(--accent);
	border-bottom: 3px solid var(--accent);
	text-align: center;
}

.wp-block-pullquote blockquote {
	margin: 0;
	font-size: 1.15em;
}

.wp-block-pullquote cite {
	display: block;
	margin-top: 0.6em;
	font-size: 13px;
	font-style: normal;
	text-transform: uppercase;
	color: var(--accent);
}

.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 1.5em;
}

.wp-block-file__button,
.wp-block-file__button:visited {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 2px;
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

.wp-block-file__button:hover {
	color: #fff;
	text-decoration: none;
	opacity: 0.9;
}

/* image gallery: wrap instead of fixed floats */
.onepage .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
	margin: 0 0 1.5em;
}

.onepage .gallery br,
.onepage .gallery::before,
.onepage .gallery::after {
	display: none; /* theme clearfix + WordPress row-break spacers would become empty grid cells */
}

.onepage .gallery-item {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
}

.onepage .gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* contact form */
/* ------------------------------------------------------------------ */
/* Content components                                                 */
/* ------------------------------------------------------------------ */

.onepage .entry-content h2 {
	font-size: 1.6em;
	margin: 0 0 0.6em;
}

.onepage .entry-content h3 {
	font-size: 1.1em;
}

.onepage .entry-content .subhead {
	margin: 1.8em 0 0.7em;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8em;
}

.lead {
	font-size: 1.1em;
	line-height: 1.5;
}

/* buttons used inside the content */
.onepage .entry-content .button,
.onepage .entry-content .button:visited {
	display: inline-block;
	padding: 0.55em 1.3em;
	border: 2px solid var(--accent);
	border-radius: 2px;
	background: var(--accent);
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.onepage .entry-content .button:hover,
.onepage .entry-content .button:focus-visible {
	background: #4e3157;
	border-color: #4e3157;
	color: #fff;
	transform: translateY(-1px);
}

.onepage .entry-content .button--ghost,
.onepage .entry-content .button--ghost:visited {
	background: transparent;
	color: var(--accent);
}

.onepage .entry-content .button--ghost:hover {
	background: var(--accent);
	color: #fff;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1.2em;
}

/* client names under the intro */
.clients-label {
	margin: 1.4em 0 0.4em;
	font-size: 0.6em;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #777;
}

.onepage .clients {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.4em;
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #555;
}

/* programme cards */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 1em;
}

.card {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	font-size: 0.7em; /* ~17px inside the 24px content */
}

.card > a {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card > a:hover img {
	transform: scale(1.04);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 22px;
}

.onepage .card h3 {
	margin: 0;
	font-size: 1.35em;
}

.card__tagline {
	margin: 0 0 0.8em;
	color: var(--accent);
	font-style: italic;
}

.card__facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	margin: 0.4em 0 1.2em;
	font-size: 0.92em;
}

.card__facts dt {
	font-weight: 700;
}

.card__facts dd {
	margin: 0;
}

.onepage .card .button {
	margin-top: auto;
	align-self: flex-start;
	font-size: 0.85em;
}

/* occasions */
.onepage .occasions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75em;
}

.occasions li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.85);
	border-left: 3px solid var(--accent);
}

.occasions .fa {
	color: var(--accent);
	width: 18px;
	text-align: center;
}

/* testimonials */
.onepage .quote {
	margin: 0;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.88);
	border-left: 3px solid var(--accent);
}

.onepage .quote blockquote {
	margin: 0;
	padding: 0;
	font-style: italic;
}

.onepage .quote blockquote::before,
.onepage .quote blockquote::after {
	content: none;
}

.onepage .quote blockquote p {
	margin: 0;
}

.onepage .quote blockquote p::before { content: "„"; }
.onepage .quote blockquote p::after { content: "“"; }

.onepage .quote figcaption {
	margin-top: 0.6em;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent);
}

.onepage .quote--featured {
	margin-bottom: 20px;
	padding: 24px 28px;
	font-size: 1.15em;
}

.quotes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 14px;
	font-size: 0.8em;
}

.client-list {
	font-size: 0.75em;
	line-height: 1.8;
}

/* media */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 12 photos = 3 full rows */
	gap: 8px;
}

.photo-grid a {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.photo-grid img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.4s ease;
	opacity: 0.92;
}

.photo-grid a:hover img {
	transform: scale(1.05);
	opacity: 1;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.video-grid figure {
	margin: 0;
}

.video-grid figcaption {
	margin-top: 6px;
	font-size: 0.7em;
}

.onepage .press {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.press a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	color: var(--text);
}

.press a:hover {
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.press img {
	width: 96px;
	height: 72px;
	object-fit: cover;
	flex: 0 0 auto;
}

.press span {
	font-size: 0.75em;
	font-weight: 700;
}

.press small {
	display: block;
	font-weight: 400;
	color: #666;
}

.onepage .press-files {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75em;
	line-height: 2;
}

/* FAQ */
.faq details {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.faq summary {
	cursor: pointer;
	padding: 0.7em 2em 0.7em 0;
	position: relative;
	font-weight: 700;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	position: absolute;
	right: 0.3em;
	top: 0.55em;
	color: var(--accent);
	font-size: 1.2em;
	transition: transform 0.2s ease;
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq details p {
	margin: 0 0 1em;
	font-size: 0.85em;
}

/* contact form */
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
	font-size: 0.75em;
}

.form-grid label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 700;
}

.form-grid__wide {
	grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 2px solid #d8d2c0;
	background: #fff;
	font: inherit;
	font-weight: 400;
	color: var(--text);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
	border-color: var(--accent);
	outline: 0;
}

.contact-form input[type="submit"] {
	margin-top: 1em;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.contact-direct {
	margin-top: 1.4em;
	font-size: 0.85em;
	line-height: 1.9;
}

.contact-direct .fa {
	color: var(--accent);
	width: 20px;
}

/* hero: one-line pitch under the headline */
.hero__pitch {
	max-width: 30em;
	margin: -2vh 0 3.5vh var(--hero-indent);
	font-size: clamp(16px, min(1.35vw, 2.4vh), 22px);
	line-height: 1.5;
	color: var(--text);
	animation: hero-in 1s ease 1.1s both;
}

@media (prefers-reduced-motion: reduce) {
	.hero__pitch { animation: none; }
}

@media (max-width: 960px) {
	.hero__pitch {
		margin-left: 0;
		max-width: 22em;
	}
}

@media (max-width: 960px) {
	.photo-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.more-link {
	font-size: 0.75em;
}

@media (max-width: 600px) {
	/* on phones the headline sits over the photo: the pitch would push it onto the face */
	.hero__pitch {
		display: none;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.quotes,
	.video-grid {
		grid-template-columns: 1fr;
	}

	.photo-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.card {
		font-size: 0.85em;
	}
}

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

.onepage .site-footer {
	background: #fff;
	color: var(--text);
	font-size: 13px;
	text-align: center;
}

.onepage .site-footer a,
.onepage .site-footer a:visited {
	color: var(--accent);
}

.onepage .site-info {
	padding: 14px 16px;
}

/* ------------------------------------------------------------------ */
/* Tablet / phone                                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 1400px) {
	.site-nav a {
		padding: 10px 9px;
		font-size: 14px;
	}
}

/* menu button + slide-in panel (the 16px links need ~1180px in one row) */
@media (max-width: 1180px) {
	:root { --bar-height: 64px; }

	.site-bar {
		padding: 0 16px;
		/* backdrop-filter would make the bar the containing block of the fixed menu panel */
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: rgba(255, 255, 255, 0.95);
	}

	.site-bar__toggle {
		display: block;
		margin-left: auto;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: #020202;
		font-size: 24px;
		cursor: pointer;
	}

	.site-bar__toggle:active {
		padding: 0;
		border: 0;
	}

	/* slide-in panel in the style of the old ShiftNav menu */
	.site-nav {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(290px, 85vw);
		margin: 0;
		overflow-y: auto;
		background: var(--panel);
		color: #eee;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
	}

	.site-nav.is-open {
		transform: translateX(0);
	}

	.site-nav__logo {
		display: block;
		width: 100%;
		height: auto;
		padding: 10px;
		box-sizing: border-box;
	}

	.site-nav > ul {
		display: block;
	}

	.site-nav a,
	.site-nav a:visited {
		color: #eee;
		font-weight: 400;
		padding: 14px 20px;
		border-top: 1px solid #292929;
		border-bottom: 1px solid #111;
		gap: 12px;
	}

	.site-nav a .fa {
		display: inline-block;
		width: 16px;
		text-align: center;
	}

	.site-nav a .fa.caret {
		display: none;
	}

	.site-nav a:hover,
	.site-nav a:focus-visible,
	.site-nav a.is-current {
		color: #eee;
		background: var(--accent);
		border-bottom-color: #111;
	}

	.site-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		padding: 0;
		background: var(--panel-sub);
		box-shadow: none;
	}

	.site-nav .sub-menu a,
	.site-nav .sub-menu a:visited {
		color: #999;
		padding-left: 50px;
		border-left: 0;
		border-top-color: rgba(255, 255, 255, 0.05);
		border-bottom-color: rgba(0, 0, 0, 0.15);
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu a.is-current {
		color: #eee;
		background: var(--accent);
	}

	.nav-backdrop {
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(0, 0, 0, 0.35);
	}

	.site-nav a,
	.site-nav a:visited {
		font-size: 16px;
	}
}

@media (max-width: 960px) {
	.onepage .entry-content {
		margin: 0 auto;
		max-width: 1200px;
	}

	.page-section {
		padding: 32px 16px 56px;
	}

	.bg-layer {
		background-position: 70% center;
	}
}

@media (max-width: 600px) {
	.onepage .entry-content {
		font-size: 1.2em; /* 1.5em is too large for a phone screen */
		padding: 18px 16px;
		background: rgba(255, 255, 255, 0.78);
	}

}

/* ------------------------------------------------------------------ */
/* YouTube click-to-load: a local preview image until someone clicks   */
/* play, so YouTube is only contacted with the visitor's consent.      */
/* ------------------------------------------------------------------ */

.onepage .yt,
.onepage .yt:active {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}

.yt img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.88;
	transition: opacity 0.3s ease, transform 0.4s ease;
}

.yt:hover img,
.yt:focus-visible img {
	opacity: 1;
	transform: scale(1.03);
}

.yt__icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: rgba(97, 63, 108, 0.92);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, background 0.2s ease;
}

.yt__icon::after {
	content: "";
	position: absolute;
	left: 29px;
	top: 22px;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent #fff;
}

.yt:hover .yt__icon,
.yt:focus-visible .yt__icon {
	transform: scale(1.08);
	background: #4e3157;
}

.yt__note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
}

.elastic-video noscript a {
	position: absolute;
	inset: auto 0 0;
	padding: 6px;
	background: #fff;
	text-align: center;
}

/* contact form: honeypot, privacy note, send status */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-privacy {
	margin: 1em 0 0;
	font-size: 0.6em;
	color: #666;
}

.form-status:empty {
	display: none;
}

.form-status {
	margin-top: 1em;
	padding: 14px 18px;
	font-size: 0.8em;
	border-left: 3px solid var(--accent);
	background: rgba(255, 255, 255, 0.92);
}

.form-status.is-error {
	border-left-color: #b3261e;
}

.contact-form.is-sent .form-grid,
.contact-form.is-sent .form-privacy,
.contact-form.is-sent [type="submit"] {
	display: none;
}

/* "Über David" at a glance */
.onepage .facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 8px 20px;
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
	font-size: 0.75em;
}

.onepage .facts li {
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.85);
	border-left: 3px solid var(--accent);
}

/* ------------------------------------------------------------------ */
/* Lightbox (native <dialog>, replaces jQuery + Swipebox)              */
/* ------------------------------------------------------------------ */

html.lightbox-open {
	overflow: hidden;
}

.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(12, 10, 14, 0.94);
	color: #fff;
}

.lightbox::backdrop {
	background: rgba(12, 10, 14, 0.6);
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 56px 72px 48px;
	box-sizing: border-box;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100% - 40px);
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.lightbox__img.is-loaded {
	opacity: 1;
}

.lightbox__caption {
	margin-top: 12px;
	font-size: 15px;
	text-align: center;
	color: #ddd;
}

.onepage .lightbox__btn,
.onepage .lightbox__btn:active {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font: 400 32px/1 "Lato", arial, sans-serif;
	cursor: pointer;
	transition: background 0.2s ease;
}

.onepage .lightbox__btn:hover,
.onepage .lightbox__btn:focus-visible {
	background: var(--accent);
}

.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 12px; top: 50%; margin-top: -24px; }
.lightbox__btn[hidden] { display: none !important; }

.lightbox__count {
	position: absolute;
	top: 22px;
	left: 0;
	right: 0;
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-align: center;
	color: #aaa;
	pointer-events: none;
}

@media (max-width: 600px) {
	.lightbox__figure {
		padding: 56px 8px 40px;
	}

	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 10px;
		margin-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lightbox[open] { animation: none; }
	.lightbox__img { transition: none; }
}

/* ------------------------------------------------------------------ */
/* Leading image of a section: spans the full width of the white box  */
/* (bleeds over its padding). --pos = object-position for narrow crops */
/* ------------------------------------------------------------------ */
.onepage .entry-content .section-image {
	position: relative;
	margin: -24px -28px -48px; /* the heading moves up into the fade */
	aspect-ratio: 11 / 5;
	overflow: hidden;
	/* fade out at the bottom so the photo melts into the white box */
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

/* wash out to white first, so the page background doesn't ghost through */
.onepage .entry-content .section-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to bottom, transparent 40%, rgba(255, 255, 255, 0.85) 92%);
	pointer-events: none;
}

/* purple tint in the page accent colour */
.onepage .entry-content .section-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(97, 63, 108, 0.55), rgba(97, 63, 108, 0.35));
	mix-blend-mode: color;
	pointer-events: none;
}

.onepage .entry-content .section-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
	filter: saturate(0.75) contrast(1.05);
}

.onepage .entry-content .section-image + h2 {
	position: relative;
	margin-top: 0;
}

@media (max-width: 600px) {
	.onepage .entry-content .section-image {
		margin: -18px -16px -28px;
		aspect-ratio: 16 / 10; /* taller on phones, cropped sideways */
	}

	.onepage .entry-content .section-image img {
		object-position: var(--pos, 50% 50%);
	}
}
