/* ==========================================================================
   Steve Legler theme
   Palette and type from the stevelegler.com style guide:
   teal #007b86 / #0f7581 / #125f67 / #003d45, neutrals #f8f8f8 #e1e1e1 #383838 #222,
   Open Sans for text, a serif accent for quotes.
   ========================================================================== */

@font-face { font-family: "Open Sans"; src: url(../fonts/open-sans-var.woff) format("woff"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/open-sans-var-italic.woff) format("woff"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url(../fonts/noto-serif-var.woff) format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url(../fonts/noto-serif-var-italic.woff) format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
	--teal: #007b86;
	--teal-600: #0f7581;
	--teal-700: #125f67;
	--teal-900: #003d45;
	--teal-050: #e9f4f5;
	--teal-text: #007b86;
	--ink: #222222;
	--text: #383838;
	--muted: #5d6163;
	--line: #e1e1e1;
	--line-soft: #ececec;
	--bg: #ffffff;
	--bg-soft: #f8f8f8;
	--surface: #ffffff;
	--surface-2: #f8f8f8;
	--glass: rgba(255, 255, 255, 0.72);
	--glass-strong: rgba(255, 255, 255, 0.94);
	--on-teal: #ffffff;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
	--shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 18px 44px rgba(0, 61, 69, 0.14);
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--font-sans: "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-serif: "Noto Serif", "Droid Serif", Georgia, "Times New Roman", serif;
	--font-display: var(--font-serif);
	--wrap: 1200px;
	--text-w: 740px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 68px;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--teal-text: #5cc3cc;
		--teal-050: #0f2a2e;
		--ink: #f2f5f5;
		--text: #d3dbdc;
		--muted: #9eaeb0;
		--line: #26363a;
		--line-soft: #1c2a2d;
		--bg: #0b1416;
		--bg-soft: #0f1b1e;
		--surface: #111e21;
		--surface-2: #152427;
		--glass: rgba(11, 20, 22, 0.7);
		--glass-strong: rgba(11, 20, 22, 0.95);
		--shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
		--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--teal-text: #5cc3cc;
	--teal-050: #0f2a2e;
	--ink: #f2f5f5;
	--text: #d3dbdc;
	--muted: #9eaeb0;
	--line: #26363a;
	--line-soft: #1c2a2d;
	--bg: #0b1416;
	--bg-soft: #0f1b1e;
	--surface: #111e21;
	--surface-2: #152427;
	--glass: rgba(11, 20, 22, 0.7);
	--glass-strong: rgba(11, 20, 22, 0.95);
	--shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
kbd { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0.05em 0.45em; color: var(--muted); background: var(--surface); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--teal); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--text-w) + var(--gutter) * 2); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-text); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; flex: none; }
.eyebrow--light { color: #8fd6dc; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
	--btn-bg: var(--teal);
	--btn-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	min-height: 44px; padding: 0.6em 1.15em;
	border-radius: 8px; border: 1.5px solid var(--btn-bg);
	background: var(--btn-bg); color: var(--btn-fg);
	font-weight: 650; font-size: 0.92rem; line-height: 1.2; letter-spacing: 0;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { --btn-bg: var(--teal-700); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 123, 134, 0.55); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--teal); --btn-fg: var(--teal-text); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--teal-900); border-color: #fff; }
.btn--light:hover { --btn-bg: #e9f4f5; border-color: #e9f4f5; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); border-color: #fff; box-shadow: none; }
.btn--small { min-height: 36px; padding: 0.45em 0.9em; font-size: 0.85rem; }
.btn--large { min-height: 50px; padding: 0.75em 1.35em; font-size: 0.96rem; }

.icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
	border: 0; background: transparent; color: var(--ink); cursor: pointer;
	transition: background-color 0.2s;
}
.icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
[data-theme="dark"] .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.icon-btn__kbd { font-size: 0.7rem; line-height: 1; padding: 3px 6px; }
.icon--sun { display: none; }
[data-theme="dark"] .icon--sun { display: block; }
[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .icon--sun { display: block; }
	:root:not([data-theme="light"]) .icon--moon { display: none; }
	:root:not([data-theme="light"]) .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
}

/* --------------------------------------------------------------------------
   Header (frosted glass)
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--glass);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__bar {
	display: flex; align-items: center; gap: 24px;
	max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
	height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand__logo { height: 42px; width: auto; max-width: 170px; }
.brand__logo--dark { display: none; }
/* The logo is never altered. In dark mode it sits on a small white card unless a dark-mode version is set. */
[data-theme="dark"] .brand:not(.has-dark-logo) { background: #fff; padding: 5px 10px; }
[data-theme="dark"] .brand.has-dark-logo .brand__logo--light { display: none; }
[data-theme="dark"] .brand.has-dark-logo .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand:not(.has-dark-logo) { background: #fff; padding: 5px 10px; }
	:root:not([data-theme="light"]) .brand.has-dark-logo .brand__logo--light { display: none; }
	:root:not([data-theme="light"]) .brand.has-dark-logo .brand__logo--dark { display: block; }
}

.nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: static; display: flex; align-items: center; }
.nav__link {
	display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgba(0, 0, 0, 0.05); }
.nav__item.is-current > .nav__link { color: var(--teal-text); }
.nav__item--button .nav__link.btn { color: #fff; margin-left: 6px; }
.nav__toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 32px; margin-left: -8px;
	border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.nav__toggle .icon { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.nav__item.is-open .nav__toggle .icon { transform: rotate(180deg); }
.site-header__tools { display: flex; align-items: center; gap: 4px; flex: none; }
.site-header__cta { margin-left: 6px; }
.menu-btn { display: none; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .nav__link:hover, :root:not([data-theme="light"]) .nav__item.is-open > .nav__link { background: rgba(255, 255, 255, 0.08); }
}
[data-theme="dark"] .nav__link:hover, [data-theme="dark"] .nav__item.is-open > .nav__link { background: rgba(255, 255, 255, 0.08); }

/* Mega menu */
.mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--surface);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	backdrop-filter: saturate(180%) blur(24px);
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
	animation: mega-in 0.32s var(--ease-out);
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega__inner {
	max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding: 32px var(--gutter) 40px;
	display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 48px;
}
.mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 32px; }
.mega__heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.mega__heading a { color: inherit; text-decoration: none; }
.mega__heading a:hover { color: var(--teal-text); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; line-height: 1.35; }
.mega li a:hover { color: var(--teal-text); }
.mega__sub { margin: 2px 0 8px !important; padding-left: 12px !important; border-left: 1px solid var(--line) !important; }
.mega__sub a { font-weight: 500 !important; font-size: 0.9rem !important; color: var(--muted) !important; }
.mega__sub a:hover { color: var(--teal-text) !important; }
.mega__feature { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.mega__feature-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.mega__feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.mega__feature:hover img { transform: scale(1.04); }
.mega__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); }
.mega__feature-title { font-weight: 700; line-height: 1.3; }
.no-js .has-mega:hover > .mega, .no-js .has-mega:focus-within > .mega { display: block !important; }

/* Reading progress */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), #3fb6c0); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 1279px) {
	.nav { display: none; }
	.menu-btn { display: inline-flex; }
	.site-header__bar { justify-content: space-between; }
}
@media (max-width: 560px) {
	:root { --header-h: 64px; }
	.brand__logo { height: 40px; }
	.site-header__cta, .icon-btn__kbd { display: none; }
	.site-header__bar { gap: 8px; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: sheet-in 0.35s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; padding: 12px var(--gutter) 32px; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.mobile-menu__label { margin: 0; font-weight: 700; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.mnav__list { list-style: none; margin: 0; padding: 0; }
.mnav__list--0 > li { border-bottom: 1px solid var(--line-soft); }
.mnav__list--0 > li > a, .mnav__list--0 > li > .mnav__row > a, .mnav__list--0 > li > .mnav__row > span { display: block; padding: 16px 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; flex: 1; }
.mnav__row { display: flex; align-items: center; gap: 8px; }
.mnav__toggle { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mnav__toggle .icon { transition: transform 0.25s var(--ease); }
.mnav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mnav__panel { padding: 0 0 14px 4px; }
.mnav__list--1 a, .mnav__list--1 .mnav__row > span { display: block; padding: 9px 0; color: var(--text); text-decoration: none; font-weight: 600; flex: 1; }
.mnav__list--1 .mnav__row > a { flex: 1; }
.mnav__list--2 { padding-left: 14px; border-left: 1px solid var(--line); }
.mnav__list--2 a { font-weight: 500; color: var(--muted); padding: 7px 0; }
.mnav__list--1 .mnav__toggle { width: 36px; height: 36px; }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__lang { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; text-decoration: none; justify-content: center; }
body.menu-open { overflow: hidden; }

/* Search dialog */
.search-dialog { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: min(14vh, 120px) 16px 16px; }
.search-dialog[hidden] { display: none; }
.search-dialog__backdrop { position: absolute; inset: 0; background: rgba(0, 20, 24, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in 0.2s; }
@keyframes fade-in { from { opacity: 0; } }
.search-dialog__panel { position: relative; width: 100%; max-width: 680px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop-in 0.3s var(--ease-out); border: 1px solid var(--line-soft); }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.search-dialog__form { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 20px; border-bottom: 1px solid var(--line-soft); }
.search-dialog__form > .icon { color: var(--muted); }
.search-dialog__form input { flex: 1; min-width: 0; height: 60px; border: 0; background: transparent; font-size: 1.15rem; outline: none; color: var(--ink); }
.search-dialog__form input::-webkit-search-cancel-button { display: none; }
.search-dialog__esc { border: 0; background: none; cursor: pointer; padding: 8px; }
.search-dialog__results { list-style: none; margin: 0; padding: 8px; max-height: min(56vh, 520px); overflow-y: auto; }
.search-dialog__results:empty { display: none; }
.search-dialog__results a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.search-dialog__results a[aria-selected="true"], .search-dialog__results a:hover { background: var(--teal-050); }
.sr-kind { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--teal-text); }
.sr-kind .icon { width: 18px; height: 18px; }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-title { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr-title mark { background: none; color: var(--teal-text); font-weight: 800; }
.sr-meta { font-size: 0.8rem; color: var(--muted); }
.sr-empty { padding: 18px 14px; color: var(--muted); }
.search-dialog__hint { margin: 0; padding: 10px 20px 14px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line-soft); }

/* --------------------------------------------------------------------------
   Sections and shared layout
   -------------------------------------------------------------------------- */
.site-main { display: block; outline: none; }
.section { padding-block: clamp(48px, 6vw, 84px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: clamp(24px, 3vw, 36px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; }
.section__head--bar { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section__title { font-family: var(--font-display); font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.section__lead { font-size: 1rem; color: var(--muted); margin: 10px 0 0; max-width: 34em; }
.section__head--split .section__lead { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.94rem; text-decoration: none; color: var(--teal-text); }
.text-link .icon { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.icon--flip { transform: scaleX(-1); }
@media (max-width: 800px) { .section__head--split { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-block: clamp(32px, 4.5vw, 64px) 0; background: linear-gradient(180deg, var(--bg-soft), var(--bg) 85%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-family: var(--font-display); font-size: clamp(2rem, 3.7vw, 3.15rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 0.5em; }
.hero__lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--muted); max-width: 32em; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__media { position: relative; margin: 0; }
.hero__frame { display: block; aspect-ratio: 5 / 5.4; max-height: 540px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-lg); }
.hero__frame img { width: 100%; height: 108%; object-fit: cover; object-position: 50% 30%; margin-top: -4%; }
.hero__card { position: absolute; left: -24px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.hero__card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.hero__card span { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.hero__card strong { color: var(--ink); font-size: 0.95rem; }
.creds-bar { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 18px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds-bar li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--teal); }
.creds-bar strong { color: var(--ink); font-size: 0.92rem; letter-spacing: 0.02em; }
.creds-bar span { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 520px; }
	.hero__frame { aspect-ratio: 4 / 3; }
	.hero__card { left: 12px; bottom: 12px; }
	.creds-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Services */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.tile:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.tile__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tile h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin: 0 0 14px; flex: 1; }
.tile__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 0.88rem; color: var(--teal-text); }
.tile__link .icon { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.tile:hover .tile__link .icon { transform: translateX(3px); }
.tile:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } .tile { flex-direction: row; } .tile__media { flex: 0 0 38%; aspect-ratio: auto; } }
@media (max-width: 560px) { .tile { flex-direction: column; } .tile__media { aspect-ratio: 16 / 9; } }

/* Statement band */
.statement { position: relative; isolation: isolate; color: #fff; background: var(--teal-900); overflow: hidden; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; }
.statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 38, 44, 0.94) 0%, rgba(0, 38, 44, 0.82) 45%, rgba(0, 38, 44, 0.35) 100%); }
.statement__inner { padding-block: clamp(48px, 7vw, 92px); }
.statement__text { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.32; max-width: 24em; margin: 0 0 26px; text-wrap: balance; }

/* Article carousel (compact, swipe or arrow keys) */
.carousel__controls { display: flex; align-items: center; gap: 8px; }
.carousel__count { margin: 0 8px 0 0; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.88rem; color: var(--muted); }
.carousel__count span { color: var(--ink); }
.icon-btn--line { border: 1px solid var(--line); width: 40px; min-width: 40px; height: 40px; padding: 0; }
.icon-btn--line:disabled { opacity: 0.4; cursor: default; }
.icon-btn--line .icon { width: 18px; height: 18px; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 2px 6px; margin: -2px -2px 0; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.carousel__progress { height: 2px; background: var(--line); margin-top: 22px; overflow: hidden; border-radius: 2px; }
.carousel__progress span { display: block; height: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 0.3s var(--ease); }
@media (max-width: 1100px) { .carousel__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 800px) { .carousel__track { grid-auto-columns: calc((100% - 18px) / 1.6); } }
@media (max-width: 520px) { .carousel__track { grid-auto-columns: 82%; } .carousel__count { display: none; } }

/* Who I work with + numbers */
.who__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.audience a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.94rem; line-height: 1.3; transition: border-color 0.25s, box-shadow 0.25s; }
.audience a:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(0, 61, 69, 0.08); }
.audience__icon { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--teal-050); color: var(--teal-text); display: inline-flex; align-items: center; justify-content: center; }
.audience__icon .icon { width: 20px; height: 20px; }
.audience__text { flex: 1; }
.audience__arrow { width: 16px; height: 16px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s; }
.audience a:hover .audience__arrow { transform: translate(2px, -2px); color: var(--teal-text); }
.numbers { background: var(--teal-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); }
.numbers .eyebrow { margin-bottom: 18px; }
.numbers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin: 0; }
.numbers__item { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 14px; }
.numbers__item dd { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.numbers__n { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers__l { color: #b9dfe2; font-size: 0.84rem; line-height: 1.4; }
@media (max-width: 960px) { .who__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .audience-list { grid-template-columns: 1fr; } }

/* Books + podcasts */
.shelf__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.books__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.book { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.book:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.book__cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f4; }
.book__cover img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.book__cover--scene img { object-fit: cover; padding: 0; object-position: 8% 50%; }
.book__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.book__body strong { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.book__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); }
.episodes { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.episode a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color 0.2s, padding 0.25s var(--ease); }
.episode a:hover { background: var(--bg-soft); padding-left: 10px; }
.episode__play { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.episode__play .icon { width: 20px; height: 20px; }
.episode__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.episode__text strong { font-size: 0.94rem; font-weight: 600; line-height: 1.35; }
.episode__text time { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 960px) { .shelf__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .books__grid { grid-template-columns: 1fr; } }

/* About band */
.about-band__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 980px; }
.about-band__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.about-band__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.about-band__copy > p:not(.eyebrow) { color: var(--muted); margin: 14px 0 16px; max-width: 40em; }
@media (max-width: 640px) { .about-band__grid { grid-template-columns: 1fr; } .about-band__media { max-width: 200px; } }

/* CTA */
.cta { padding-block: clamp(40px, 5vw, 72px); }
.cta--compact { padding-top: clamp(8px, 2vw, 24px); }
.cta__panel { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 56px); background: var(--teal-900); color: #dcefef; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.cta__panel::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; }
.cta__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 38, 44, 0.95) 0%, rgba(0, 38, 44, 0.86) 55%, rgba(0, 38, 44, 0.6) 100%); }
.cta__title { font-family: var(--font-display); color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.cta__copy p:last-child { margin: 0; max-width: 34em; font-size: 0.98rem; }
.cta__actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 860px) { .cta__panel { grid-template-columns: 1fr; } .cta__actions { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 480px) { .cta__actions .btn { width: 100%; white-space: normal; } }

/* --------------------------------------------------------------------------
   Page header banner, breadcrumbs
   -------------------------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #e3f1f2; background: var(--teal-900); margin-bottom: clamp(32px, 4vw, 52px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 38, 44, 0.93) 0%, rgba(0, 38, 44, 0.8) 55%, rgba(0, 38, 44, 0.55) 100%); }
.page-hero__inner { padding-block: clamp(28px, 4vw, 52px); }
.page-hero__title { font-family: var(--font-display); color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; max-width: 22em; margin: 0 0 0.35em; }
.page-hero__intro { font-size: clamp(0.98rem, 1.3vw, 1.08rem); color: #cfe6e8; max-width: 44em; margin: 0; }
.page-hero .crumbs a, .page-hero .crumbs li { color: #b9dfe2; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs [aria-current] { color: #fff; }
.crumbs { margin-bottom: 22px; font-size: 0.86rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 10px 0 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--teal-text); }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* --------------------------------------------------------------------------
   Content (prose)
   -------------------------------------------------------------------------- */
.entry { padding-bottom: clamp(48px, 7vw, 96px); }
.entry--prose { max-width: calc(var(--text-w) + var(--gutter) * 2); font-size: 1.12rem; line-height: 1.75; }
.entry--prose > * { max-width: 100%; }
.entry h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.8em 0 0.6em; }
.entry h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); margin: 1.6em 0 0.5em; }
.entry h4 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry li { margin-bottom: 0.45em; }
.entry li::marker { color: var(--teal-text); }
.entry blockquote, .wp-block-quote {
	margin: 2em 0; padding: 0.2em 0 0.2em 1.4em; border-left: 3px solid var(--teal);
	font-family: var(--font-serif); font-style: italic; font-size: 1.25em; line-height: 1.5; color: var(--ink);
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry img { border-radius: 14px; }
.entry figure { margin: 2em 0; }
.entry figcaption, .wp-caption-text { font-size: 0.86rem; color: var(--muted); margin-top: 10px; text-align: center; }
.entry .wp-caption { max-width: 100%; }
.entry .alignleft { float: left; margin: 0.3em 1.6em 1em 0; max-width: 45%; }
.entry .alignright { float: right; margin: 0.3em 0 1em 1.6em; max-width: 45%; }
.entry .aligncenter { margin-inline: auto; }
.entry iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.entry iframe[src*="calendly"], .entry iframe[src*="mailchimp"], .entry iframe[src*="spotify"], .entry iframe[src*="anchor.fm"], .entry iframe[src*="buzzsprout"], .entry iframe[src*="podbean"], .entry iframe[src*="libsyn"], .entry iframe[height] { aspect-ratio: auto; }
.entry iframe[src*="youtube"], .entry iframe[src*="vimeo"] { aspect-ratio: 16 / 9 !important; height: auto !important; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95em; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry pre { overflow-x: auto; background: var(--bg-soft); padding: 18px; border-radius: 14px; font-size: 0.9em; }
.entry > p:first-child::first-letter { }
.entry a { word-break: break-word; }
.entry::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .entry .alignleft, .entry .alignright { float: none; margin: 1em 0; max-width: 100%; } }

/* Old embedded Mailchimp forms: fit the theme */
.entry #mc_embed_signup, .entry form[action*="list-manage.com"] { background: var(--surface) !important; font: inherit !important; }
.entry form[action*="list-manage.com"] input[type="email"], .entry form[action*="list-manage.com"] input[type="text"] { width: 100%; }

/* --------------------------------------------------------------------------
   Enfold (Avia) layout output
   -------------------------------------------------------------------------- */
.entry--builder { max-width: calc(var(--wrap) + var(--gutter) * 2); font-size: 1.06rem; }
.av-flow { --g: clamp(20px, 3vw, 44px); display: flex; flex-wrap: wrap; column-gap: var(--g); align-items: flex-start; }
.av-flow > * { flex: 0 0 100%; min-width: 0; }
.av-flow > .av-break { flex-basis: 100%; height: 0; margin: 0; }
.av-flow > .av-col { flex: 0 0 calc(var(--f) * (100% + var(--g)) - var(--g)); }
.av-col { min-width: 0; }
.av-col > *:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .av-flow > .av-col { flex-basis: 100%; } .av-flow > .av-col + .av-col { margin-top: 8px; } }

.av-section { position: relative; flex-basis: 100% !important; padding: clamp(36px, 6vw, 72px) 0; }
.av-root > .av-section:first-child { padding-top: 0; }
.av-section + .av-section { border-top: 1px solid var(--line-soft); }
.av-section--alt, .av-section--image { border-top: 0 !important; padding-inline: clamp(20px, 4vw, 56px); border-radius: var(--radius-lg); }
.av-section--alt + .av-section, .av-section--image + .av-section { border-top: 0; }
.av-section--alt { background: var(--bg-soft); }
.av-section--image {
	isolation: isolate; overflow: hidden; color: #eef6f7; margin-block: 12px;
	padding-block: clamp(56px, 9vw, 120px);
	background: var(--teal-900);
}
.av-section--image::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; background-image: var(--bg); }
.av-section--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 40, 46, 0.72), rgba(0, 40, 46, 0.82)); }
.av-section--image h1, .av-section--image h2, .av-section--image h3, .av-section--image h4, .av-section--image .av-heading { color: #fff; }
.av-section--image a:not(.btn) { color: #9fe0e6; }
.av-section--image .av-subheading { color: #d7ecee; }
.av-root > .av-section--image:first-child { margin-top: 0; padding-top: clamp(56px, 9vw, 120px); }

.av-heading-wrap { margin: 0 0 1.2rem; }
.av-heading { font-size: clamp(1.55rem, 3vw, 2.4rem); letter-spacing: -0.03em; margin: 0 0 0.35em; }
h3.av-heading { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h4.av-heading, h5.av-heading, h6.av-heading { font-size: 1.2rem; }
.av-subheading { color: var(--muted); font-size: 1.08rem; }
.av-subheading p:last-child { margin-bottom: 0; }
.av-text { margin-bottom: 1.2rem; }
.av-text h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.av-text h3 { font-size: 1.3rem; }
.av-text img { border-radius: 12px; }
.av-text iframe, .av-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.av-video { margin: 0 0 1.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.av-video iframe { display: block; border-radius: 0; }
.av-space { height: 24px; }
.av-hr { margin: 28px 0; }
.av-btn-wrap { margin: 0.6rem 0 1.4rem; }
.av-btn-wrap--center { text-align: center; }
.av-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.4rem; }
.av-btn-row .av-btn-wrap { margin: 0; }
.av-figure { margin: 0 0 1.4rem; }
.av-figure--center img { margin-inline: auto; }
.av-figure img { border-radius: var(--radius); }
.av-promo {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
	padding: clamp(22px, 3vw, 34px); margin: 0 0 1.4rem; border-radius: var(--radius); background: var(--teal-050); border: 1px solid rgba(0, 123, 134, 0.18);
}
.av-promo__text { flex: 1 1 300px; }
.av-promo__text > *:last-child { margin-bottom: 0; }
.av-promo__text h3 { font-size: 1.2rem; letter-spacing: -0.01em; text-transform: none; }
.av-promo__text img { display: inline-block; }
.av-section--image .av-promo { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.av-note { padding: 16px 20px; border-radius: 14px; background: var(--teal-050); margin: 0 0 1.4rem; }
.av-iconlist { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: 18px; }
.av-iconlist__item { display: flex; gap: 16px; }
.av-iconlist__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.av-iconlist__item h3 { font-size: 1.12rem; margin: 4px 0 6px; }
.av-iconbox, .av-team { padding: 26px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line-soft); margin: 0 0 1.4rem; }
.av-iconbox__icon { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: var(--teal); color: #fff; align-items: center; justify-content: center; margin-bottom: 12px; }
.av-icongrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 1.4rem; }
.av-team__img { border-radius: 16px; margin-bottom: 14px; }
.av-team__job { color: var(--teal-text); font-weight: 600; }
.av-testimonials { display: grid; gap: 16px; margin: 0 0 1.4rem; }
.av-quote { margin: 0; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.av-quote__mark { display: inline-flex; color: var(--teal-text); margin-bottom: 8px; }
.av-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.av-quote blockquote p:last-child { margin: 0; }
.av-quote blockquote h3 { font-family: var(--font-sans); font-style: normal; }
.av-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.av-quote figcaption strong { color: var(--ink); }
.av-quote__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.av-section--image .av-quote { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }
.av-section--image .av-quote blockquote, .av-section--image .av-quote figcaption strong { color: #fff; }
.av-toggles { display: flex; flex-direction: column; gap: 10px; margin: 0 0 1.4rem; }
.av-toggle { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.av-toggle summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; color: var(--ink); cursor: pointer; }
.av-toggle summary::-webkit-details-marker { display: none; }
.av-toggle summary .icon { transition: transform 0.25s var(--ease); flex: none; }
.av-toggle[open] summary .icon { transform: rotate(180deg); }
.av-toggle__body { padding: 0 22px 18px; }
.av-tab { margin-bottom: 1.6rem; }
.av-slides { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-bottom: 1.4rem; }
.av-slide { flex: 0 0 min(560px, 88%); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.av-slide__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.av-slide__body { padding: 18px 20px; }
.av-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 1.4rem; }
.av-gallery img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.av-partners { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-bottom: 1.4rem; }
.av-partner img { max-height: 48px; width: auto; }
.av-number { display: flex; flex-direction: column; margin-bottom: 1.4rem; }
.av-number__n { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 750; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.av-number__l { color: var(--muted); }
.av-bar { margin-bottom: 14px; }
.av-bar__track { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.av-bar__fill { height: 100%; background: var(--teal); }
.av-table-wrap { overflow-x: auto; margin-bottom: 1.4rem; }
.av-timeline { list-style: none; padding: 0 0 0 22px; border-left: 2px solid var(--line); margin: 0 0 1.4rem; }
.av-timeline li { margin-bottom: 22px; }
.av-timeline__date { color: var(--teal-text); font-weight: 700; margin: 0 0 4px; }
.av-posts { margin-bottom: 1.4rem; }
.av-col .av-posts.grid--cards { grid-template-columns: 1fr; }
.av-col .av-posts .card__excerpt { display: none; }
.av-code { margin-bottom: 1.4rem; max-width: 100%; overflow-x: auto; }
.av-dropcap { float: left; font-size: 3.2em; line-height: 0.9; font-weight: 800; color: var(--teal-text); margin: 0.06em 0.1em 0 0; }

/* Children of a page */
.subpages { padding-bottom: clamp(40px, 6vw, 80px); }
.subpages__title { font-size: 1.4rem; }
.subpages ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.subpages a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--bg-soft); color: var(--ink); text-decoration: none; font-weight: 650; }
.subpages a:hover { background: var(--teal-050); color: var(--teal-text); }

/* --------------------------------------------------------------------------
   Cards, grids, chips, pagination
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
	position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
	background: var(--surface); border: 1px solid var(--line-soft);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--teal-text); background: linear-gradient(135deg, var(--teal-050), var(--bg-soft)); }
.card__placeholder .icon { width: 40px; height: 40px; opacity: 0.7; }
.card__badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.76rem; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card__badge .icon { width: 14px; height: 14px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.card__meta span { color: var(--teal-text); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; padding-top: 2px; }
.card__title { font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 10px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.card__excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.card--feature .card__media { aspect-ratio: auto; min-height: 360px; }
.card--feature .card__media img { position: absolute; inset: 0; }
.card--feature .card__body { justify-content: center; padding: clamp(24px, 4vw, 52px); }
.card--feature .card__title { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.03em; }
.card--feature .card__excerpt { font-size: 1.05rem; }
@media (max-width: 760px) { .card--feature { grid-template-columns: 1fr; } .card--feature .card__media { min-height: 0; aspect-ratio: 16 / 10; } }

.listing { padding-bottom: clamp(48px, 7vw, 96px); }
.listing__search { max-width: 640px; margin-bottom: 32px; }
.chips { margin: 0 0 32px; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; background: var(--surface); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--teal); color: var(--teal-text); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip__n { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.chip.is-active .chip__n { color: inherit; opacity: 0.7; }
@media (max-width: 640px) {
	.chips ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.chips ul::-webkit-scrollbar { display: none; }
	.chip { white-space: nowrap; }
}
.pagination { margin-top: 48px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--teal); border-color: var(--teal); color: #fff; }
.pagination a:hover { border-color: var(--teal); color: var(--teal-text); }
.pagination .dots { border: 0; }
.empty { padding: 40px 0; color: var(--muted); max-width: 560px; }

/* --------------------------------------------------------------------------
   Single article
   -------------------------------------------------------------------------- */
.article__head { padding-top: clamp(28px, 5vw, 64px); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--teal-050); color: var(--teal-text); text-decoration: none; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.tag .icon { width: 14px; height: 14px; }
.article__title { font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -0.038em; margin-bottom: 24px; }
.article__byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.95rem; margin: 0; }
.article__byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article__byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.article__media { margin: clamp(28px, 5vw, 56px) 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8.5; background: var(--bg-soft); }
.article__media img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; }
.article__body { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 32px; }
.article__body > p:first-of-type { font-size: 1.2em; color: var(--ink); }
.article__foot { padding-bottom: clamp(40px, 6vw, 72px); }
.tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.share { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.share__label { margin: 0; font-weight: 700; color: var(--ink); }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.share a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.share a:hover { border-color: var(--teal); color: var(--teal-text); }
.author { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); margin-bottom: 32px; }
.author img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.author__name { font-weight: 800; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.author p { margin-bottom: 6px; color: var(--muted); }
.author__links { font-weight: 600; }
@media (max-width: 520px) { .author { flex-direction: column; } }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.postnav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; line-height: 1.35; }
.postnav__link span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.postnav__link:hover { border-color: var(--teal); }
.postnav__link--next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .postnav { grid-template-columns: 1fr; } .postnav__link--next { grid-column: auto; text-align: left; } }
.related { background: var(--bg-soft); padding-block: clamp(56px, 8vw, 100px); }
.related .section__title { margin-bottom: 32px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* Comments */
.comments-wrap { padding-bottom: 48px; }
.comments__list { list-style: none; padding: 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 4px; }
.form__title { font-size: 1.6rem; margin-bottom: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.field label { font-weight: 650; font-size: 0.92rem; color: var(--ink); }
.field input, .field textarea, .searchform input, .comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea, .entry input[type="text"], .entry input[type="email"], .entry input[type="tel"], .entry textarea, .entry select {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea, .entry textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .entry input:focus, .entry textarea:focus, .searchform input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 123, 134, 0.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b42318; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--teal); flex: none; }
.field--check label { font-weight: 500; color: var(--muted); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin: 8px 0 0; }
.form__status:empty { display: none; }
.form__ok, .form__err { padding: 14px 18px; border-radius: 14px; margin: 0 0 16px; font-weight: 600; }
.form__ok { background: #e7f6ee; color: #12643a; }
.form__err { background: #fdecea; color: #a8201a; }
.entry .wpcf7-submit, .entry input[type="submit"] { display: inline-flex; min-height: 48px; padding: 0.7em 1.4em; border-radius: 999px; border: 0; background: var(--teal); color: #fff; font-weight: 650; cursor: pointer; }
.entry .wpcf7-submit:hover, .entry input[type="submit"]:hover { background: var(--teal-700); }
.entry .wpcf7-form p { margin-bottom: 14px; }
.entry .wpcf7-form label { font-weight: 650; color: var(--ink); font-size: 0.92rem; display: block; }

.searchform { position: relative; display: flex; align-items: center; gap: 8px; }
.searchform > .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.searchform input { padding-left: 46px; border-radius: 999px; }
.searchform .btn { flex: none; }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); align-items: start; }
.contact__side { display: flex; flex-direction: column; gap: 16px; }
.contact__card { padding: 26px; border-radius: var(--radius); background: var(--teal-900); color: #dcefef; }
.contact__card h2 { color: #fff; font-size: 1.3rem; margin: 14px 0 6px; }
.contact__card .btn { --btn-bg: #fff; --btn-fg: var(--teal-900); border-color: #fff; white-space: normal; text-align: center; }
.contact__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); align-items: center; justify-content: center; color: #fff; }
.contact__card--plain { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line-soft); }
.contact__card--plain h2 { color: var(--ink); margin-top: 0; }
.contact__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact__list li { display: flex; align-items: center; gap: 10px; }
.contact__list a { color: var(--ink); font-weight: 650; text-decoration: none; word-break: break-all; }
.contact__main .form { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.contact__extra { margin-top: 32px; padding-bottom: 0; }
.contact--builder { grid-template-columns: 1fr; }
.contact--builder .contact__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact--builder .contact__extra { margin-top: 0; }
@media (max-width: 900px) { .contact, .contact--builder .contact__side { grid-template-columns: 1fr; } }

/* 404 */
.notfound { padding-block: clamp(48px, 8vw, 110px); }
.notfound__code { font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; margin: 0 0 12px; background: linear-gradient(135deg, var(--teal), var(--teal-900)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .searchform { margin: 28px 0 18px; }
.notfound__links { list-style: none; padding: 0; margin: 0 0 56px; display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line-soft); padding-top: clamp(56px, 8vw, 96px); font-size: 0.96rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.brand--footer { background: #fff; padding: 8px 12px; border-radius: 12px; }
.site-footer__tagline { margin: 18px 0; color: var(--muted); max-width: 26em; }
.site-footer__title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.site-footer__col a:hover { color: var(--teal-text); }
.site-footer__news p { color: var(--muted); }
.socials { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.socials a:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.socials--labels { flex-direction: column; }
.socials--labels a { width: auto; height: auto; border: 0; background: none; border-radius: 0; gap: 10px; justify-content: flex-start; font-weight: 650; text-decoration: none; }
.socials--labels a:hover { background: none; color: var(--teal-text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 20px; }
.site-footer__bottom a { color: var(--muted); }
.site-footer__credit a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-footer__credit a:hover { color: var(--teal-text); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Motion. Hidden states apply only when JS runs and motion is allowed.
   -------------------------------------------------------------------------- */
html.js.motion .rise-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
html.js.motion .rise-word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
html.js.motion [data-rise].is-in .rise-word > span { transform: none; }
html.js.motion .rise-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
html.js.motion .rise-line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
html.js.motion [data-rise].is-in .rise-line > span { transform: none; }
html.js.motion [data-rise].is-in .rise-line:nth-child(2) > span { transition-delay: 0.08s; }
html.js.motion [data-rise].is-in .rise-line:nth-child(3) > span { transition-delay: 0.16s; }
html.js.motion [data-rise].is-in .rise-line:nth-child(4) > span { transition-delay: 0.24s; }
html.js.motion [data-rise].is-in .rise-line:nth-child(n+5) > span { transition-delay: 0.3s; }

html.js.motion [data-fade] { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease-out) 0.2s, transform 0.9s var(--ease-out) 0.2s; }
html.js.motion [data-fade].is-in { opacity: 1; transform: none; }

html.js.motion [data-blur] { opacity: 0; filter: blur(12px); transform: translateY(28px) scale(0.985); transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
html.js.motion [data-blur].is-in { opacity: 1; filter: none; transform: none; }
html.js.motion [data-blur].is-past { opacity: 0.25; filter: blur(6px); transform: translateY(-12px) scale(0.985); }

html.js.motion [data-grow] { transform: scale(0.92); opacity: 0.001; transition: transform 1.1s var(--ease-out), opacity 0.8s var(--ease-out); }
html.js.motion [data-grow].is-in { transform: none; opacity: 1; }

html.js.motion [data-draw] path, html.js.motion [data-draw] circle, html.js.motion [data-draw] rect { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.4s var(--ease-out) 0.15s; }
html.js.motion [data-draw].is-in path, html.js.motion [data-draw].is-in circle, html.js.motion [data-draw].is-in rect { stroke-dashoffset: 0; }

[data-parallax] { will-change: transform; }

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

/* Print */
@media print {
	.site-header, .site-footer, .cta, .share, .postnav, .related, .search-dialog, .mobile-menu { display: none !important; }
	body { color: #000; background: #fff; }
	html.js.motion [data-blur], html.js.motion [data-grow], html.js.motion [data-fade] { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* Lightweight YouTube player */
.yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--radius); }
.av-video .yt { border-radius: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.6s var(--ease), opacity 0.3s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--teal-900); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--ease); }
.yt__play .icon { width: 40px; height: 40px; }
.yt:hover .yt__play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.book__cover--scene img { object-fit: cover; object-position: 0% 50%; height: 100%; margin-top: 0; transform: scale(1.14); transform-origin: 8% 50%; }

/* ==========================================================================
   Compact, professional refinements (v1.1)
   ========================================================================== */

/* Utility bar */
.topbar { background: var(--teal-900); color: #b9dfe2; font-size: 0.78rem; }
.topbar__inner { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__tag { margin: 0; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; font-size: 0.7rem; }
.topbar__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 16px; }
.topbar__links a { color: #e3f1f2; text-decoration: none; display: inline-flex; align-items: center; }
.topbar__links a:hover { color: #fff; text-decoration: underline; }
.topbar__social .icon { width: 15px; height: 15px; }
@media (max-width: 760px) { .topbar__tag, .topbar__email { display: none; } .topbar__inner { justify-content: center; } }

/* Header and navigation */
.nav__link { font-size: 0.9rem; height: 36px; padding: 0 11px; border-radius: 6px; }
.nav__toggle { margin-left: -6px; }
.mega__inner { padding-top: 26px; padding-bottom: 30px; gap: 40px; }
.mega__feature-img { border-radius: 8px; }
.icon-btn { min-width: 40px; height: 40px; border-radius: 8px; }

/* Cards */
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: 14px 16px 16px; }
.card__meta { font-size: 0.74rem; margin-bottom: 6px; }
.card__meta span { font-size: 0.66rem; }
.card__title { font-size: 1rem; line-height: 1.35; letter-spacing: -0.005em; margin-bottom: 6px; }
.card__excerpt { font-size: 0.88rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__badge { border-radius: 6px; font-size: 0.7rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.card--feature .card__media { min-height: 300px; }
.card--feature .card__body { padding: clamp(20px, 3vw, 40px); }
.card--feature .card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.015em; }
.card--feature .card__excerpt { -webkit-line-clamp: 3; font-size: 0.98rem; }
.chips { margin-bottom: 24px; }
.chip { min-height: 32px; padding: 4px 12px; font-size: 0.82rem; border-radius: 6px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border-radius: 8px; }
.listing { padding-bottom: clamp(36px, 5vw, 64px); }

/* Content */
.entry { padding-bottom: clamp(36px, 5vw, 64px); }
.entry--prose { font-size: 1.06rem; line-height: 1.72; }
.entry h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 1.6em 0 0.5em; }
.entry h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); }
.entry img, .entry iframe { border-radius: 10px; }
.av-section { padding: clamp(24px, 4vw, 48px) 0; }
.av-section--image { padding-block: clamp(36px, 6vw, 72px); }
.av-heading { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -0.012em; }
h3.av-heading { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
.av-subheading { font-size: 1rem; }
.av-promo { border-radius: var(--radius); padding: clamp(18px, 2.5vw, 26px); }
.av-quote { border-radius: var(--radius); padding: 20px 22px; }
.av-quote blockquote { font-size: 0.98rem; }
.av-iconbox, .av-team { border-radius: var(--radius); padding: 20px; }
.av-toggle { border-radius: 10px; }
.av-toggle summary { padding: 14px 18px; }
.av-video, .yt { border-radius: var(--radius); }
.subpages a { border-radius: 10px; padding: 14px 16px; }

/* Single article */
.article__head { padding-top: clamp(20px, 3vw, 40px); }
.article__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.018em; margin-bottom: 18px; }
.article__media { aspect-ratio: 16 / 7.5; border-radius: var(--radius-lg); margin-top: clamp(20px, 3vw, 36px); }
.article__body { padding-top: clamp(24px, 3.5vw, 40px); }
.article__body > p:first-of-type { font-size: 1.12em; }
.tag { border-radius: 6px; }
.author { border-radius: var(--radius); padding: 20px; }
.author img { width: 72px; height: 72px; }
.postnav__link { border-radius: 10px; padding: 14px 16px; }
.related { padding-block: clamp(40px, 5vw, 64px); }
.related .section__title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 22px; }

/* Forms, contact */
.field input, .field textarea, .searchform input, .entry input[type="text"], .entry input[type="email"], .entry input[type="tel"], .entry textarea, .entry select { border-radius: 8px; min-height: 46px; padding: 10px 14px; }
.searchform input { border-radius: 8px; padding-left: 44px; }
.searchform > .icon { width: 18px; height: 18px; left: 14px; z-index: 1; }
.contact__card { border-radius: var(--radius); padding: 22px; }
.contact__main .form { border-radius: var(--radius-lg); }

/* Footer */
.site-footer { padding-top: clamp(40px, 5vw, 64px); font-size: 0.92rem; }
.site-footer__grid { gap: 32px; }
.site-footer__bottom { margin-top: 36px; padding-block: 18px 24px; }
.socials a { width: 38px; height: 38px; border-radius: 8px; }
.brand--footer { border-radius: 8px; }

/* Search dialog and 404 */
.search-dialog__panel { border-radius: 14px; }
.search-dialog__results a { border-radius: 8px; }
.notfound { padding-block: clamp(36px, 6vw, 80px); }
.notfound__code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); }
.site-footer__title, h2.eyebrow, .subpages__title, .form__title, .contact__card h2, .comments__title { font-family: var(--font-sans); }
.subpages__title, .form__title, .contact__card h2 { font-weight: 700; }
.about-band__grid { max-width: none; grid-template-columns: 200px minmax(0, 46em); }
.book__cover--scene img { object-position: 0% 50%; transform: scale(1.3); transform-origin: 0% 50%; }
.book__cover--scene img { transform: scale(1.55); }
@media (max-width: 640px) { .about-band__grid { grid-template-columns: 1fr; } .about-band__media { max-width: 180px; } }
.av-section--alt, .av-section--image { padding-inline: clamp(20px, 4vw, 48px); }

/* Language switcher and notices */
.lang-switch { list-style: none; margin: 0; padding: 0; display: inline-flex; align-items: center; gap: 2px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 5px; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-decoration: none; }
.lang-switch--top a { color: #b9dfe2; }
.lang-switch--top a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.lang-switch--top a.is-current { color: var(--teal-900); background: #e3f1f2; }
.lang-switch--footer a, .lang-switch--mobile a { color: var(--muted); border: 1px solid var(--line); height: 32px; min-width: 40px; }
.lang-switch--footer a.is-current, .lang-switch--mobile a.is-current { color: #fff; background: var(--teal); border-color: var(--teal); }
.lang-switch--mobile { justify-content: center; gap: 8px; }
.topbar__inner { gap: 20px; }
.topbar__inner > .lang-switch { margin-left: -4px; }
.lang-notice { padding: 12px 16px; border-radius: 10px; background: var(--teal-050); border: 1px solid rgba(0, 123, 134, 0.2); color: var(--ink); font-size: 0.92rem; }

/* v1.2: longer FR/ES labels never widen the layout */
.hero__copy, .hero__grid > *, .who__grid > *, .cta__inner > * { min-width: 0; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
  .hero__actions .btn { width: 100%; }
  h1, h2, .hero__title { overflow-wrap: break-word; hyphens: auto; }
}

/* ==========================================================================
   v1.4: one consistent look for every post, whatever editor it came from
   ========================================================================== */
.entry .eyebrow { display: block; margin: 2.2em 0 4px; }
.entry .eyebrow + h2, .entry .eyebrow + h3 { margin-top: 0; }
.entry hr, .entry hr.entry-rule { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; max-width: none; }
.entry p:empty { display: none; }
.entry strong[style], .entry b[style] { color: inherit; }
/* Callout boxes from the editorial posts */
.entry div[style*="border-left"] { border-radius: 12px; }
.entry div[style*="border-left"] > p:last-child { margin-bottom: 0; }
.entry .slgr-quote-text, .entry [class*="quote-text"] { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
/* Images in old posts: never wider than the text, centred by default */
.entry img { max-width: 100%; height: auto; }
.entry .alignnone, .entry .aligncenter, .entry img.size-full, .entry img.size-large { display: block; margin-left: auto; margin-right: auto; }
.entry .alignleft { float: left; margin: 0.3em 1.4em 1em 0; max-width: 46%; }
.entry .alignright { float: right; margin: 0.3em 0 1em 1.4em; max-width: 46%; }
.entry .wp-caption { max-width: 100% !important; width: auto !important; margin: 2em auto; }
.entry .wp-caption img { margin: 0 auto; }
.entry::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .entry .alignleft, .entry .alignright { float: none; max-width: 100%; margin: 1.4em auto; } }
/* Collapsible sections saved in posts */
.entry details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 12px; overflow: hidden; }
.entry details > summary { padding: 16px 20px !important; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.entry details > summary::-webkit-details-marker { display: none; }
.entry details[open] > summary { border-bottom: 1px solid var(--line); }
.entry details > :not(summary) { padding-left: 20px; padding-right: 20px; }
/* Table of contents saved in posts by the Easy Table of Contents plugin */
.entry #ez-toc-container, .entry .ez-toc-container { display: block !important; width: auto !important; background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; padding: 20px 24px 14px !important; margin: 0 0 2em !important; box-shadow: none !important; font-size: 0.98rem; }
.entry .ez-toc-title-container { display: flex; align-items: center; margin: 0 0 10px; }
.entry .ez-toc-title { font-size: 0.72rem !important; font-weight: 700 !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-text) !important; margin: 0 !important; }
.entry .ez-toc-title-toggle, .entry .ez-toc-js-icon-con, .entry .eztoc-hide { display: none !important; }
.entry .ez-toc-list, .entry nav > .ez-toc-list { display: block !important; margin: 0 !important; padding: 0 0 0 1.2em !important; list-style: decimal !important; }
.entry .ez-toc-list li { margin: 0 0 6px !important; padding: 0 !important; background: none !important; }
.entry .ez-toc-list li::before { content: none !important; }
.entry .ez-toc-list a { color: var(--ink) !important; text-decoration: none; }
.entry .ez-toc-list a:hover { color: var(--teal-text) !important; text-decoration: underline; }
.entry .ez-toc-list ul { margin: 6px 0 0 !important; padding-left: 1.2em !important; list-style: disc !important; }
/* Cards: a post's first picture when it has no featured image */
.card__media img.card__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Tall portrait photos never fill the whole screen */
.entry img:not(.avatar):not([class*="emoji"]) { max-height: min(78vh, 720px); width: auto; object-fit: contain; }
.entry figure img, .entry .wp-caption img, .entry a > img { margin-left: auto; margin-right: auto; }
/* Side-by-side boxes inside posts stack on phones */
.entry [style*="grid-template-columns"] > *, .entry [style*="display: flex"] > *, .entry [style*="display:flex"] > * { min-width: 0; }
@media (max-width: 640px) {
  .entry [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .entry [style*="display: flex"], .entry [style*="display:flex"] { flex-wrap: wrap; }
  .entry [style*="grid-template-columns"] > :not(div):not(section):not(article):not(details):not(figure) { display: none; }
}
