/* =========================================================================
   Mediatrics 2026 — design system
   Brand: #FFB703 (amber) · #8ECAE6 (sky) · #FFFFFF  (official logo sheet)
   Type:  Cavolini (display/handwritten) · Nunito (body) — both self-hosted.
          Baloo 2 / Caveat remain in the stacks as local-font fallbacks only.
   ========================================================================= */

/* ---------- Brand font: Cavolini (per official logo sheet) ----------
   Drop the font files into assets/fonts/ (Cavolini.woff2 / Cavolini.ttf,
   Cavolini-Bold.woff2 / Cavolini-Bold.ttf). Until then, visitors with
   Cavolini installed (Microsoft 365) get it via local(); everyone else
   falls back to Baloo 2 / Caveat. */
@font-face {
	font-family: "Cavolini";
	src: local("Cavolini"), url("../assets/fonts/Cavolini.woff2") format("woff2"), url("../assets/fonts/Cavolini.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cavolini";
	src: local("Cavolini Bold"), url("../assets/fonts/Cavolini-Bold.woff2") format("woff2"), url("../assets/fonts/Cavolini-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Body font: Nunito (self-hosted variable font) ----------
   Was Google Fonts. That chain — render-blocking CSS from
   fonts.googleapis.com, then font files from fonts.gstatic.com — was the
   visible fallback-font flash on first load; it also downloaded Baloo 2
   and Caveat, which sit BEHIND Cavolini in the stacks and were never
   displayed (headings could even swap twice: system → Baloo 2 → Cavolini).
   Same-origin and preloaded, the swap window all but disappears. */
@font-face {
	font-family: "Nunito";
	src: url("../assets/fonts/Nunito-Variable.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Nunito";
	src: url("../assets/fonts/Nunito-Italic-Variable.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: italic;
	font-display: swap;
}

:root {
	--amber: #FFB703;
	--amber-dark: #E5A200;
	--sky: #8ECAE6;
	--sky-tint: #EAF5FB;
	--ink: #14303E;
	--ink-deep: #0D2230;
	--cream: #FFF9EF;
	--white: #FFFFFF;
	--text: #2C3E4A;
	--radius: 28px;
	--radius-sm: 16px;
	--shadow: 0 20px 60px rgba(20, 48, 62, 0.12);
	--font-display: "Cavolini", "Baloo 2", system-ui, sans-serif;
	--font-body: "Nunito", system-ui, sans-serif;
	--font-hand: "Cavolini", "Caveat", cursive;
	--header-h: 92px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win, even on elements whose class sets
   a display (e.g. .m-form-alt, .m-success-already are display: block). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--cream);
	overflow-x: hidden;
}
/* `hidden` on body alone doesn't stop horizontal panning on iOS — `clip`
   does, without creating a new scroll container (keeps GSAP pinning happy). */
@supports (overflow-x: clip) {
	html, body { overflow-x: clip; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px;
	z-index: 999;
	width: auto; height: auto; clip: auto;
	background: var(--ink); color: #fff;
	padding: 10px 18px; border-radius: 8px;
}

/* ---------- Layout primitives ---------- */
.m-container { width: min(1200px, 92vw); margin-inline: auto; }
.m-section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.m-section--sky { background: var(--sky-tint); }
.m-section--ink { background: var(--ink); color: #DBEAF3; }
.m-section--ink h2, .m-section--ink h3 { color: #fff; }
.m-center { text-align: center; }
.m-center .m-btn-row, .m-btn-row--center { justify-content: center; }

/* ---------- Typography ---------- */
.m-display {
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}
.m-display--xl { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.m-display--light { color: #fff; }
.m-kicker {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--amber-dark);
	margin: 0 0 14px;
}
.m-kicker--light { color: var(--amber); }
.m-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 56ch; }
.m-lead--center { margin-inline: auto; }
/* Straight per client feedback (Aug 2026) — no rotation on these lines. */
.m-handwritten {
	font-family: var(--font-hand);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	color: var(--amber-dark);
	margin: 0 0 4px;
	display: inline-block;
}
.m-statement { max-width: 22ch; margin-inline: auto; }
/* Partners commitment statement reads as a quiet opening line, not a giant
   block — the amber "Build with us" headline below it carries the section. */
.m-partners-statement {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-weight: 600;
	line-height: 1.4;
	max-width: 46ch;
	margin-inline: auto;
}
.m-partners-sub { margin-top: 28px; color: var(--amber-dark); }

/* Split-text words (JS wraps [data-split] content).
   Extra bottom padding keeps Cavolini's long descenders from clipping. */
.m-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.m-word > span { display: inline-block; }

/* ---------- Buttons ---------- */
.m-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 30px;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
	will-change: transform;
}
.m-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(20, 48, 62, 0.18); }
.m-btn:active { transform: translateY(0) scale(0.99); }
.m-btn--lg { padding: 18px 38px; font-size: 1.1rem; }
.m-btn--amber { background: var(--amber); color: var(--ink); }
.m-btn--amber:hover { background: var(--amber-dark); }
.m-btn--ink { background: var(--ink); color: #fff; }
.m-btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.m-section--ink .m-btn--outline { color: #fff; border-color: #fff; }
.m-btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.m-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 3px solid var(--amber);
	padding-bottom: 2px;
}
.m-arrow-link span { transition: transform 0.25s ease; }
.m-arrow-link:hover span { transform: translateX(6px); }

/* ---------- Header ---------- */
.m-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.m-header-inner {
	width: min(1320px, 94vw);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	transition: padding 0.35s ease;
}
.m-header.is-scrolled { background: rgba(255, 249, 239, 0.92); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(20, 48, 62, 0.08); }
.m-header.is-scrolled .m-header-inner { padding: 10px 0; }

.m-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.m-logo--vertical { flex-direction: column; gap: 2px; }
.m-logo-img { width: auto; transition: height 0.35s ease, transform 0.3s ease; }
.m-logo--vertical .m-logo-img { height: 72px; }
.m-header.is-scrolled .m-logo--vertical .m-logo-img { height: 54px; }
.m-logo--horizontal .m-logo-img { height: 46px; }
.m-logo:hover .m-logo-img { transform: scale(1.04); }
.m-logo-mark { width: 52px; height: auto; transition: transform 0.3s ease; }
.m-logo:hover .m-logo-mark { transform: rotate(-6deg) scale(1.06); }
.m-header.is-scrolled .m-logo--vertical .m-logo-mark { width: 40px; }
.m-wordmark {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--sky);
	letter-spacing: 0.01em;
}
.m-wordmark-accent { color: var(--amber); }
.m-logo--vertical .m-wordmark { font-size: 1.1rem; }
.m-hero-over .m-header:not(.is-scrolled) .m-wordmark { color: #fff; }

.m-nav-list { display: flex; gap: 6px; }
.m-nav-list a {
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	padding: 10px 16px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
}
.m-hero-over .m-header:not(.is-scrolled) .m-nav-list a { color: #fff; }
.m-nav-list a:hover { background: var(--amber); color: var(--ink); }
.m-nav-list .current-menu-item a, .m-nav-list .current_page_item a { background: rgba(142, 202, 230, 0.35); }

.m-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 10px;
	z-index: 102;
}
.m-burger span { width: 26px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
.m-hero-over .m-header:not(.is-scrolled) .m-burger span { background: #fff; }
body.nav-open .m-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .m-burger span:nth-child(2) { opacity: 0; }
body.nav-open .m-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
body.nav-open .m-burger span { background: var(--ink) !important; }

.m-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 101;
	background: var(--cream);
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
body.nav-open .m-mobile-nav { opacity: 1; pointer-events: auto; }
.m-mobile-nav-list { text-align: center; display: grid; gap: 8px; }
.m-mobile-nav-list a {
	font-family: var(--font-display);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}
.m-mobile-nav-list a:hover { color: var(--amber-dark); }

.m-main { min-height: 60vh; }
body:not(.m-hero-over) .m-main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.m-hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	align-items: end;
	overflow: hidden;
	background: var(--ink);
}
/* The fallback image paints behind the video/iframe so the hero is never
   a blank box (slow connections, blocked autoplay, embed failures). */
.m-hero-media { position: absolute; inset: 0; will-change: transform; background-size: cover; background-position: center; }
.m-hero-video {
	position: absolute;
	top: 50%; left: 50%;
	width: 100vw; height: 56.25vw;
	min-height: 100vh; min-width: 177.78vh;
	transform: translate(-50%, -50%);
	border: 0;
	object-fit: cover;
	pointer-events: none;
}
/* Self-hosted hero video crossfades in over the fallback image once it is
   actually playing (class added by initHeroVideo). Scoped to the <video>
   tag — the Vimeo/YouTube iframes never get the class and must stay visible. */
video.m-hero-video { opacity: 0; transition: opacity 0.9s ease; }
video.m-hero-video.is-playing { opacity: 1;
}
.m-hero-scrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(13, 34, 48, 0.35) 0%, rgba(13, 34, 48, 0.15) 45%, rgba(13, 34, 48, 0.78) 100%);
}
.m-hero-content { position: relative; z-index: 2; padding-bottom: clamp(90px, 14vh, 160px); }
.m-hero-title {
	color: #fff;
	font-size: clamp(2.4rem, 6.4vw, 5.2rem);
	font-weight: 800;
	max-width: 18ch;
	margin: 0 0 30px;
	text-wrap: balance;
}
.m-scroll-cue {
	position: absolute;
	bottom: 26px; left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 28px; height: 46px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
}
.m-scroll-cue-dot {
	position: absolute;
	top: 8px; left: 50%;
	width: 6px; height: 6px;
	margin-left: -3px;
	border-radius: 50%;
	background: var(--amber);
	animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(16px); opacity: 0.2; } 61% { opacity: 0; } }

/* ---------- Question ticker (marquee) ---------- */
.m-marquee {
	display: block;
	background: var(--amber);
	overflow: hidden;
	padding: 16px 0;
	transform: rotate(-1.2deg) scale(1.02);
	margin: -14px 0;
	position: relative;
	z-index: 3;
	box-shadow: var(--shadow);
	text-decoration: none;
	transition: background 0.25s ease;
}
.m-marquee:hover { background: var(--amber-dark); }
.m-marquee-track { display: flex; white-space: nowrap; width: max-content; }
.m-marquee-seg {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.8vw, 1.4rem);
	color: var(--ink);
	padding-right: 28px;
}
.m-marquee-seg em { font-style: normal; color: #fff; padding: 0 14px; }

/* ---------- Split sections ---------- */
.m-split-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(40px, 6vw, 90px);
	align-items: center;
}
.m-split-media { position: relative; }
.m-photo-card {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	position: relative;
	z-index: 1;
}
.m-photo-card img { width: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }
.m-photo-card--tall img { aspect-ratio: 4 / 5; }

.m-blob {
	position: absolute;
	width: clamp(180px, 24vw, 320px);
	aspect-ratio: 1;
	border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
	opacity: 0.5;
	z-index: 0;
	pointer-events: none;
}
.m-blob--amber { background: var(--amber); right: -60px; bottom: -50px; }
.m-blob--sky { background: var(--sky); left: -70px; top: -40px; }
.m-blob--tl { left: -90px; top: 30px; right: auto; bottom: auto; }
.m-blob--br { right: -90px; bottom: 20px; left: auto; top: auto; }

/* ---------- Teaser cards ---------- */
.m-card-trio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 56px;
}
.m-tease-card {
	position: relative;
	display: block;
	background: #fff;
	border-radius: var(--radius);
	padding: 40px 34px 56px;
	text-decoration: none;
	box-shadow: 0 10px 34px rgba(20, 48, 62, 0.08);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.m-tease-card:hover { transform: translateY(-10px) rotate(-0.5deg); box-shadow: 0 26px 60px rgba(20, 48, 62, 0.16); }
.m-tease-emoji { font-size: 2.2rem; display: block; margin-bottom: 18px; }
.m-tease-card h3 { font-size: 1.45rem; }
.m-tease-card p { margin: 0; }
.m-tease-more {
	position: absolute;
	right: 28px; bottom: 22px;
	font-size: 1.4rem;
	color: var(--amber-dark);
	transition: transform 0.25s ease;
}
.m-tease-card:hover .m-tease-more { transform: translateX(6px); }

/* ---------- CTA band ---------- */
.m-cta-band {
	background: var(--amber);
	padding: clamp(80px, 11vw, 150px) 0;
	position: relative;
	overflow: hidden;
}
.m-cta-band--sky { background: var(--sky); }
.m-cta-band .m-handwritten { color: var(--ink); }
.m-cta-band .m-display { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.m-page-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); overflow: hidden; }

/* ---------- Team ---------- */
.m-team-row {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(36px, 6vw, 90px);
	align-items: center;
	padding: clamp(40px, 6vw, 80px) 0;
}
.m-team-row--flip .m-team-photo { order: 2; }
.m-role {
	font-family: var(--font-hand);
	font-size: 1.5rem;
	color: var(--amber-dark);
	margin-top: -8px;
}

/* ---------- House Calls video ---------- */
.m-video-frame {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--ink-deep);
	box-shadow: var(--shadow);
	display: grid;
	place-items: center;
	margin-top: 40px;
}
.m-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-video-play {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
}
.m-video-play-icon {
	display: grid;
	place-items: center;
	width: 92px; height: 92px;
	border-radius: 50%;
	background: var(--amber);
	color: var(--ink);
	font-size: 1.6rem;
	padding-left: 6px;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.5);
	animation: pulse 2.4s infinite;
}
.m-video-play:hover .m-video-play-icon { transform: scale(1.12); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.45); } 70% { box-shadow: 0 0 0 26px rgba(255, 183, 3, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); } }

/* ---------- Podcast ---------- */
.m-podcast-art {
	background: var(--sky-tint);
	border-radius: var(--radius);
	padding: 60px 40px 40px;
	text-align: center;
	box-shadow: var(--shadow);
}
.m-eq { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 130px; }
.m-eq span {
	width: 14px;
	height: 40%;
	border-radius: 8px;
	background: var(--amber);
	transform-origin: bottom;
}
.m-eq span:nth-child(even) { background: var(--sky); }
.m-eq-caption { margin-top: 20px; }

.m-podcast-embed {
	border-radius: var(--radius-sm);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--sky-tint);
}
.m-podcast-embed iframe { display: block; width: 100%; border: 0; }

/* ---------- Archives / translate ---------- */
.m-translate { margin-top: 48px; }
.m-translate-label { font-weight: 700; font-family: var(--font-display); color: var(--ink); margin-bottom: 8px; }
.m-translate #google_translate_element { display: inline-block; }

/* ---------- Guide ---------- */
.m-guide-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 80px)); overflow: hidden; }
.m-book {
	margin: 0 auto;
	width: min(380px, 76%);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 40px 80px rgba(20, 48, 62, 0.28);
	position: relative;
	z-index: 1;
	will-change: transform;
}

/* 5 Ms — pinned horizontal scroll on desktop */
.m-fivems { overflow: hidden; }
.m-fivems-pin { padding: 30px 0 10px; }
.m-fivems-track {
	display: flex;
	gap: 28px;
	padding: 20px max(4vw, calc((100vw - 1200px) / 2));
	width: max-content;
}
.m-mcard {
	width: clamp(270px, 26vw, 360px);
	background: var(--ink-deep);
	border: 1px solid rgba(142, 202, 230, 0.25);
	border-radius: var(--radius);
	padding: 40px 34px;
	flex-shrink: 0;
	transition: transform 0.3s ease, border-color 0.3s ease;
}
.m-mcard:hover { transform: translateY(-8px); border-color: var(--amber); }
.m-mcard-icon { display: block; width: 52px; height: 52px; margin-bottom: 16px; }
.m-mcard-icon svg { width: 100%; height: 100%; }
.m-mcard-icon img { width: 52px; height: 52px; object-fit: contain; }
.m-mcard-num {
	font-family: var(--font-hand);
	font-size: 1.6rem;
	color: var(--sky);
}
.m-mcard-title { color: var(--amber); font-size: 1.7rem; margin: 8px 0 10px; }
.m-mcard p { margin: 0; color: #C7DCE8; }

/* killer Bes */
.m-bes { display: grid; gap: 6px; margin-top: 30px; }
.m-be span {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2rem, 5.4vw, 3.8rem);
	color: var(--ink);
	position: relative;
	line-height: 1.2;
}
.m-be span::after {
	content: "";
	position: absolute;
	left: 0; bottom: 6px;
	width: 100%; height: 0.22em;
	background: var(--amber);
	opacity: 0.55;
	z-index: -1;
	border-radius: 4px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.m-be.is-inview span::after { transform: scaleX(1); }
.m-be:nth-child(even) span { color: var(--amber-dark); }
.m-be:nth-child(even) span::after { background: var(--sky); }

/* ---------- Partners ---------- */
.m-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.m-chip {
	font-family: var(--font-display);
	font-weight: 700;
	background: #fff;
	border: 2px solid var(--sky);
	color: var(--ink);
	border-radius: 999px;
	padding: 12px 24px;
	font-size: 1.02rem;
}
.m-chip--amber { background: var(--amber); border-color: var(--amber); }

.m-partner-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin-top: 54px;
}
.m-partner-card {
	background: #fff;
	border: 0;
	border-radius: var(--radius);
	padding: 38px 32px;
	text-align: left;
	text-decoration: none;
	box-shadow: 0 10px 34px rgba(20, 48, 62, 0.08);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
	display: block;
}
.m-partner-card:hover { transform: translateY(-8px); box-shadow: 0 24px 54px rgba(20, 48, 62, 0.15); }
.m-partner-card h3, .m-partner-card .m-partner-title {
	display: block;
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.12;
	font-weight: 700;
	font-size: 1.3rem;
	margin: 18px 0 8px;
}
.m-partner-card p { margin: 0; font-size: 0.98rem; }
.m-partner-logo { display: flex; align-items: center; height: 112px; }
.m-partner-logo img { max-height: 112px; max-width: 260px; width: auto; height: auto; object-fit: contain; }
.m-partner-initial {
	display: grid;
	place-items: center;
	width: 92px; height: 92px;
	border-radius: 24px;
	background: var(--sky-tint);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 2.4rem;
}
.m-partner-card--cta { border: 3px dashed var(--sky); background: transparent; box-shadow: none; width: 100%; }
.m-partner-card--cta .m-partner-initial { background: var(--amber); }
.m-partner-card--cta:hover { background: #fff; }

/* ---------- Modal ----------
   The overlay itself scrolls (flex + margin:auto card) so tall forms are
   always reachable on small screens — including with the keyboard open. */
.m-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	padding: 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
.m-modal[hidden] { display: none; }
.m-modal-backdrop { position: fixed; inset: 0; background: rgba(13, 34, 48, 0.6); backdrop-filter: blur(6px); }
.m-modal-card {
	position: relative;
	margin: auto;
	background: #fff;
	border-radius: var(--radius);
	padding: 44px 40px;
	width: min(520px, 100%);
	box-shadow: 0 40px 90px rgba(13, 34, 48, 0.35);
}
.m-modal-x {
	position: absolute;
	top: 14px; right: 18px;
	background: none;
	border: 0;
	font-size: 2rem;
	line-height: 1;
	color: var(--ink);
	opacity: 0.6;
}
.m-modal-x:hover { opacity: 1; }
.m-modal-title { font-size: 1.7rem; margin-bottom: 4px; }
.m-modal-sub { margin-top: 0; }
.m-hp { position: absolute; left: -9999px; }
.m-field { display: grid; gap: 6px; margin-bottom: 16px; }
.m-field[hidden] { display: none; }
.m-field span { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.m-field input, .m-field textarea {
	font: inherit;
	padding: 12px 16px;
	border: 2px solid #D9E6EE;
	border-radius: var(--radius-sm);
	background: var(--cream);
	transition: border-color 0.2s ease;
}
.m-field input:focus, .m-field textarea:focus { outline: none; border-color: var(--sky); }
.m-dictate {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--ink);
	background: none;
	border: 2px solid #D9E6EE;
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.m-dictate:hover { border-color: var(--sky); }
.m-dictate.is-listening {
	border-color: #C0392B;
	color: #C0392B;
	animation: rec-blink 1.2s ease-in-out infinite;
}
.m-video-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.m-video-btn {
	position: relative;
	flex: 1;
	min-width: 150px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 2px dashed var(--sky);
	border-radius: var(--radius-sm);
	padding: 14px 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
	text-align: center;
}
.m-video-btn:hover { border-color: var(--amber); background: var(--cream); }
.m-video-btn input {
	position: absolute;
	width: 1px; height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.m-recorder { margin-top: 12px; background: var(--ink-deep); border-radius: var(--radius-sm); padding: 14px; }
.m-recorder[hidden] { display: none; }
.m-recorder-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; object-fit: cover; display: block; }
.m-recorder-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.m-recorder-timer {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: #fff;
	background: #C0392B;
	border-radius: 999px;
	padding: 4px 12px;
	animation: rec-blink 1.2s ease-in-out infinite;
}
@keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.m-recorder-btn {
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.92rem;
	transition: transform 0.2s ease, background 0.2s ease;
}
.m-recorder-btn:hover { transform: translateY(-2px); }
.m-recorder-btn--rec { background: var(--amber); color: var(--ink); }
.m-recorder-btn--rec:hover { background: var(--amber-dark); }
.m-recorder-btn--ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.m-recorder-hint { color: #9FB9C8; font-size: 0.85rem; margin: 10px 0 0; }
.m-video-chosen { font-weight: 700; color: var(--ink); margin: 10px 0 0; }
.m-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 0.9rem; cursor: pointer; }
.m-consent input { margin-top: 3px; flex-shrink: 0; }
.m-consent[hidden] { display: none; }
.m-upload-progress { height: 8px; background: #E2EDF4; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.m-upload-bar { height: 100%; width: 0; background: var(--amber); border-radius: 999px; transition: width 0.2s ease; }
.m-form-error { color: #C0392B; font-weight: 700; }
.m-form-submit { width: 100%; justify-content: center; }
.m-form-alt {
	display: block;
	margin-top: 12px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: 0.85;
}
.m-form-alt:hover { opacity: 1; }
.m-form-success { text-align: center; padding: 20px 0 8px; }
.m-success-mark {
	width: 74px; height: 74px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--amber);
	color: var(--ink);
	font-size: 2rem;
	font-weight: 800;
}
.m-success-msg { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.m-success-pitch { margin-top: 12px; color: var(--text); font-size: 0.98rem; line-height: 1.55; }
.m-success-cta { margin-top: 14px; }
.m-success-cta.is-done { background: var(--sky); pointer-events: none; }
.m-success-already {
	display: block;
	margin: 12px auto 0;
	background: none;
	border: 0;
	padding: 4px 8px;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.85rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	opacity: 0.75;
}
.m-success-already:hover { opacity: 1; }
.m-success-note { margin-top: 14px; font-weight: 700; color: var(--ink); }

/* ---------- Footer ---------- */
.m-footer { background: var(--ink-deep); color: #B9CFDC; padding: clamp(60px, 8vw, 100px) 0 40px; }
.m-footer-inner {
	width: min(1200px, 92vw);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 48px;
	align-items: start;
}
.m-footer .m-wordmark { font-size: 1.5rem; }
.m-footer-tag { max-width: 34ch; }
.m-footer-nav-list { display: grid; gap: 8px; }
.m-footer-nav-list a { color: #DBEAF3; text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.m-footer-nav-list a:hover { color: var(--amber); }
.m-footer-meta { text-align: right; }
.m-socials { display: flex; gap: 16px; justify-content: flex-end; margin-bottom: 18px; list-style: none; padding: 0; }
.m-social { display: inline-flex; color: #DBEAF3; }
.m-social-icon { width: 24px; height: 24px; }
a.m-social:hover { color: var(--amber); }
.m-social--soon { opacity: 0.55; cursor: default; }
.m-copyright { font-size: 0.92rem; }
.m-copyright a { color: inherit; }
.m-copyright a:hover { color: var(--amber); }

/* ---------- Prose / archive fallback ---------- */
.m-prose { max-width: 760px; }
.m-prose a { color: var(--amber-dark); }
.m-prose ul, .m-prose ol { list-style: disc; padding-left: 1.4em; margin: 0 0 1.4em; }
.m-prose ol { list-style: decimal; }
.m-prose li { margin-bottom: 0.4em; }
.m-prose h2 { font-size: 1.6rem; margin: 2em 0 0.5em; }
.m-prose h2:first-child { margin-top: 0; }
.m-prose h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }

/* Submit-a-video guidelines */
.m-guidelines { margin: 40px auto 0; background: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); box-shadow: 0 10px 34px rgba(20, 48, 62, 0.08); }
.m-guidelines h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.m-guidelines h3:first-child { margin-top: 0; }
.m-archive-item { padding: 26px 0; border-bottom: 1px solid rgba(20, 48, 62, 0.12); }
.m-archive-item h2 { font-size: 1.4rem; margin-bottom: 2px; }
.m-archive-item h2 a { text-decoration: none; }
.m-archive-item h2 a:hover { color: var(--amber-dark); }
.m-archive-date { font-family: var(--font-hand); font-size: 1.2rem; color: var(--amber-dark); margin: 0 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.m-card-trio, .m-partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.m-nav { display: none; }
	.m-burger { display: flex; }
	.m-split-grid, .m-team-row { grid-template-columns: 1fr; }
	.m-team-row--flip .m-team-photo { order: 0; }
	.m-footer-inner { grid-template-columns: 1fr; text-align: center; }
	.m-footer-meta { text-align: center; }
	.m-socials { justify-content: center; }
	.m-footer-tag { margin-inline: auto; }
	.m-fivems-track { padding-inline: 6vw; }
}
@media (max-width: 640px) {
	.m-card-trio, .m-partner-grid { grid-template-columns: 1fr; }
	.m-modal-card { padding: 34px 24px; }
	.m-btn--lg { padding: 15px 28px; font-size: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.m-scroll-cue { display: none; }
}
