/*
 * Content Up — interaction & motion layer.
 * Tokens come from theme.json (CSS custom properties); nothing brand-specific
 * is hardcoded here.
 */

/* --- Brand logo --------------------------------------------------------
 * Icon-only in the header (the official stacked lockup lives in the hero).
 * fill:currentColor — white on the black bar, accent green on hover.
 */

.cu-logo {
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--contrast);
	line-height: 0;
}

.cu-logo__icon {
	display: block;
	width: auto;
	transition: color var(--wp--custom--motion--duration-base) var(--wp--custom--motion--ease);
}

/* Header mark. */
.cu-logo--header .cu-logo__icon {
	height: 2.625rem; /* 42px */
}

/* Footer / standalone mark. */
.cu-logo--mark .cu-logo__icon {
	height: 2rem;
}

.cu-logo:hover .cu-logo__icon,
.cu-logo:focus-visible .cu-logo__icon {
	color: var(--wp--preset--color--accent-green);
}

/* --- Sticky, condensing header -----------------------------------------
 * The header sticks to the top and, once the page is scrolled, gains a
 * translucent blurred backdrop and tighter padding so the logo stays
 * present without crowding the content. State is toggled by motion.js.
 */

/* Sticky must sit on the template-part wrapper (<header class="wp-block-template-part">),
 * whose parent (.wp-site-blocks) spans the full page height. The inner .cu-header group
 * carries the visual state; pinning it directly would fail because its own parent (the
 * wrapper) is only as tall as the header itself.
 */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.cu-header {
	position: relative;
	transition: padding var(--wp--custom--motion--duration-base) var(--wp--custom--motion--ease);
}

/* The translucent blur veil lives on a pseudo-element: backdrop-filter on the
 * header itself makes it the containing block for fixed-position descendants
 * (CSS Filter Effects §3) — the mobile nav overlay then pins to the 64px
 * header box instead of the viewport and the menu items lose their backdrop.
 */
.cu-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(0, 0, 0, 0.72);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity var(--wp--custom--motion--duration-base) var(--wp--custom--motion--ease);
}

.cu-header--scrolled::before {
	opacity: 1;
}

.cu-header--scrolled {
	padding-top: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--20);
}

.cu-header--scrolled .cu-logo__icon {
	height: 2rem;
}

/* Home: the hero slides behind the transparent header — logo/nav float on
 * the photo, so there is no visible "bar" whose centering the eye could
 * question (the near-black photo top made the real 74px bar look taller).
 * The blur veil still fades in on scroll. Header height = 2rem padding
 * + 2.625rem mark = 4.625rem.
 */
.home .wp-site-blocks > header.wp-block-template-part {
	margin-bottom: -4.625rem;
}

/* The root blockGap would still push main 24px below the header. */
.home .wp-site-blocks > main {
	margin-block-start: 0;
}

.home .cu-hero {
	padding-top: calc(var(--wp--preset--spacing--60) + 4.625rem);
}

/* Browsers without backdrop-filter get a near-opaque bar instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.cu-header::before {
		background-color: rgba(0, 0, 0, 0.92);
	}
}

/* --- Hover states ----------------------------------------------------- */

.wp-block-image img {
	transition: transform var(--wp--custom--motion--duration-slow) var(--wp--custom--motion--ease);
}

.wp-block-image:hover img {
	transform: scale(1.025);
}

.wp-element-button {
	transition:
		background-color var(--wp--custom--motion--duration-base) var(--wp--custom--motion--ease),
		color var(--wp--custom--motion--duration-base) var(--wp--custom--motion--ease),
		transform var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--ease);
}

.wp-element-button:hover {
	transform: translateY(-2px);
}

a {
	transition: color var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--ease);
}

/* Images never spill while scaling on hover. */
.wp-block-image {
	overflow: hidden;
}

/* --- Hero: official lockup centered over darkened photo -----------------
 * The photo is texture only (flat 78% black overlay); the stacked lockup
 * (icon + wordmark, matching the brand's "Komplett" logo) is the centerpiece.
 * Photo stays the LCP image: fetchpriority=high, never lazy, animation is
 * transform-only so it cannot shift layout.
 */

.cu-hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(38rem, 96vh, 56rem);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	isolation: isolate;
	padding-block: var(--wp--preset--spacing--60);
	padding-inline: var(--wp--preset--spacing--40);
}

.cu-hero__media {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
}

.cu-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	animation: cu-kenburns 14s var(--wp--custom--motion--ease) alternate infinite;
}

@keyframes cu-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.06); }
}

/* Flat dark veil — the photo is mood, not message. */
.cu-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.78);
}

.cu-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	max-width: 52rem;
	width: 100%;
}

.cu-hero__content > * {
	margin-block: 0;
}

/* Official stacked lockup (icon above wordmark), built from the two clean
 * SVGs — logo-komplett-weiss.svg has huge padding in its viewBox. */
.cu-hero__lockup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(0.9rem, 2vh, 1.25rem);
	color: var(--wp--preset--color--contrast);
	line-height: 0;
	animation: cu-lockup-in 700ms var(--wp--custom--motion--ease) both;
}

.cu-hero__lockup-icon {
	height: clamp(4.5rem, 13vh, 7.5rem);
	width: auto;
	display: block;
}

.cu-hero__lockup-word {
	width: clamp(11rem, 24vw, 15rem);
	height: auto;
	display: block;
}

@keyframes cu-lockup-in {
	from { opacity: 0; transform: scale(0.92); }
	to { opacity: 1; transform: none; }
}

.cu-hero__title {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.02;
	margin: 0;
}

.cu-hero__title mark,
.cu-hero h1 mark {
	background: none;
	color: var(--wp--preset--color--accent-green);
}

/* Headline words rise one after the other, then the button. */
.cu-hero__w {
	display: inline-block;
	animation: cu-rise 600ms var(--wp--custom--motion--ease) both;
}

.cu-hero__w:nth-child(1) { animation-delay: 250ms; }
.cu-hero__w:nth-child(2) { animation-delay: 330ms; }
.cu-hero__w:nth-child(4) { animation-delay: 410ms; }
.cu-hero__w:nth-child(5) { animation-delay: 490ms; }

.cu-hero__content > .wp-block-buttons {
	animation: cu-rise 600ms var(--wp--custom--motion--ease) both;
	animation-delay: 650ms;
}

@keyframes cu-rise {
	from { opacity: 0; transform: translateY(1.25rem); }
	to { opacity: 1; transform: none; }
}

.cu-hero__cue {
	position: absolute;
	left: 50%;
	bottom: var(--wp--preset--spacing--40);
	z-index: 2;
	font-size: 1.5rem;
	color: var(--wp--preset--color--contrast);
	transform: translateX(-50%);
	animation: cu-bob 1.8s var(--wp--custom--motion--ease) infinite;
}

@keyframes cu-bob {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Cards: services + project (work) ----------------------------------
 * Both use a stretched link (one anchor's ::after covers the card) so the
 * whole box is clickable while the inner blocks stay normal, editable blocks.
 */

.cu-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--50);
	transition:
		transform var(--wp--custom--motion--duration-base) var(--wp--custom--motion--ease),
		border-color var(--wp--custom--motion--duration-base) var(--wp--custom--motion--ease);
}

.cu-card:hover,
.cu-card:focus-within {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--accent-green);
}

.cu-card__link {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.cu-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Project / work cards — image-led, no chrome. */
.cu-work-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: var(--wp--preset--spacing--40);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cu-card--work {
	background: none;
	border: none;
	padding: 0;
	overflow: hidden;
}

.cu-card--work .cu-card__media {
	margin: 0;
	overflow: hidden;
}

.cu-card--work .cu-card__media img {
	width: 100%;
	transition: transform var(--wp--custom--motion--duration-slow) var(--wp--custom--motion--ease);
}

.cu-card--work:hover .cu-card__media img {
	transform: scale(1.04);
}

.cu-card--work .wp-block-post-title {
	margin: 0;
}

.cu-card--work .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* The title link stretches over the whole card. */
.cu-card--work .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cu-card--work:hover .wp-block-post-title a {
	color: var(--wp--preset--color--accent-green);
}

.cu-card--work .cu-card__tag {
	margin: 0;
}

/* Category tags are post-terms, which render as <a>; stop them inheriting the
 * purple link colour / underline so they read as the green label they should. */
.cu-card__tag a,
.cu-project-hero .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

/* --- Project single ----------------------------------------------------- */

.cu-project-hero {
	padding-inline: clamp(1.5rem, 6vw, 6rem);
}

.cu-project-hero .wp-block-post-title {
	margin: 0;
}

.cu-project-hero .wp-block-post-terms {
	margin-bottom: var(--wp--preset--spacing--20);
}

/* Services cards grid. Explicit columns (auto-fit created a phantom 0px
 * track), and the WP flow-layout sibling margins must be zeroed or cards
 * 2+3 hang 24px lower inside their grid cells than card 1. */
.cu-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.cu-services-grid > * {
	margin-block-start: 0;
}

@media (max-width: 781px) {
	.cu-services-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Accent word in headings (the green <mark>) ------------------------- */

.wp-block-heading mark {
	background: none;
	color: var(--wp--preset--color--accent-green);
}

/* --- Outline button (e.g. "View all work") ----------------------------- */

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-green);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--accent-green);
}

/* --- Long-form prose: a touch more air ---------------------------------- */

.cu-prose p {
	font-size: 1.125rem;
	line-height: 1.75;
}

/* --- Scroll reveal ------------------------------------------------------
 * The .reveal class is added by reveal.js ONLY to elements below the fold,
 * so content stays visible without JS and the LCP image is never hidden.
 */

.reveal {
	opacity: 0;
	transform: translateY(2.5rem);
	transition:
		opacity 700ms var(--wp--custom--motion--ease),
		transform 700ms var(--wp--custom--motion--ease);
	transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* --- Marquee ticker ------------------------------------------------------
 * Two identical children + translateX(-50%) = seamless infinite loop.
 * Spacing must live inside the children (padding/separator), not as flex
 * gap, or the -50% point no longer matches a full repeat.
 * Reduced motion: the global kill-switch freezes it at its start position.
 */

.cu-marquee {
	overflow: hidden;
}

.cu-marquee__track {
	display: flex;
	width: max-content;
	animation: cu-marquee 26s linear infinite;
	will-change: transform;
}

.cu-marquee__track > span {
	white-space: nowrap;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.1;
	font-size: clamp(2.75rem, 7vw, 5.5rem);
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

@keyframes cu-marquee {
	to { transform: translateX(-50%); }
}

/* --- Manifesto word fill --------------------------------------------------
 * Without JS the heading is plain white (and the <mark> green). fx.js adds
 * .cu-fill--js, which greys the words; scroll progress then switches them
 * .is-on one by one.
 */

.cu-fill mark {
	background: none;
	color: var(--wp--preset--color--accent-green);
}

.cu-fill--js .cu-fill__word {
	color: #3a3a3a;
	transition: color 350ms var(--wp--custom--motion--ease);
}

.cu-fill--js .cu-fill__word.is-on {
	color: var(--wp--preset--color--contrast);
}

.cu-fill--js mark.cu-fill__word.is-on {
	color: var(--wp--preset--color--accent-green);
}

/* --- Horizontal work panel ------------------------------------------------
 * fx.js activates this ONLY on >=1024px without reduced motion: the section
 * gets a tall JS-set height, the inner panel goes sticky, and the card row
 * translates horizontally with scroll progress. Everything is gated behind
 * .cu-hwork--active, so no-JS / mobile / reduced-motion keep the grid.
 */

.cu-hwork--active {
	padding-block: 0 !important;
}

.cu-hwork--active .cu-hwork__sticky {
	position: sticky;
	top: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	padding-block: var(--wp--preset--spacing--50);
}

.cu-hwork--active .cu-work-grid .wp-block-post-template {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--40);
	will-change: transform;
}

.cu-hwork--active .cu-work-grid .wp-block-post-template > li {
	flex: 0 0 clamp(20rem, 34vw, 30rem);
}

/* --- About: intro split + story ------------------------------------------ */

/* Short statement + calm lead — the description reads at body size instead
 * of shouting a 26-word sentence at headline scale. */
.cu-statement {
	font-size: clamp(2rem, 3.8vw, 3rem);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.05;
	margin: 0 0 var(--wp--preset--spacing--30);
}

.cu-statement mark {
	background: none;
	color: var(--wp--preset--color--accent-green);
}

.cu-lead-body {
	color: var(--wp--preset--color--grey);
	font-size: 1.125rem;
	line-height: 1.7;
	margin: 0;
}

.cu-lead-body strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

/* Founder portrait placeholder — swapped for a real photo later. */
.cu-portrait-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--30);
	aspect-ratio: 3 / 4;
	background: var(--wp--preset--color--surface);
	border: 1px solid #1f1f1f;
	color: var(--wp--preset--color--grey);
}

.cu-portrait-slot svg {
	height: 4rem;
	width: auto;
	opacity: 0.4;
}

.cu-portrait-slot span {
	font-size: var(--wp--preset--font-size--tag);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	font-weight: 500;
}

.cu-pullquote {
	border-left: 3px solid var(--wp--preset--color--accent-green);
	padding-left: var(--wp--preset--spacing--40);
	margin-block: var(--wp--preset--spacing--40);
}

.cu-pullquote p {
	/* Deliberately below the 60px section headings — the quote is a beat,
	 * not a second heading. */
	font-size: clamp(1.5rem, 2.8vw, 2.25rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}

.cu-pullquote cite {
	display: block;
	margin-top: var(--wp--preset--spacing--30);
	font-style: normal;
	color: var(--wp--preset--color--grey);
	font-size: var(--wp--preset--font-size--small);
}

/* --- About: timeline ------------------------------------------------------
 * Fully visible by default (no-JS). fx.js adds .cu-timeline--js (hide) and
 * .is-inview (draw line, stagger items in).
 */

.cu-timeline {
	position: relative;
	list-style: none;
	margin: 0 auto;
	padding: 0 0 0 2rem;
}

.cu-timeline::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4rem;
	bottom: 0.4rem;
	width: 2px;
	background: var(--wp--preset--color--accent-green);
	transform-origin: top;
	transition: transform 900ms var(--wp--custom--motion--ease);
}

.cu-timeline > li {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-block: var(--wp--preset--spacing--30);
	transition:
		opacity 600ms var(--wp--custom--motion--ease),
		transform 600ms var(--wp--custom--motion--ease);
}

.cu-timeline__year {
	color: var(--wp--preset--color--accent-green);
	font-size: var(--wp--preset--font-size--tag);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	font-weight: 500;
}

.cu-timeline__title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.cu-timeline__text {
	color: var(--wp--preset--color--grey);
}

/* JS-armed states. */
.cu-timeline--js:not(.is-inview)::before {
	transform: scaleY(0);
}

.cu-timeline--js:not(.is-inview) > li {
	opacity: 0;
	transform: translateY(1rem);
}

.cu-timeline--js.is-inview > li:nth-child(1) { transition-delay: 150ms; }
.cu-timeline--js.is-inview > li:nth-child(2) { transition-delay: 350ms; }
.cu-timeline--js.is-inview > li:nth-child(3) { transition-delay: 550ms; }
.cu-timeline--js.is-inview > li:nth-child(4) { transition-delay: 750ms; }

/* --- About: stats ---------------------------------------------------------- */

.cu-stats {
	background: var(--wp--preset--color--surface);
}

.cu-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
	margin: 0 auto;
	text-align: center;
}

@media (max-width: 781px) {
	.cu-stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.cu-stats__num {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 900;
	color: var(--wp--preset--color--accent-green);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.cu-stats__label {
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--grey);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
}

/* --- About: values rows ----------------------------------------------------- */

.cu-values__rows {
	margin: 0 auto;
}

.cu-values__row {
	display: grid;
	grid-template-columns: 4rem 10rem 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: baseline;
	padding-block: var(--wp--preset--spacing--40);
	border-top: 1px solid #1f1f1f;
}

@media (max-width: 781px) {
	.cu-values__row {
		grid-template-columns: 3rem 1fr;
	}

	.cu-values__row .cu-values__text {
		grid-column: 2;
	}
}

.cu-values__num {
	color: var(--wp--preset--color--accent-green);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--tag);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
}

.cu-values__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.cu-values__text {
	margin: 0;
	color: var(--wp--preset--color--grey);
}

/* --- About: photo marquee ---------------------------------------------------
 * Fixed strip height -> zero layout shift even without width/height attrs.
 */

.cu-photo-marquee .cu-marquee__track {
	animation-duration: 45s;
}

.cu-photo-marquee__half {
	display: flex;
}

.cu-photo-marquee__half img {
	height: clamp(11rem, 28vh, 16rem);
	width: auto;
	display: block;
	margin-right: var(--wp--preset--spacing--30);
}

/* --- Archive title (project archive) -------------------------------------
 * The default h1 preset (~120px fluid) turns a nine-word title into a wall
 * inside the content column — bounded clamp, wide container, green mark.
 */

.cu-archive-title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.02;
	margin: 0;
}

.cu-archive-title mark {
	background: none;
	color: var(--wp--preset--color--accent-green);
}

/* --- Services page: numbered service rows --------------------------------- */

.cu-svc-rows {
	margin-inline: auto;
}

.cu-svc-row {
	display: grid;
	grid-template-columns: minmax(15rem, 1fr) 2fr;
	gap: var(--wp--preset--spacing--50);
	border-top: 1px solid #1f1f1f;
	padding-block: var(--wp--preset--spacing--50);
}

.cu-svc-num {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--accent-green);
	font-size: var(--wp--preset--font-size--tag);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	font-weight: 500;
}

.cu-svc-row h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
}

.cu-svc-desc {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--grey);
	font-size: 1.125rem;
	line-height: 1.7;
}

.cu-svc-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cu-svc-list li {
	position: relative;
	padding-left: 1.5rem;
	font-weight: 500;
	line-height: 1.5;
}

.cu-svc-list li::before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--accent-green);
	font-weight: 700;
}

@media (max-width: 781px) {
	.cu-svc-row {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--30);
	}

	.cu-svc-list {
		grid-template-columns: 1fr;
	}
}

/* --- Contact page: studio/direct split ------------------------------------ */

.cu-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--50);
	border-top: 1px solid #1f1f1f;
	padding-top: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--50);
	max-width: 46rem;
}

.cu-contact-meta {
	margin: 0;
	color: var(--wp--preset--color--grey);
	line-height: 1.9;
}

.cu-contact-grid a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 500;
}

.cu-contact-grid a:hover,
.cu-contact-grid a:focus-visible {
	color: var(--wp--preset--color--accent-green);
}

.cu-contact-grid .cu-contact-mail {
	color: var(--wp--preset--color--accent-green);
	font-weight: 700;
}

.cu-contact-grid .cu-contact-mail:hover,
.cu-contact-grid .cu-contact-mail:focus-visible {
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 781px) {
	.cu-contact-grid {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40);
	}
}

/* --- Legal prose (Impressum / Datenschutz) --------------------------------
 * The only pages with bare headings/paragraphs as direct post-content
 * children. Bounded heading size: German single-word headings
 * ("Haftungsausschluss") cannot wrap and blew the 342px mobile column at
 * the fluid h2 size (measured 472px → 496px page width, sideways drag).
 */

.wp-block-post-content > h2 {
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	line-height: 1.2;
	overflow-wrap: anywhere;
	border-top: 1px solid #1f1f1f;
	padding-top: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-post-content > h2:first-child {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.wp-block-post-content > p {
	color: var(--wp--preset--color--grey);
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.wp-block-post-content > p strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.wp-block-post-content > p a {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration-color: var(--wp--preset--color--accent-green);
	text-underline-offset: 3px;
}

.wp-block-post-content > p a:hover,
.wp-block-post-content > p a:focus-visible {
	color: var(--wp--preset--color--accent-green);
}

/* --- Footer ---------------------------------------------------------------
 * Four slim columns, a giant outlined wordmark as the page's brand sign-off
 * (same stroke treatment as the marquee), and a hairline meta row.
 */

.cu-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--wp--preset--spacing--50);
	margin-inline: auto;
}

.cu-footer-grid a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.cu-footer-grid a:hover,
.cu-footer-grid a:focus-visible {
	color: var(--wp--preset--color--accent-green);
}

.cu-footer-brand p {
	margin: var(--wp--preset--spacing--30) 0;
	color: var(--wp--preset--color--grey);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.cu-footer-grid .cu-footer-mail {
	color: var(--wp--preset--color--accent-green);
	font-weight: 700;
}

.cu-footer-grid .cu-footer-mail:hover,
.cu-footer-grid .cu-footer-mail:focus-visible {
	color: var(--wp--preset--color--contrast);
}

.cu-footer-col {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	align-items: flex-start;
}

.cu-footer-col a {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--small);
}

.cu-footer-label,
.cu-microlabel {
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--accent-green);
	font-size: var(--wp--preset--font-size--tag);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	font-weight: 500;
}

/* Decorative sign-off. Sized so one line always fits the viewport
 * (10 glyphs ≈ 7.5em at 900 weight). */
.cu-footer-big {
	font-weight: 900;
	text-transform: uppercase;
	line-height: 0.95;
	text-align: center;
	white-space: nowrap;
	font-size: clamp(2.75rem, 11vw, 9rem);
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
	pointer-events: none;
	user-select: none;
}

.cu-footer-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	border-top: 1px solid #1f1f1f;
	padding-top: var(--wp--preset--spacing--30);
	margin-inline: auto;
	color: var(--wp--preset--color--grey);
	font-size: var(--wp--preset--font-size--tag);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
}

.cu-footer-meta mark {
	background: none;
	color: var(--wp--preset--color--accent-green);
}

.cu-footer-meta a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.cu-footer-meta a:hover,
.cu-footer-meta a:focus-visible {
	color: var(--wp--preset--color--accent-green);
}

@media (max-width: 781px) {
	.cu-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--40);
	}

	.cu-footer-brand {
		grid-column: 1 / -1;
	}

	.cu-footer-meta {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
}

/* Smooth back-to-top jump; the reduced-motion kill-switch resets this to auto. */
html {
	scroll-behavior: smooth;
}

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
