/* Janamax — site styles (ported from "Janamax Home" design). */

@font-face { font-family: 'Road Radio'; src: url('../fonts/RoadRadio-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Road Radio'; src: url('../fonts/RoadRadio.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
	--jm-bg: #091724;
	--jm-text: #e6eef3;
	--jm-accent: #E74D0F;
	--jm-accent-hover: #F2622A;
	--jm-muted: #9fb0ba;
	--jm-glass: rgba(29, 49, 65, 0.62);
	--jm-card: linear-gradient(90deg, #1B2733 0%, #091724 100%);
	--jm-display: 'Road Radio', 'Barlow Condensed', sans-serif;
	--jm-body: 'Geist', system-ui, sans-serif;
	--jm-gutter: clamp(20px, 4vw, 44px);
	--jm-section-pad: clamp(60px, 6.5vw, 100px);
}

html, body { margin: 0; padding: 0; background: var(--jm-bg); }
*, *::before, *::after { box-sizing: border-box; }
body.jm { font-family: var(--jm-body); color: var(--jm-text); overflow-x: hidden; }
.jm img { max-width: none; }
.jm a { color: #dbe7ee; text-decoration: none; }
.jm a:hover { color: #7fd463; }
.jm h1, .jm h2, .jm h3 { clear: none; }
.jm .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.jm-accent { color: var(--jm-accent); font-weight: 400; }

.jm-glass {
	background: var(--jm-glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	border-radius: 14px;
}

/* ---------- Buttons ---------- */
.jm-btn {
	display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: 14px;
	padding: 20px 30px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 6px;
	background: transparent; color: #eef4f8 !important;
	font-family: var(--jm-display); font-size: 19px; letter-spacing: 0.16em;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.jm-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff !important; border-color: #fff; }
.jm-btn svg { width: 20px; height: 20px; fill: currentColor; }
.jm-btn--primary { border-color: var(--jm-accent); background: var(--jm-accent); color: #fff !important; }
.jm-btn--primary:hover { background: var(--jm-accent-hover); border-color: var(--jm-accent); }
@keyframes jm-arrow-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.jm-btn:hover svg { animation: jm-arrow-nudge 0.9s ease-in-out infinite; }

/* ---------- Header ---------- */
.jm-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.jm-header__inner {
	--pad: 18px; --gap: 16px; --mark: 48px; --word: 22px; --sub: 14px; --sub-gap: 8px;
	padding: var(--pad) clamp(20px, 3vw, 48px);
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	transition: padding 0.3s ease;
}
.is-scrolled .jm-header__inner { --pad: 10px; --gap: 10px; --mark: 32px; --word: 15px; --sub: 10px; --sub-gap: 5px; }
.jm-logo { display: flex; align-items: center; gap: var(--gap); transition: gap 0.3s ease; }
.jm-logo__mark { height: var(--mark); width: auto; display: block; transition: height 0.3s ease; }
.jm-logo__word { height: var(--word); width: auto; display: block; transition: height 0.3s ease; }
.jm-logo__sub {
	font-family: 'Barlow', sans-serif; font-weight: 400; font-size: var(--sub); letter-spacing: 0.32em;
	color: var(--jm-muted); margin-top: var(--sub-gap); padding-left: 2px;
	transition: font-size 0.3s ease, margin-top 0.3s ease;
}
.jm-nav {
	display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding: 20px clamp(26px, 3vw, 42px);
	font-family: var(--jm-display); font-size: 18px; letter-spacing: 0.16em;
}
.jm .jm-nav a, .jm .jm-mnav a { color: var(--jm-accent); transition: color 0.2s ease; }
.jm .jm-nav a:hover, .jm .jm-mnav a:hover { color: #fff; }
.jm .jm-nav a[aria-current="page"] { color: #fff; }

.jm-burger {
	display: none; width: 52px; height: 52px; align-items: center; justify-content: center;
	border: none; padding: 0; cursor: pointer; color: var(--jm-accent);
}
.jm-burger svg { width: 24px; height: 24px; }
.jm-burger .jm-burger__close { display: none; }
.menu-open .jm-burger .jm-burger__open { display: none; }
.menu-open .jm-burger .jm-burger__close { display: block; }
@keyframes jm-icon-spin { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } to { opacity: 1; transform: none; } }
.jm-burger svg { animation: jm-icon-spin 0.3s ease both; }

.jm-mnav {
	display: none; position: absolute; top: calc(100% + 4px); left: clamp(12px, 3vw, 48px); right: clamp(12px, 3vw, 48px);
	flex-direction: column; padding: 8px 20px; font-family: var(--jm-display); font-size: 20px; letter-spacing: 0.16em;
	background: rgba(20, 36, 50, 0.92); transform-origin: top center;
}
.jm-mnav a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.jm-mnav a:last-child { border-bottom: none; }
@keyframes jm-menu-in { from { opacity: 0; transform: translateY(-10px) scale(0.97); clip-path: inset(0 0 100% 0 round 14px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); } }
@keyframes jm-menu-item { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.menu-open .jm-mnav { display: flex; animation: jm-menu-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
.menu-open .jm-mnav a { animation: jm-menu-item 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.jm-mnav a:nth-child(1) { animation-delay: 0.08s; }
.jm-mnav a:nth-child(2) { animation-delay: 0.14s; }
.jm-mnav a:nth-child(3) { animation-delay: 0.2s; }

/* ---------- Floating contact dock ---------- */
.jm-dock {
	position: fixed; z-index: 60; display: flex; overflow: hidden;
	right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 3vw, 32px); width: 92px; flex-direction: column;
}
.jm .jm-dock a {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px;
	color: #dbe7ee; font-family: var(--jm-body); font-weight: 500; font-size: 13px; letter-spacing: 0.02em;
	text-align: center; transition: color 0.2s ease;
}
.jm .jm-dock a:hover { color: var(--jm-accent); }
.jm-dock svg { width: 30px; height: 30px; }
.jm-dock__sep { height: 1px; margin: 0 12px; background: rgba(255, 255, 255, 0.12); }
.jm-dock__top, .jm-dock__top-sep { display: none !important; }
.show-top .jm-dock__top { display: flex !important; }
.show-top .jm-dock__top-sep { display: block !important; }

/* ---------- Hero ---------- */
.jm-hero { position: relative; background: var(--jm-bg); }
.jm-hero__frame { position: relative; overflow: hidden; min-height: clamp(440px, 38vw, 660px); display: flex; align-items: center; }
.jm-hero__media { position: absolute; inset: 0; }
.jm-hero__media picture { display: contents; }
.jm-hero__img {
	display: block; width: 100%; height: 100%; object-fit: cover; object-position: 35% bottom;
	transform: scale(1.15) translateX(4%); transform-origin: center bottom;
}
.jm-hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(4, 12, 18, 0.9) 0%, rgba(5, 16, 23, 0.7) 32%, rgba(6, 18, 25, 0.12) 58%, rgba(6, 18, 25, 0) 78%);
}
.jm-hero__content {
	position: relative; width: 100%; max-width: 1440px; margin: 0 auto;
	padding: clamp(40px, 5vw, 80px) var(--jm-gutter); pointer-events: none;
}
.jm-hero__title {
	max-width: 960px; font-family: var(--jm-display); font-weight: 300; font-size: clamp(48px, 6.2vw, 83px);
	line-height: 0.98; letter-spacing: 0.01em; margin: 0; text-wrap: balance;
}
.jm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.jm-hero__actions a { pointer-events: auto; }

/* ---------- Sections ---------- */
.jm-section { background: var(--jm-bg); position: relative; overflow: hidden; }
.jm-section--rule { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.jm-section__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.jm-section__inner { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: var(--jm-section-pad) var(--jm-gutter); }
.jm-title {
	font-family: var(--jm-display); font-weight: 300; font-size: clamp(40px, 5.6vw, 73px); letter-spacing: 0.03em;
	margin: 0; text-align: center; overflow-wrap: anywhere; line-height: 1.05;
}
.jm-smoke {
	position: absolute; width: 1320px; height: auto; mix-blend-mode: lighten; opacity: 0.38;
	-webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
}

/* ---------- Projects ---------- */
.jm-projects__smoke { left: -700px; bottom: -80px; transform: rotate(24deg); }
.jm-track {
	/* Full-bleed: cards start at the screen's left gutter, not at the 1440px container's edge. */
	--edge: var(--jm-gutter);
	margin-top: 88px; margin-left: calc(50% - 50vw); width: 100vw; display: flex; gap: 22px;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; align-items: flex-start; min-height: 426px;
	padding-left: var(--edge); padding-right: var(--edge); scroll-padding-left: var(--edge);
}
.jm-track::-webkit-scrollbar { display: none; }
.jm-card {
	flex: none; width: clamp(260px, 26vw, 340px); scroll-snap-align: start; border-radius: 12px; overflow: hidden;
	border-right: 1px solid var(--jm-accent); background: var(--jm-card); display: flex; flex-direction: column;
	transition: border-color 0.2s ease;
}
.jm-card:hover { border-right-color: var(--jm-accent-hover); }
.jm a.jm-card, .jm a.jm-card:hover { color: #e6eef3; }
.jm-card__media { height: 220px; position: relative; overflow: hidden; }
.jm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.jm-card:hover .jm-card__media img { transform: scale(1.1); }
.jm-card__body { padding: 20px 20px 24px; }
.jm-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.jm-card__title {
	font-family: var(--jm-display); font-weight: 300; font-size: 20px; letter-spacing: 0.03em; margin: 0;
	overflow-wrap: anywhere; transition: color 0.25s ease;
}
.jm-card:hover .jm-card__title { color: var(--jm-accent); }
.jm-card__arrow { flex: none; width: 18px; height: 18px; fill: #cfdbe2; transform: rotate(-45deg); transition: transform 0.3s ease; }
.jm-card:hover .jm-card__arrow { transform: rotate(0deg); }
.jm-card__desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.35s ease, opacity 0.35s ease; }
.jm-card:hover .jm-card__desc { grid-template-rows: 1fr; opacity: 1; }
.jm-card__desc > div { overflow: hidden; min-height: 0; }
.jm-card__desc p { margin: 0; padding-top: 10px; font-size: 16px; line-height: 1.5; color: #b9c8d1; text-wrap: pretty; }
/*
 * Always exactly three lines tall (shorter text keeps the space, longer text is clipped), so every card
 * expands to the same height and stays inside the track's reserved min-height, clear of the buttons below.
 */
.jm-card__desc p {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
	box-sizing: content-box; height: 4.5em;
}

.jm-projects__controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.jm-projects__arrows { display: flex; justify-content: flex-end; gap: 10px; }
.jm-arrow {
	width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; background: transparent;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.jm-arrow:hover { border-color: var(--jm-accent); background: rgba(231, 77, 15, 0.12); }
.jm-arrow svg { width: 20px; height: 20px; fill: #eef4f8; }
.jm-arrow--prev svg { transform: scaleX(-1); }

/* ---------- Capabilities ---------- */
.jm-caps__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.jm-caps__bg::after { content: ''; position: absolute; inset: 0; background-color: #060C14A5; }
.jm-caps__grid {
	margin-top: 88px; display: grid; column-gap: 20px; row-gap: 48px;
	grid-template-columns: repeat(auto-fit, minmax(max(calc((100% - 100px) / 6), min(calc((100% - 40px) / 3), calc((120px - (100% - 100px) / 6) * 1000)), min(100%, calc((180px - (100% - 40px) / 3) * 1000))), 1fr));
}
.jm-cap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 12px; text-align: center; min-width: 0; }
.jm-tile {
	flex: none; width: 120px; height: 120px; border-radius: 22px; background: var(--jm-card);
	border-right: 1px solid var(--jm-accent); display: flex; align-items: center; justify-content: center;
}
.jm-cap .jm-tile { margin-bottom: 8px; }
.jm-tile__icon--cap { width: 82px; height: 82px; }
.jm-tile__icon--step { width: 64px; height: 64px; display: block; }
.jm-cap__title {
	font-family: var(--jm-body); font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; margin: 6px 0 0;
	font-size: clamp(17px, 1.5vw, 20px); hyphens: manual; text-wrap: pretty;
}

/* ---------- Approach ---------- */
.jm-approach__smoke-l { left: -820px; top: 24%; transform: rotate(-38deg); }
.jm-approach__smoke-r { right: -860px; top: -14%; width: 1410px; transform: scaleX(-1); }
.jm-approach .jm-title { letter-spacing: 0.01em; color: #f2f7fa; }
.jm-timeline { margin-top: 72px; padding-top: 90px; display: flex; flex-direction: column; position: relative; }
.jm-timeline__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jm-timeline__head { transition: opacity 0.25s ease; }
.jm-step {
	display: grid; align-items: center; padding: 92px 0;
	grid-template-columns: minmax(0, 1fr) clamp(80px, 10vw, 130px) minmax(0, 1fr);
}
.jm-step__row { display: flex; align-items: center; justify-content: flex-start; gap: 24px; min-width: 0; margin-top: -90px; }
.jm-step--left .jm-step__row { grid-column: 1; flex-direction: row-reverse; }
.jm-step--right .jm-step__row { grid-column: 3; flex-direction: row; }
.jm-step__dot { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; white-space: nowrap; font-family: var(--jm-display); }
.jm-step__label { font-weight: 300; font-size: 13px; letter-spacing: 0.14em; color: #5F7684; }
.jm-step__num { font-weight: 400; font-size: 52px; color: #5F7684; transition: color 0.6s ease; }
.jm-step.is-lit .jm-step__num { color: var(--jm-accent); }
.jm-step--left .jm-tile { margin-right: clamp(8px, 2vw, 32px); }
.jm-step--right .jm-tile { margin-left: clamp(8px, 2vw, 32px); }
.jm-step__text { min-width: 0; padding: 0 clamp(8px, 2vw, 32px); }
.jm-step--left .jm-step__text { text-align: right; }
.jm-step__title {
	font-family: var(--jm-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.02em;
	line-height: 1.1; margin: 0; color: #f2f7fa;
}
.jm-step__text p { font-size: 18px; line-height: 1.6; color: #93a7b1; margin: 16px 0 0; max-width: 380px; text-wrap: pretty; }
.jm-step--left .jm-step__text p { margin-left: auto; }

/* ---------- CTA ---------- */
.jm-cta__bg { position: absolute; inset: 0; }
.jm-cta__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jm-cta__bg::after { content: ''; position: absolute; inset: 0; background-color: #060C14A5; pointer-events: none; }
.jm-cta__inner {
	position: relative; max-width: 1440px; margin: 0 auto; padding: var(--jm-section-pad) var(--jm-gutter);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center;
}
.jm-cta__title { font-family: var(--jm-display); font-weight: 300; font-size: clamp(40px, 5.9vw, 76px); line-height: 1.02; margin: 0; overflow-wrap: anywhere; text-transform: uppercase; }
.jm-cta .jm-btn { text-transform: uppercase; }
.jm-cta__lead { font-size: clamp(16px, 1.4vw, 19px); color: #b6c8d1; margin: 18px 0 0; }
.jm-cta .jm-btn { margin-top: 32px; }
.jm-benefits { display: flex; flex-direction: column; gap: 26px; justify-self: end; max-width: 520px; }
.jm-benefit { display: flex; align-items: center; gap: 20px; }
.jm-benefit svg { flex: none; width: 60px; height: 60px; }
.jm-benefit p { font-size: 18px; line-height: 1.5; color: #dbe7ee; margin: 0; white-space: nowrap; text-wrap: balance; }

/* ---------- Footer ---------- */
.jm-footer { background: var(--jm-bg); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.jm-footer__inner {
	max-width: 1440px; margin: 0 auto; padding: clamp(36px, 4vw, 56px) var(--jm-gutter);
	display: grid; grid-template-columns: minmax(0, 300px) auto auto auto; justify-content: space-between; align-items: start;
	column-gap: clamp(24px, 4vw, 64px); row-gap: 36px;
}
.jm-footer__brand { min-width: 0; }
.jm-footer .jm-logo { gap: 16px; }
.jm-footer .jm-logo__mark { height: 48px; }
.jm-footer .jm-logo__word { height: 20px; }
.jm-footer .jm-logo__sub { font-size: 13px; margin-top: 8px; }
.jm-footer__copy { font-size: 16px; color: #7d919c; margin: 34px 0 0; }
.jm-footer__privacy { display: block; margin-top: 8px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.jm-footer__privacy:hover { color: #dbe7ee; }
@media (min-width: 1100px) {
	.jm-footer__rights { display: block; }
}
.jm-footer__label { font-family: var(--jm-display); font-size: 16px; letter-spacing: 0.2em; color: #8fa4ae; }
.jm-footer__links { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; font-family: var(--jm-display); font-size: 18px; letter-spacing: 0.14em; }
.jm-footer__contact { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; font-size: 18px; }
.jm-footer__contact > div { display: flex; align-items: center; gap: 14px; }
.jm-footer__contact svg { flex: none; width: 20px; height: 20px; }
.jm-footer__contact span { color: #cfdbe2; }
.jm-footer__follow { display: flex; flex-direction: column; align-items: flex-end; }
.jm-social { display: flex; gap: 14px; margin-top: 18px; margin-right: -6px; }
.jm .jm-social a { width: 38px; height: 38px; border-radius: 8px; color: #eef4f8; display: flex; align-items: center; justify-content: center; transition: color 0.2s ease; }
.jm .jm-social a:hover { color: var(--jm-accent); }
.jm-social svg { width: 26px; height: 26px; }

/* ---------- Generic content (inner pages) ---------- */
.jm .site-main { max-width: 960px; margin: 0 auto; padding: 160px var(--jm-gutter) 80px; line-height: 1.6; }

/* ========== Narrow: < 1100px ========== */
@media (max-width: 1099px) {
	.jm-dock {
		left: 0; right: 0; bottom: 0; width: auto; flex-direction: row; border-radius: 0;
		background: rgba(29, 49, 65, 0.72); border-top: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2); padding-bottom: env(safe-area-inset-bottom);
	}
	.jm .jm-dock a { flex: 1; justify-content: center; gap: 3px; padding: 6px; min-height: 43px; font-size: 11px; }
	.jm-dock svg { width: 16px; height: 16px; }
	.jm-dock__sep { width: 1px; height: auto; margin: 8px 0; }

	/*
	 * Phones and tablets get the square hero-banner-green-mobile.jpg (<picture> in front-page.php): it covers
	 * the frame from the bottom; the trailer (roof at ~57% down) clears the buttons thanks to the padding below.
	 */
	.jm-hero__img { object-position: center bottom; transform: none; }
	.jm-hero__content { padding-top: 130px; padding-bottom: clamp(312px, 44vw, 624px); }

	/* Touch screens swipe the projects carousel, so the prev / next arrows go. */
	.jm-projects__arrows { display: none; }

	.jm-step { grid-template-columns: 0 0 minmax(0, 1fr); }
	.jm-step .jm-step__row { grid-column: 3; flex-direction: row; }
	.jm-step .jm-tile { margin: 0 0 0 clamp(8px, 2vw, 32px); }
	.jm-step .jm-step__text { text-align: left; }
	.jm-step .jm-step__text p { margin-left: 0; }

	.jm-benefits { max-width: 300px; }
	.jm-benefit p { white-space: normal; }

	.jm-footer { padding-bottom: 48px; }
	.jm-footer__inner { grid-template-columns: auto auto auto; }
	.jm-footer__brand { display: contents; }
	.jm-footer__brand > :first-child { grid-column: 1 / -1; }
	.jm-footer__copy { order: 99; grid-column: 1 / -1; margin: 12px 0 0; }
}

/* ========== Mobile: < 700px ========== */
@media (max-width: 699px) {
	.jm-header__inner { --gap: 11px; --mark: 32px; --word: 15px; --sub: 9px; --sub-gap: 5px; }
	.is-scrolled .jm-header__inner { --gap: 7px; --mark: 21px; --word: 10px; --sub: 7px; --sub-gap: 3px; }
	.jm-nav { display: none; }
	.jm-burger { display: flex; }
	/*
	 * Once the page scrolls (or the menu is open) the header gets a glass bar so logo and burger don't blend
	 * into the content. It lives on ::before: a backdrop-filter on .jm-header itself would stop the dropdown
	 * menu (a child) from blurring the page behind it.
	 */
	.jm-header::before {
		content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
		background: rgba(9, 23, 36, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
		transition: opacity 0.3s ease;
	}
	.is-scrolled .jm-header::before, .menu-open .jm-header::before { opacity: 1; }

	/* Sized off the viewport width so the whole trailer with its hitch fits, its centre (~57.5%) at the frame's centre. */
	.jm-hero__img {
		position: absolute; left: 50%; bottom: 0; width: 140vw; height: auto; max-width: none; transform: translateX(-57.5%);
		-webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%); mask-image: linear-gradient(to bottom, transparent, #000 20%);
	}
	.jm-hero__content { padding-bottom: calc(60vw + 16px); } /* the trailer's roof is ~60vw above the frame's bottom */
	/* Grows with the screen while "WHAT HAS TO", the widest line, still fits on one line. */
	.jm-hero__title { font-size: clamp(38px, calc(13.2vw - 5px), 52px); }
	.jm-title, .jm-cta__title { font-size: 32px; }

	.jm-btn { padding: 13px 20px; font-size: 13px; gap: 9px; }
	.jm-btn svg { width: 14px; height: 14px; }

	.jm-track { margin-top: 44px; min-height: 0; margin-bottom: 28px; }
	.jm-card__desc { display: none; }
	.jm-arrow { width: 44px; height: 44px; }
	.jm-arrow svg { width: 14px; height: 14px; }

	.jm-caps__grid { margin-top: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 40px; }
	.jm-cap { padding: 0; }
	.jm-tile { width: 80px; height: 80px; border-radius: 16px; }
	.jm-tile__icon--cap { width: 55px; height: 55px; }
	.jm-tile__icon--step { width: 43px; height: 43px; }

	.jm-timeline { margin-top: 0; padding-top: 62px; }
	.jm-step { padding: 61px 0; }
	.jm-step:last-child { padding-bottom: 0; }
	.jm-step__row { flex-wrap: wrap; row-gap: 16px; }
	.jm-step .jm-step__text { flex: 0 0 100%; padding: 0 0 0 108px; }
	.jm-step__text p { font-size: 17px; line-height: 1.5; }

	.jm-benefits { justify-self: start; max-width: none; }
	.jm-benefit { gap: 16px; }
	.jm-benefit svg { width: 40px; height: 40px; }

	.jm-footer__inner { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 32px; }
	.jm-footer__inner > div { min-width: 0; }
	.jm-footer__follow { grid-column: 1 / -1; align-items: flex-start; }
	.jm-footer a[href^="mailto"], .jm-footer a[href^="tel"], .jm-footer span { overflow-wrap: anywhere; }
	.jm-footer__copy { font-size: 14px; }
	.jm-footer .jm-logo { gap: 11px; }
	.jm-footer .jm-logo__mark { height: 32px; }
	.jm-footer .jm-logo__word { height: 15px; }
	.jm-footer .jm-logo__sub { font-size: 9px; margin-top: 5px; }
}

/* ---------- Inner pages: page head (template-parts/page-head.php) ---------- */
.jm-wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--jm-gutter); padding-right: var(--jm-gutter); }
.jm-phead {
	padding-top: calc(clamp(40px, 5vw, 72px) + 104px); padding-bottom: clamp(40px, 5vw, 72px);
	display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
}
.jm-phead__title {
	margin: 0; font-family: var(--jm-display); font-weight: 300; font-size: clamp(48px, 6.2vw, 83px); line-height: 0.94;
	background: linear-gradient(180deg, #ffffff 10%, #c6d4dd 55%, #7d909c 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.jm-phead__cta { min-width: 250px; flex: 0 1 280px; }
.jm-phead__cta-title { font-weight: 500; font-size: clamp(16px, 1.4vw, 19px); letter-spacing: 0.05em; color: #eaf2f7; }
.jm-phead__cta p { font-size: clamp(16px, 1.4vw, 19px); color: #b6c8d1; margin: 8px 0 0; }
.jm-phead__cta .jm-btn { margin-top: 14px; }

/* Desktop: a tighter, identical header-to-title gap on every inner page; the title is pinned to the top so a taller CTA beside it can't push it down. */
@media (min-width: 1100px) {
	.jm-phead { padding-top: calc(clamp(24px, 2.5vw, 40px) + 88px); align-items: flex-start; }
}

@media (max-width: 699px) {
	.jm-phead { padding-top: 100px; }
	/* As large as fits: "LET'S TALK", the widest title, still clears a 320px screen at 14vw. */
	.jm-phead__title { font-size: min(52px, 14vw); }
}

/* ---------- Inner pages: category tabs (Projects filters, FAQ categories) ---------- */
.jm-pfilters__bar {
	display: flex; flex-wrap: nowrap; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	border-radius: 14px; border-right: 1px solid var(--jm-accent); background: var(--jm-card);
}
.jm-pfilters__bar::-webkit-scrollbar { display: none; }
.jm .jm-pfilter {
	flex: none; white-space: nowrap; padding: 14px 22px; border-radius: 8px;
	font-family: var(--jm-display); font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: #a9bdc7;
	transition: background 0.2s ease, color 0.2s ease;
}
.jm .jm-pfilter:hover { color: var(--jm-accent); }
.jm .jm-pfilter.is-active { background: var(--jm-accent); color: #fff; }
.jm .jm-pfilter.is-active:hover { background: var(--jm-accent-hover); color: #fff; }
.jm-pfilters__hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 13px; letter-spacing: 0.04em; color: #7d919c; }
.jm-pfilters__hint[hidden] { display: none; }
.jm-pfilters__hint svg { flex: none; }
button.jm-pfilter { border: 0; background: transparent; cursor: pointer; }

/* Optional intro paragraph under the page head (FAQ). */
.jm-phead--intro { padding-bottom: clamp(28px, 3.5vw, 48px); }
.jm-phead__intro {
	/* Full row (so it wraps under the title), text kept to ~640px via the right padding. */
	flex: 0 0 100%; padding-right: max(0px, calc(100% - 640px)); margin: calc(18px - clamp(24px, 4vw, 56px)) 0 0;
	font-size: 18px; line-height: 1.6; color: #93a7b1; text-wrap: pretty;
}
@media (max-width: 699px) {
	.jm-phead__intro { order: 1; margin-top: -10px; font-size: 16px; color: #b6c8d1; }
	.jm-phead__cta { order: 2; }
}
