/*!
Theme Name: empadtheme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: empadtheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

empadtheme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


/* Agency FB is a Windows font with no free web version; visitors without it get Saira Condensed.
   Saira is for small text (specs), where Agency FB is too thin to read. */
@import url("https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700;800&family=Saira:wght@400;500&display=swap");

/* ---------- Tokens ---------- */
:root {
	--purple-dark:  #552f77;   /* header */
	--purple-light: #70498e;   /* cards, active tab */
	--purple-text:  #6b4a94;   /* section headings on light pages */
	--purple-glow:  #a56ee0;   /* highlights and glows */
	--ink:          #120a1c;   /* page background */
	--ink-2:        #1d1029;
	--white:        #fff;
	--muted:        rgba(255, 255, 255, 0.62);
	--line:         rgba(255, 255, 255, 0.1);

	--font-display: "Agency FB", "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
	--font-body:    "Saira", "Segoe UI", system-ui, sans-serif;
	--content-width: 52rem;
	--wide-width:    76rem;
	--gap: 2rem;
	--radius: 6px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { height: 100%; }

body {
	margin: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	font-family: var(--font-display);
	color: var(--white);
	/* Dark background with one faint purple wash, on every page. */
	background:
		radial-gradient(70rem 40rem at 50% -10%, rgba(112, 73, 142, 0.25), transparent 70%),
		var(--ink);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility (keep from _s) ---------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

:focus-visible { outline: 2px solid var(--purple-glow); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: stretch;          /* nav runs the full header height */
	justify-content: space-between;
	padding: 0 1.5rem;
	background: var(--purple-dark);
	border-bottom: 6px solid var(--purple-light);
	box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.5);
}

.admin-bar .site-header { top: 32px; }

.site-logo { align-self: center; padding: 0.5rem 0; }
.site-logo img { height: 2.25rem; width: auto; }

/* Every level from <nav> down to the link stretches to the header height,
   so the active/hover background fills the whole tab and meets the border.
   `.site-nav > div` is WP's page-list fallback wrapper when no menu is assigned. */
.site-nav,
.site-nav > div,
.site-nav li { display: flex; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.site-nav__list a {
	display: flex;
	align-items: center;
	padding: 0.5rem 0.9rem;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	transition: background-color 0.25s var(--ease);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list a:hover { background: var(--purple-light); }

/* Menu button, only on small screens. */
.site-nav__toggle { display: none; }

@media (max-width: 700px) {
	.site-header { padding: 0 0.5rem 0 1rem; }
	.site-logo img { height: 2rem; }

	.site-nav__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 3rem;
		padding: 0;
		color: var(--white);
		background: none;
		border: 0;
		cursor: pointer;
	}

	/* Three bars that turn into a cross when the menu is open. */
	.site-nav__bars,
	.site-nav__bars::before,
	.site-nav__bars::after {
		display: block;
		width: 1.5rem;
		height: 2px;
		background: currentColor;
		transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
	}

	.site-nav__bars { position: relative; }
	.site-nav__bars::before,
	.site-nav__bars::after { content: ""; position: absolute; left: 0; }
	.site-nav__bars::before { top: -7px; }
	.site-nav__bars::after  { top: 7px; }

	.site-nav.toggled .site-nav__bars { background: transparent; }
	.site-nav.toggled .site-nav__bars::before { transform: translateY(7px) rotate(45deg); }
	.site-nav.toggled .site-nav__bars::after  { transform: translateY(-7px) rotate(-45deg); }

	/* The menu drops down under the header, full width. */
	.site-nav ul { display: none; }

	.site-nav.toggled ul {
		position: absolute;
		top: calc(100% + 6px);       /* below the header's border */
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		gap: 0;
		background: var(--purple-dark);
		border-bottom: 6px solid var(--purple-light);
		box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
	}

	.site-nav.toggled li { display: block; border-top: 1px solid var(--line); }
	.site-nav.toggled a { padding: 1rem 1.5rem; font-size: 1.1rem; }
}

/* ---------- Main ---------- */
.site-main {
	flex: 1;                       /* fills the screen height */
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 6rem 1rem 4rem;
}

/* ==========================================================
   Products page
   ========================================================== */

.products-page {
	max-width: var(--wide-width);
	padding: 3.5rem 1.5rem 6rem;
}

/* Page title, generated so the template doesn't need changing. */
.products-page::before {
	content: "Products";
	display: block;
	margin: 0 0 3rem;
	padding-bottom: 1rem;
	font-size: clamp(2.2rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--line);
}

/* ---------- Category sections ---------- */
.product-group {
	margin-bottom: 4rem;
}

.product-group__title {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	color: var(--white);
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}


/* ---------- Grid ---------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: var(--gap);
}

/* ---------- Card ---------- */
.product-card {
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1.25rem 1.25rem;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--purple-light) 0%, #4c2a6a 100%);
	position: relative;
	transition: border-color 0.25s var(--ease);
}

.product-card:hover { border-color: rgba(255, 255, 255, 0.35); }

/* The title link covers the whole card, so clicking anywhere opens the product. */
.product-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;                    /* above the image box, which is positioned too */
	border-radius: var(--radius);
}

.product-card__link:focus-visible { outline: none; }
.product-card:focus-within { outline: 2px solid var(--purple-glow); outline-offset: 2px; }

.product-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.product-card__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
}

.product-card__download {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.product-card__download:hover {
	background: var(--white);
	color: var(--purple-dark);
}

.product-card__download svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

/* Keeps the datasheet button clickable on top of the card link. */
.product-card__download { position: relative; z-index: 2; }

/* ---------- Product image ---------- */
/* Fixed 4:3 box; the image is taken out of the flow so a tall (portrait)
   image can't stretch the box or the card, it just scales down to fit. */
.product-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	margin: 1rem 0 1.25rem;
}

.product-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.3));
	transition: transform 0.3s var(--ease);
}

.product-card:hover .product-card__image img { transform: scale(1.06); }

/* ---------- Specs ---------- */
.product-card__specs {
	margin-top: auto;
	font-family: var(--font-body);
	font-size: 0.8rem;
	line-height: 1.35;
	font-variant-numeric: tabular-nums;
	border-top: 1px solid var(--line);
}

.product-card__specs li {
	padding: 0.55rem 0;
	color: var(--white);
	border-bottom: 1px solid var(--line);
}

.product-card__specs li:last-child { border-bottom: 0; padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.products-page { padding: 2rem 1rem 4rem; }
	.products-page::before { margin-bottom: 2rem; }
	.product-group { margin-bottom: 3rem; }
	.product-grid { gap: 1.25rem; }
}

/* ==========================================================
   Pages (About, Contact… anything built in the block editor)
   ========================================================== */

.page .site-main { padding-top: 3.5rem; }

/* Page title, styled like the "Products" heading. */
.entry-header {
	margin-bottom: 2.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.entry-title {
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Body copy in the readable font, at a comfortable line length. */
.entry-content {
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.85);
}

.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	color: var(--white);
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.entry-content h2 {
	margin: 2em 0 0.6em;
	font-size: 1.75rem;
	font-weight: 700;
}

/* Small accent bar above each section heading. */
.entry-content h2::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	margin-bottom: 0.75rem;
	background: var(--purple-light);
}

.entry-content > h2:first-child { margin-top: 0; }

.entry-content h3 { margin: 2em 0 0.5em; font-size: 1.35rem; font-weight: 600; }
.entry-content h4 { margin: 1.75em 0 0.5em; font-size: 1.1rem; font-weight: 600; }

.entry-content strong { color: var(--white); font-weight: 600; }

.entry-content a {
	color: var(--white);
	text-decoration: underline;
	text-decoration-color: var(--purple-glow);
	text-underline-offset: 0.2em;
}

.entry-content a:hover { text-decoration-color: var(--white); }

.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--purple-glow); }

.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--purple-light);
	font-style: italic;
	color: var(--white);
}

.entry-content hr {
	height: 1px;
	border: 0;
	background: var(--line);
	margin: 3em 0;
}

/* ---------- Images ---------- */
.entry-content figure { margin-left: 0; margin-right: 0; }

.entry-content img { border-radius: var(--radius); }

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 0.6em;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
}

.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .aligncenter img { margin: 0 auto; }

/* Images floated left or right let the text wrap around them. */
.entry-content .alignleft {
	float: left;
	max-width: 45%;
	margin: 0.35em 2em 1.25em 0;
}

.entry-content .alignright {
	float: right;
	max-width: 45%;
	margin: 0.35em 0 1.25em 2em;
}

/* Only a separator stops the wrap; headings can sit beside a floated image,
   so an image placed above or below a heading still wraps the text. */
.entry-content hr,
.entry-content .wp-block-separator { clear: both; }

/* Classic themes wrap aligned images in a div; keep it from adding a gap. */
.entry-content .wp-block-image:has(> .alignleft),
.entry-content .wp-block-image:has(> .alignright) { margin-bottom: 0; }

/* ---------- Columns and media & text ---------- */
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 2rem; }
.entry-content .wp-block-column { flex: 1 1 16rem; min-width: 0; }
.entry-content .wp-block-column > *:last-child { margin-bottom: 0; }

.entry-content .wp-block-media-text { gap: 2rem; }

/* Edit link (only visible when logged in). */
.entry-footer { margin-top: 3rem; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 600px) {
	.entry-content { font-size: 1rem; }
	.entry-content .alignleft,
	.entry-content .alignright { float: none; max-width: 100%; margin: 0 0 1.25em; }
}

/* ==========================================================
   Contact Form 7
   ("body" prefix so these win over the plugin's own stylesheet)
   ========================================================== */

body .wpcf7 { max-width: 40rem; }

body .wpcf7-form > p { margin: 0 0 1.25rem; }

body .wpcf7-form label {
	display: block;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--white);
}

/* CF7 puts a <br> between the label text and the field. */
body .wpcf7-form label br { display: none; }

body .wpcf7-form-control-wrap { display: block; margin-top: 0.4rem; }

body .wpcf7-form input[type="text"],
body .wpcf7-form input[type="email"],
body .wpcf7-form input[type="tel"],
body .wpcf7-form input[type="url"],
body .wpcf7-form input[type="number"],
body .wpcf7-form select,
body .wpcf7-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.4;
	color: var(--white);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

body .wpcf7-form textarea { min-height: 10rem; resize: vertical; }

body .wpcf7-form input::placeholder,
body .wpcf7-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

body .wpcf7-form input:hover,
body .wpcf7-form select:hover,
body .wpcf7-form textarea:hover { border-color: rgba(255, 255, 255, 0.35); }

body .wpcf7-form input:focus,
body .wpcf7-form select:focus,
body .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--purple-glow);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(165, 110, 224, 0.25);
}

/* Dropdown: own arrow, dark option list. */
body .wpcf7-form select {
	appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	background-size: 1.4rem;
	cursor: pointer;
}

body .wpcf7-form select option { color: var(--white); background: var(--ink-2); }

/* Submit button in the purple of the active menu tab. */
body .wpcf7-form input[type="submit"] {
	padding: 0.75rem 2rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--white);
	background: var(--purple-light);
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}

body .wpcf7-form input[type="submit"]:hover { background: var(--purple-glow); }
body .wpcf7-form input[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

body .wpcf7-spinner { vertical-align: middle; margin-left: 0.75rem; }

/* ---------- Validation and result messages ---------- */
body .wpcf7-not-valid { border-color: #e06e8a !important; }

body .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;    /* sits inside the uppercase label */
	color: #f29bb0;
}

body .wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.75rem 1rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	border: 1px solid var(--line);
	border-left-width: 4px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.04);
}

body .wpcf7 form.sent .wpcf7-response-output { border-color: #6fcf97; }

body .wpcf7 form.invalid .wpcf7-response-output,
body .wpcf7 form.unaccepted .wpcf7-response-output,
body .wpcf7 form.payment-required .wpcf7-response-output { border-color: #e0b44a; }

body .wpcf7 form.failed .wpcf7-response-output,
body .wpcf7 form.aborted .wpcf7-response-output,
body .wpcf7 form.spam .wpcf7-response-output { border-color: #e06e8a; }

/* ==========================================================
   News overview (home.php) and single news posts
   ========================================================== */

.news-page { max-width: var(--wide-width); padding: 3.5rem 1.5rem 6rem; }

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: var(--gap);
}

.news-card {
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--ink-2);
	overflow: hidden;
	transition: border-color 0.25s var(--ease);
}

.news-card:hover { border-color: rgba(255, 255, 255, 0.25); }

.news-card__link { display: flex; flex-direction: column; height: 100%; }

/* Fixed 16:9 frame; posts without a featured image get a plain purple panel. */
.news-card__image {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(180deg, var(--purple-light) 0%, #4c2a6a 100%);
}

.news-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s var(--ease);
}

.news-card:hover .news-card__image img { transform: scale(1.04); }

.news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.25rem 1.25rem;
}

.news-card__date,
.entry-meta {
	font-family: var(--font-body);
	font-size: 0.8rem;
	color: var(--muted);
	letter-spacing: 0.02em;
}

.news-card__title {
	margin: 0.35rem 0 0.6rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.news-card__excerpt {
	margin: 0 0 1rem;
	font-family: var(--font-body);
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
}

.news-card__more {
	margin-top: auto;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--purple-glow);
}

.news-card:hover .news-card__more { color: var(--white); }

/* ---------- Pagination on the overview ---------- */
.pagination { margin-top: 3rem; }

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.5rem;
	padding: 0.5rem 0.8rem;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.pagination a.page-numbers:hover { border-color: rgba(255, 255, 255, 0.35); }
.pagination .page-numbers.current { background: var(--purple-light); border-color: var(--purple-light); }

/* ---------- Single post ---------- */
/* One narrow column, compact spacing, nothing extra. */
.news-single { max-width: 44rem; padding: 1.75rem 1.5rem 4rem; }

/* Styled as the product page's ghost back button, see "Single product" below. */
.news-article__back { margin-bottom: 1.75rem; }

.news-article__date {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.85rem;
	color: var(--muted);
}

.news-article__title {
	margin: 0;
	font-size: clamp(2rem, 4.5vw, 2.6rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Photo on its own: thin light border and a soft shadow, no panel behind it.
   Landscape photos fill the column; tall ones stay centred and max 26rem high. */
.news-article__image { margin: 1.5rem 0 0; }

.news-article__image img {
	width: auto;
	max-width: 100%;
	max-height: 26rem;
	margin: 0 auto;
	border-radius: var(--radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow:
		0 0 0 6px rgba(165, 110, 224, 0.08),
		0 20px 40px -20px rgba(0, 0, 0, 0.9);
}

.news-article__content { margin-top: 1.5rem; }
.news-article__content > * { margin-bottom: 1.1em; }
.news-article__content > *:last-child { margin-bottom: 0; }

/* Older / newer: plain links under a thin rule. */
.post-navigation {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

/* Newer on the left, older on the right (WordPress outputs them the other way round). */
.post-navigation .nav-next { order: 1; }
.post-navigation .nav-previous { order: 2; margin-left: auto; text-align: right; }

.post-navigation .nav-subtitle {
	display: block;
	margin-bottom: 0.2rem;
	font-family: var(--font-body);
	font-size: 0.8rem;
	color: var(--muted);
}

.post-navigation .nav-title {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: color 0.2s var(--ease);
}

.post-navigation a:hover .nav-title { color: var(--purple-glow); }

@media (max-width: 600px) {
	.news-single { padding: 1.25rem 1rem 3rem; }
}

/* ==========================================================
   Home page and full-width blocks
   ========================================================== */

/* Lets content break out to the full screen width without a sideways scrollbar. */
body { overflow-x: clip; }

/* The page title isn't needed on the home page. */
.home.page .entry-header { display: none; }

/* Full-width blocks and Smart Slider span the whole window, edge to edge. */
.entry-content .alignfull,
.entry-content > .wp-block-nextend-smartslider3,
.entry-content > .n2-section-smartslider {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.entry-content .alignwide {
	width: min(var(--wide-width), 100vw - 2rem);
	max-width: none;
	margin-left: calc(50% - min(var(--wide-width), 100vw - 2rem) / 2);
}

/* Slider sits flush under the header. */
.home.page .site-main { padding-top: 0; }
.home.page .entry-content > .n2-section-smartslider:first-child,
.home.page .entry-content > .alignfull:first-child { margin-top: 0; }

/* ==========================================================
   Single product page
   ========================================================== */

.product-page { max-width: var(--wide-width); padding: 2.5rem 1.5rem 6rem; }

.product-detail__back {
	display: inline-block;
	margin-bottom: 2rem;
	font-family: var(--font-body);
	font-size: 0.85rem;
	color: var(--muted);
	transition: color 0.2s var(--ease);
}

.product-detail__back:hover { color: var(--white); }

.product-detail__top {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
}

/* Same purple panel as the product cards, with a fixed 4:3 frame. */
.product-detail__image {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--purple-light) 0%, #4c2a6a 100%);
}

.product-detail__image img {
	position: absolute;
	inset: 8%;
	width: 84%;
	height: 84%;
	object-fit: contain;
	filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3));
}

.product-detail__category {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--purple-glow);
}

.product-detail__title {
	margin: 0 0 1.75rem;
	font-size: clamp(2.5rem, 6vw, 3.75rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Spec sheet: label left, value right, thin rules between rows. */
.product-detail__specs {
	margin: 0 0 2rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
	border-top: 1px solid var(--line);
}

.product-detail__specs > div {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--line);
}

.product-detail__specs dt { color: var(--muted); }
.product-detail__specs dd { margin: 0; text-align: right; color: var(--white); }

.product-detail__button {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--white);
	background: var(--purple-light);
	border-radius: var(--radius);
	transition: background-color 0.2s var(--ease);
}

.product-detail__button:hover { background: var(--purple-glow); }
.product-detail__button svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

.product-detail__description {
	max-width: var(--content-width);
	margin-top: 4.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--line);
}

.product-detail__description h2 {
	margin: 0 0 1.25rem;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-detail__description h2::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	margin-bottom: 0.75rem;
	background: var(--purple-light);
}

@media (max-width: 800px) {
	.product-page { padding: 2rem 1rem 4rem; }
	.product-detail__top { grid-template-columns: 1fr; gap: 2rem; }
	.product-detail__description { margin-top: 3rem; }
}

/* ==========================================================
   Lighter page style (every page except the home page)
   One flat band for the page title, lighter purple surfaces, lilac labels.
   To undo: delete this whole block.
   ========================================================== */

body:not(.home) {
	--ink:        #1b1128;   /* page background, a little lighter than the home page */
	--ink-2:      #2a1c3c;   /* bands and cards */
	--line:       rgba(255, 255, 255, 0.12);
	--band:       #2e1f42;
	--band-edge:  #d8432f;   /* red accent: buttons and card hover */
	--label:      #c9a6ee;   /* small labels and dates */
}

/* The title band: the title's own box, widened to the full screen with
   border-image so no template has to change. */
body:not(.home) .entry-header,
.products-page::before {
	margin: 0 0 2.5rem;
	padding: 1.5rem 0 1.4rem;
	border: 0;
	border-image: linear-gradient(var(--band), var(--band)) fill 0 / 0 / 0 100vmax;
}

body:not(.home) .entry-title,
.products-page::before {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	line-height: 1;
	letter-spacing: 0.03em;
}

/* The band sits right under the header. */
.page:not(.home) .site-main,
.products-page,
.news-page { padding-top: 0; }

/* ---------- Products overview ---------- */
.product-group__title { display: block; }

.product-group__title::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	margin-bottom: 0.7rem;
	background: var(--purple-glow);
}

.product-card {
	background: var(--ink-2);
	box-shadow: inset 0 2px 0 transparent;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.product-card:hover {
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: inset 0 2px 0 var(--band-edge);
}

.product-card__download { border-color: var(--line); }
.product-card__download:hover { background: var(--purple-light); color: var(--white); }

/* Category filter above the products. */
.product-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: -0.5rem 0 2.5rem;
}

.product-filter[hidden] { display: none; }

.product-filter__button {
	padding: 0.45rem 1.1rem;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.product-filter__button:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }

.product-filter__button[aria-pressed="true"] {
	color: var(--white);
	background: var(--purple-light);
	border-color: var(--purple-light);
}

.product-group[hidden] { display: none; }

/* ---------- Single product ---------- */
.product-page { padding-top: 0; }

/* Ghost button: purple outline in the header's condensed caps, fills like the active nav tab.
   Shared with the news post's back link. */
.product-detail__back,
.news-article__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
	padding: 0.5rem 1rem 0.5rem 0.75rem;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #e9dcf7;
	border: 1px solid rgba(165, 110, 224, 0.55);
	border-radius: var(--radius);
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.product-detail__back:hover,
.product-detail__back:focus-visible,
.news-article__back:hover,
.news-article__back:focus-visible {
	color: var(--white);
	background: var(--purple-light);
	border-color: var(--purple-light);
}

/* Image and specs share one full-width band. */
.product-detail__top {
	position: relative;
	padding: 3rem 0;
	border-image: linear-gradient(var(--band), var(--band)) fill 0 / 0 / 0 100vmax;
}

.product-detail__image { background: none; border: 0; }
.product-detail__image img { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.45)); }
.product-detail__category { color: var(--label); }
.product-detail__button { background: var(--band-edge); }
.product-detail__button:hover { background: #e85a46; }
.product-detail__description { border-top: 0; margin-top: 3.5rem; }

/* The news back link sits above the article, so it keeps its own spacing. */
.news-article__back { margin-top: 0; }

/* Compact layout: the back button sits at the top of the band, so the description starts on the first screen. */
.product-detail__top {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	row-gap: 0.25rem;
	padding: 1.4rem 0 1.75rem;
}

.product-detail__back {
	grid-column: 1 / -1;
	justify-self: start;
	margin: 0;
}

.product-detail__image { aspect-ratio: auto; height: 22rem; }
.product-detail__title { margin-bottom: 1.1rem; }
.product-detail__specs { margin-bottom: 1.4rem; }
.product-detail__specs > div { padding: 0.65rem 0; }
.product-detail__description { margin-top: 0; padding-top: 2rem; }

@media (max-width: 800px) {
	.product-detail__top { grid-template-columns: 1fr; row-gap: 1.5rem; }
	.product-detail__image { height: 16rem; }
}

/* ---------- News ---------- */
.news-card { position: relative; background: var(--ink-2); }

/* Red line along the top on hover, like the product cards. It's drawn on
   top of the photo, because an inset shadow would sit behind it. */
.news-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: 2px;
	background: var(--band-edge);
	opacity: 0;
	transition: opacity 0.2s var(--ease);
	pointer-events: none;
}

.news-card:hover { border-color: rgba(255, 255, 255, 0.18); }
.news-card:hover::before { opacity: 1; }

.news-card__date,
.news-article__date { color: var(--label); }
.news-card__more { color: var(--label); }
.news-card:hover .news-card__more { color: var(--white); }

/* ---------- Contact form ---------- */
body .wpcf7-form input[type="text"],
body .wpcf7-form input[type="email"],
body .wpcf7-form input[type="tel"],
body .wpcf7-form select,
body .wpcf7-form textarea { background: rgba(255, 255, 255, 0.07); }

body .wpcf7-form input[type="submit"] { background: var(--band-edge); }
body .wpcf7-form input[type="submit"]:hover { background: #e85a46; }

/* ==========================================================
   3D speaker carousel ([empad_3d_carousel], inc/speaker-carousel.php)
   ========================================================== */

.empad-3d {
	--empad-3d-line: var(--purple-glow);   /* edge colour */
	--empad-3d-fill: var(--ink);           /* face colour: hides lines behind the model */
	position: relative;
	display: grid;
	grid-template-columns: minmax(15rem, 1fr) 2.4fr;
	grid-template-areas: "caption stage" "controls stage";
	grid-template-rows: 1fr auto;
	align-items: center;
	column-gap: var(--gap);
	min-height: clamp(26rem, 70vh, 44rem);
	margin-block: 0 4rem;
	padding: 2rem max(1.5rem, (100vw - var(--wide-width)) / 2);
	outline: none;
}

.empad-3d__stage {
	grid-area: stage;
	position: relative;
	align-self: stretch;
	min-height: 20rem;
}

.empad-3d__canvas,
.empad-3d__fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.empad-3d__canvas { transition: opacity 0.4s var(--ease); }
.empad-3d.is-loading .empad-3d__canvas { opacity: 0; }

/* Still images: shown until 3D takes over, and kept where it can't. They are
   rendered at the same framing as the 3D view, so the model fades in on top
   of its own picture instead of popping in. */
.empad-3d__fallback { display: none; object-fit: contain; transition: opacity 0.4s var(--ease); }
.empad-3d__fallback.is-active { display: block; }
.empad-3d.is-3d:not(.is-loading) .empad-3d__fallback { opacity: 0; }

/* iPhone only: asks for gyro access. */
.empad-3d .empad-3d__tilt {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 2;
	transform: translateX(-50%);
	padding: 0.35rem 0.9rem;
	white-space: nowrap;
	font-family: var(--font-display);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--white);
	background: rgba(112, 73, 142, 0.85);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.empad-3d .empad-3d__tilt[hidden] { display: none; }

.empad-3d__slide { grid-area: caption; align-self: center; }
/* Hidden slides keep their space, so the tallest one sets the height and
   the buttons below stay put when the slide changes. */
.empad-3d__slide[hidden] { display: block; visibility: hidden; }

.empad-3d .empad-3d__subtitle {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--purple-glow);
}

.empad-3d .empad-3d__title {
	margin: 0 0 1.25rem;
	font-size: clamp(3rem, 7vw, 5.5rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.02em;
}

.empad-3d .empad-3d__link {
	display: inline-block;
	padding: 0.7rem 1.6rem;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--white);
	background: var(--purple-light);
	border-radius: var(--radius);
	transition: background-color 0.2s var(--ease);
}

.empad-3d .empad-3d__link:hover { background: var(--purple-glow); }

/* Slide buttons: one dark slanted bar holding the slide count, a back
   arrow and an ochre "Next: <slide>" button. */
.empad-3d__controls {
	grid-area: controls;
	display: inline-flex;
	align-items: stretch;
	justify-self: start;
	align-self: start;
	margin-top: 2.25rem;
	padding-right: 0.9rem;
	background: rgba(18, 10, 28, 0.8);
	box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.9);
	clip-path: polygon(0 0, 100% 0, calc(100% - 0.9rem) 100%, 0 100%);
}

.empad-3d__count {
	display: flex;
	align-items: center;
	padding: 0 1.1rem 0 1.3rem;
	white-space: nowrap;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.1em;
	color: var(--white);
}

/* All numbers / names sit in one cell, so the widest one sets the width. */
.empad-3d__count-now,
.empad-3d__next-name { display: inline-grid; }
.empad-3d__count-now > span,
.empad-3d__next-name > span { grid-area: 1 / 1; visibility: hidden; }
.empad-3d__count-now > .is-on,
.empad-3d__next-name > .is-on { visibility: visible; }
.empad-3d__count-now { justify-items: center; }
.empad-3d__next-name { justify-items: start; }

.empad-3d__controls button {
	height: 3.2rem;
	border: 0;
	cursor: pointer;
	font-family: var(--font-display);
	font-weight: 700;
	transition: background-color 0.2s var(--ease);
}

.empad-3d__prev {
	width: 3.2rem;
	margin-right: 0.35rem;
	font-size: 1.6rem;
	color: var(--white);
	background: rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 -5px 0 var(--futur-red, #d8432f);   /* red line: "click me" */
	clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}

@media (hover: hover) { .empad-3d__prev:hover { background: rgba(255, 255, 255, 0.28); } }

.empad-3d__next {
	padding: 0 1.6rem;
	font-size: 0.95rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ink);
	background: var(--futur-ochre, #d9a441);
	box-shadow: inset 0 -5px 0 var(--futur-red, #d8432f);
	clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

/* Futurist: the script tilts the bar so its top runs along the band's edge. */
.empad-3d--futurist .empad-3d__controls {
	transform-origin: 0 0;
	transform: translateY(var(--bar-shift, 0)) rotate(var(--bar-tilt, 0));
}

.empad-3d__next span[aria-hidden] { font-size: 1.3rem; margin-left: 0.2rem; }
/* Hover only with a mouse, so a tapped button on a phone doesn't stay white. */
@media (hover: hover) { .empad-3d__next:hover { background: var(--white); } }

@media (max-width: 800px) {
	.empad-3d {
		grid-template-columns: 1fr;
		grid-template-areas: "stage" "caption" "controls";
		grid-template-rows: auto;
		align-content: center;
		row-gap: 1.5rem;
		/* Fills the phone screen under the header (vh for older iPhones). */
		min-height: calc(100vh - 3.5rem);
		min-height: calc(100svh - 3.5rem);
		margin-bottom: 0;
		padding-block: 1rem 2rem;
	}

	/* An explicit width: Safari otherwise sizes this empty box to zero. */
	.empad-3d__stage { align-self: start; width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
	.empad-3d__count { padding: 0 0.8rem 0 1rem; }
	.empad-3d__next { padding: 0 1.1rem; font-size: 0.85rem; }
	.empad-3d .empad-3d__title { margin-bottom: 1rem; }
}

/* News slide: the newest post's photo in place of the model, framed, with
   an outline offset behind it. */
.empad-3d__photo {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: none;
	width: min(76%, 38rem);
	aspect-ratio: 3 / 2;
	margin: 0;
	padding: 0.45rem;
	transform: translate(-48%, -50%);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: calc(var(--radius) + 3px);
}

.empad-3d__photo.is-active { display: block; }

.empad-3d__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 2px solid var(--futur-red, var(--purple-glow));
	border-radius: inherit;
	transform: translate(-12px, 12px);
}

.empad-3d__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}

/* three.js sets display on the canvas itself, so it is hidden this way. */
.empad-3d.is-news .empad-3d__canvas { visibility: hidden; }
.empad-3d.is-news .empad-3d__tilt { display: none; }

.empad-3d .empad-3d__slide--news .empad-3d__title {
	font-size: clamp(2rem, 3.4vw, 3rem);
	line-height: 1;
	margin-bottom: 0.6rem;
}

.empad-3d__date {
	margin: 0 0 0.6rem;
	font-size: 0.9rem;
	color: var(--label, #c9a6ee);
}

.empad-3d__excerpt {
	max-width: 26rem;
	margin: 0 0 1.4rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 800px) {
	.empad-3d__photo { width: 86%; transform: translate(-46%, -50%); }
}

/* ---------- Futurist style ([empad_3d_carousel style="futurist"]) ----------
   Delete this block (down to the end of the file) together with
   style="futurist" in the shortcode to remove it completely. */

.empad-3d--futurist {
	--futur-red:   #d8432f;
	--futur-ochre: #d9a441;
	isolation: isolate;
	overflow: hidden;
}

/* Slanted poster band with a faint paper grain behind everything. */
.empad-3d--futurist::before {
	content: "";
	position: absolute;
	inset: 8% -5% 10%;
	z-index: -1;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
		linear-gradient(100deg, transparent 0 38%, rgba(216, 67, 47, 0.08) 38% 39%, transparent 39%),
		var(--ink-2);
	clip-path: polygon(0 12%, 100% 0, 100% 86%, 0 100%);
	border-top: 2px solid var(--futur-red);
}

/* The model sits at a steep diagonal. */
.empad-3d--futurist .empad-3d__canvas,
.empad-3d--futurist .empad-3d__fallback { transform: rotate(-7deg); }

/* Lines of force: brighter and longer the faster the speaker turns. */
.empad-3d__force {
	--empad-3d-energy: 0;          /* 0 to 1, set by the script from how fast the model turns */
	position: absolute;
	inset: -10%;
	width: 120%;
	height: 120%;
	overflow: visible;
	pointer-events: none;
}

/* Scaled and faded as a whole layer, so the browser never has to redraw it. */
.empad-3d__force:not(.empad-3d__sound) {
	transform: scale(calc(0.9 + var(--empad-3d-energy) * 0.25));
	opacity: calc(0.35 + var(--empad-3d-energy) * 0.65);
	will-change: transform, opacity;
	transition: transform 0.15s linear, opacity 0.15s linear;
}

.empad-3d__rays { transform-origin: 47% 50%; transform: rotate(-7deg); }

.empad-3d__ray { fill: var(--purple-glow); opacity: 0.16; }
.empad-3d__ray.is-red { fill: var(--futur-red); opacity: 0.22; }

.empad-3d__wave {
	fill: none;
	stroke: var(--futur-ochre);
	stroke-width: 2;
	stroke-dasharray: 14 10;
	opacity: 0;
	animation: empad-3d-wave 2.4s linear infinite;
	animation-delay: calc(var(--i) * 0.3s);
}

@keyframes empad-3d-wave {
	0%   { opacity: 0; stroke-dashoffset: 0; }
	30%  { opacity: 0.55; }
	100% { opacity: 0; stroke-dashoffset: -96; }
}


/* "Words in freedom": tilted, mixed-size lettering. */
.empad-3d--futurist .empad-3d__slide { position: relative; z-index: 1; transform: rotate(-4deg); }

.empad-3d--futurist .empad-3d__subtitle {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	color: var(--ink);
	background: var(--futur-ochre);
	font-weight: 700;
	transform: rotate(-6deg) translateX(-0.4rem);
}

.empad-3d--futurist .empad-3d__title {
	font-size: clamp(4rem, 10vw, 8rem);
	font-style: italic;
	transform: skewX(-12deg);
	/* Chronophotograph echoes trailing behind the letters. */
	text-shadow:
		-0.05em 0 0 rgba(165, 110, 224, 0.55),
		-0.1em  0 0 rgba(216, 67, 47, 0.4),
		-0.15em 0 0 rgba(216, 67, 47, 0.2);
}

.empad-3d--futurist .empad-3d__title::before { background: var(--futur-red); }

.empad-3d--futurist .empad-3d__link {
	border-radius: 0;
	background: var(--futur-red);
	clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
	padding-inline: 2.2rem;
	font-weight: 700;
}

.empad-3d--futurist .empad-3d__link:hover { background: var(--futur-ochre); color: var(--ink); }

.empad-3d--futurist .empad-3d__tilt { border-radius: 0; background: var(--futur-red); }


/* News slide: same poster language as the speaker slide (ochre tag, slanted
   italic title, red cut-corner button, tilted picture), a notch calmer so the
   longer title and excerpt stay easy to read. */
.empad-3d--futurist .empad-3d__slide--news { transform: rotate(-2deg); }

.empad-3d--futurist .empad-3d__slide--news .empad-3d__title {
	font-size: clamp(2.4rem, 4.2vw, 3.6rem);
	transform: skewX(-8deg);
	text-shadow:
		-0.04em 0 0 rgba(165, 110, 224, 0.5),
		-0.08em 0 0 rgba(216, 67, 47, 0.3);
}

.empad-3d--futurist .empad-3d__slide--news .empad-3d__date {
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--futur-ochre);
}

/* The photo leans like the speaker model; its offset outline is red. */
.empad-3d--futurist .empad-3d__photo { transform: translate(-48%, -50%) rotate(-4deg); }
.empad-3d--futurist .empad-3d__photo::before { border-color: var(--futur-red); }

.empad-3d--futurist.is-news .empad-3d__force { opacity: 0.6; }
.empad-3d--futurist.is-news .empad-3d__sound { display: none; }

@media (max-width: 800px) {
	.empad-3d--futurist .empad-3d__photo { transform: translate(-46%, -50%) rotate(-3deg); }
}


@media (max-width: 800px) {
	/* The band runs to the bottom and fades into the page instead of ending in an edge. */
	.empad-3d--futurist::before {
		inset: 0 -5%;
		clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
		-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
		mask-image: linear-gradient(to bottom, #000 70%, transparent);
	}
	.empad-3d--futurist { padding-bottom: 4rem; }
	.empad-3d--futurist .empad-3d__subtitle { font-size: 0.85rem; letter-spacing: 0.15em; }
}
