/* Home v5.2 (draft) — owner mockup: text left, slanted kitchen video right, Chandigarh band on the seam, stat strip.
   Brand type only: Libre Franklin (self-hosted). Scoped to body.home-v5. */
.home-v5 { --v52-hdr: 106px; --v52-gutter: max(24px, calc((100vw - var(--global-content-width, 1200px)) / 2 + 32px)); --v52-stats-h: 112px; }
.home-v5 .entry-content > .wp-block-shortcode:first-child, .home-v5 .apca-v52 { margin: 0 !important; }
/* solid blue navbar; the hero starts below it */
.home-v5 #masthead .site-main-header-wrap:not(.item-is-stuck) .site-header-row-container-inner, .home-v5 #mobile-header .site-main-header-wrap:not(.item-is-stuck) .site-header-row-container-inner { background: var(--apca-blue, #0A1F8F) !important; }

.home-v5 .apca-v52 { position: relative; width: 100vw; margin-left: calc(50% - 50vw) !important; margin-top: var(--v52-hdr) !important; height: calc(100svh - var(--v52-hdr)); min-height: 640px; max-height: 1180px; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(90% 70% at 0% 40%, #0d2499 0%, #0A1F8F 45%, #081a78 100%); }

/* ---------------- right: slanted video ---------------- */
.home-v5 .apca-v52-media { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 53%; clip-path: polygon(24.5% 0, 100% 0, 100% 100%, 0 100%); background: #0b1a6e; }
.home-v5 .apca-v52-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) saturate(.95); }
/* light blue tint everywhere + soft blue fade into the panel on the left + a dark foot for the stat strip */
.home-v5 .apca-v52-tint { position: absolute; inset: 0; background:
	linear-gradient(90deg, #0A1F8F 0%, rgba(10, 31, 143, .8) 14%, rgba(10, 31, 143, .2) 36%, rgba(10, 31, 143, 0) 55%),
	linear-gradient(0deg, rgba(8, 26, 120, .95) 0%, rgba(8, 26, 120, .5) 13%, rgba(8, 26, 120, 0) 28%),
	rgba(10, 31, 143, .26); }
.home-v5 .apca-v52-watch { position: absolute; right: clamp(24px, 4vw, 64px); bottom: calc(var(--v52-stats-h) + clamp(20px, 5vh, 48px)); display: inline-flex; align-items: center; gap: .55rem; height: 52px; padding: 0 1.3rem 0 .55rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.home-v5 .apca-v52-watch .apca-v52-ic { width: 38px; height: 38px; padding: 7px; border-radius: 50%; background: #fff; color: var(--apca-blue, #0A1F8F); }
.home-v5 .apca-v52-watch:hover { background: rgba(255, 255, 255, .26); border-color: #fff; }
.home-v5 .apca-v52-note { position: absolute; right: clamp(24px, 4vw, 64px); bottom: calc(var(--v52-stats-h) + 6%); margin: 0; font-size: clamp(1rem, .8rem + .45vw, 1.35rem); font-weight: 300; font-style: italic; line-height: 1.25; letter-spacing: .01em; color: #fff; text-align: left; text-shadow: 0 2px 12px rgba(0, 0, 40, .45); }
.home-v5 .apca-v52-arrow { display: block; width: 72px; height: 32px; margin-top: .35rem; color: #fff; }

/* ---------------- the Chandigarh band across the seam ---------------- */
.home-v5 .apca-v52-band--m { display: none; }
.home-v5 .apca-v52-band { position: absolute; z-index: 1; inset: 0; clip-path: polygon(52% 0, 60.5% 0, 47.5% 100%, 39% 100%); background: linear-gradient(180deg, rgba(125, 155, 245, .3) 0%, rgba(125, 155, 245, .2) 60%, rgba(125, 155, 245, .06) 100%); pointer-events: none; }
.home-v5 .apca-v52-band__in { display: none; position: absolute; inset: 0; transform: skewX(13deg); transform-origin: top left; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: clamp(28px, 7vh, 64px) 0 calc(var(--v52-stats-h) + 8vh); }
.home-v5 .apca-v52-soon { margin: 0; transform: rotate(-12deg); text-align: left; color: rgba(255, 255, 255, .92); font-size: clamp(1.05rem, .7rem + .75vw, 1.6rem); font-weight: 300; font-style: italic; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; }
.home-v5 .apca-v52-scribble { display: block; width: 100%; height: 14px; margin-top: .3rem; color: var(--apca-orange, #F26522); }
.home-v5 .apca-v52-hand { width: 96%; max-width: 270px; max-height: 42vh; height: auto; color: rgba(175, 195, 252, .62); margin-bottom: -2px; }

/* ---------------- left: copy ---------------- */
.home-v5 .apca-v52-col { position: absolute; z-index: 2; left: var(--v52-gutter); top: 0; bottom: var(--v52-stats-h); width: calc(60vw - var(--v52-gutter)); display: flex; flex-direction: column; justify-content: center; padding: 64px 0 24px; }
.home-v5 .apca-v52-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 32px; padding: .5rem .95rem .5rem .8rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .9rem; font-weight: 500; color: #fff; }
.home-v5 .apca-v52-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apca-orange, #F26522); box-shadow: 0 0 0 4px rgba(242, 101, 34, .2); }
.home-v5 .apca-v52-title { margin: 0; max-width: 11.2em; color: #fff; font-family: 'Libre Franklin', 'Libre Franklin Fallback', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 1rem + 3.55vw, 4.6rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.home-v5 .apca-v52-title em { font-style: normal; color: var(--apca-orange, #F26522); }
.home-v5 .apca-v52-sub { margin: 32px 0 0; line-height: 1.6 !important; max-width: min(34em, calc(44vw - var(--v52-gutter))); color: rgba(255, 255, 255, .8); font-size: clamp(1.05rem, .85rem + .4vw, 1.3rem); line-height: 1.5; }
.home-v5 .apca-v52-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 40px 0 0; }
.home-v5 .apca-v52-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: 56px; padding: 0 1.6em; border-radius: var(--apca-radius, 6px); font-size: 1.05rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.home-v5 .apca-v52-btn--primary { background: #fff; color: var(--apca-blue, #0A1F8F); border: 1.5px solid #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 30, .7); }
.home-v5 .apca-v52-btn--primary:hover { background: var(--apca-tint-10, #e7eaf7); border-color: var(--apca-tint-10, #e7eaf7); }
.home-v5 .apca-v52-btn--primary span { color: var(--apca-orange, #F26522); transition: transform .3s; }
.home-v5 .apca-v52-btn--primary:hover span { transform: translateX(3px); }
.home-v5 .apca-v52-btn:focus-visible, .home-v5 .apca-v52-watch:focus-visible, .home-v5 .apca-v52-stat:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.home-v5 .apca-v52-proof { display: flex; align-items: center; gap: 14px; margin: 40px 0 0; max-width: max(28rem, calc(47vw - var(--v52-gutter))); }
.home-v5 .apca-v52-avatars { display: inline-flex; flex: none; }
.home-v5 .apca-v52-avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #c9d0ea; }
.home-v5 .apca-v52-avatars img + img { margin-left: -12px; }
.home-v5 .apca-v52-proof__t { font-size: .92rem; color: rgba(255, 255, 255, .85); }

/* ---------------- stat strip (inside the hero) ---------------- */
.home-v5 .apca-v52-stats { position: absolute; z-index: 2; left: var(--v52-gutter); right: var(--v52-gutter); bottom: 0; height: var(--v52-stats-h); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; border-top: 1px solid rgba(255, 255, 255, .14); }
.home-v5 .apca-v52-stat { display: flex; align-items: center; gap: 14px; padding: 0 clamp(12px, 2vw, 28px); color: #fff; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .18); min-height: 52px; }
.home-v5 .apca-v52-stat:first-child { border-left: 0; padding-left: 0; }
.home-v5 .apca-v52-stat .apca-v52-ic { flex: none; width: 36px; height: 36px; color: rgba(205, 215, 255, .95); }
.home-v5 .apca-v52-fipgc img { display: block; height: 40px; width: 21px; }
.home-v5 .apca-v52-stat .apca-v52-fipgc + .apca-v52-ic { display: none; }
.home-v5 .apca-v52-stat__t { display: flex; flex-direction: column; line-height: 1.25; }
.home-v5 .apca-v52-stat__t strong { font-size: 1.15rem; font-weight: 700; }
.home-v5 .apca-v52-stat__t span { font-size: .84rem; color: rgba(255, 255, 255, .72); }
.home-v5 .apca-v52-stat:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* the old numbers strip below the hero is not shown with v5.2 */
.home-v5 .apca-v5-strip { display: none !important; }

/* vertical academy tour in the dialog */
.apca-dialog__video--tall { aspect-ratio: 9 / 16 !important; width: min(92vw, calc(86vh * 9 / 16)) !important; height: auto !important; margin: 0 auto; }
.apca-dialog__video--tall iframe { width: 100%; height: 100%; }

/* ---------------- laptop ---------------- */
@media (max-width: 1279px) and (min-width: 1024px) {
	.home-v5 { --v52-stats-h: 104px; }
	.home-v5 .apca-v52-col { width: calc(64vw - var(--v52-gutter)); }
	.home-v5 .apca-v52-stat__t span { font-size: .78rem; }
	.home-v5 .apca-v52-hand { max-width: 150px; max-height: 28vh; }
	.home-v5 .apca-v52-proof { max-width: calc(44vw - var(--v52-gutter)); }
	.home-v5 .apca-v52-col { padding-top: 56px; }
	.home-v5 .apca-v52-pill { margin-bottom: 22px; }
	.home-v5 .apca-v52-sub { margin-top: 22px; }
	.home-v5 .apca-v52-ctas { margin-top: 28px; }
	.home-v5 .apca-v52-proof { margin-top: 24px; }
}

/* ---------------- tablet + mobile: stacked ---------------- */
@media (max-width: 1024px) { .home-v5 { --v52-hdr: 86px; } }
@media (max-width: 767px) { .home-v5 { --v52-hdr: 74px; } }
@media (max-width: 1023px) {
	.home-v5 .apca-v52 { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
	.home-v5 .apca-v52-col { position: relative; left: auto; bottom: auto; width: auto; padding: 32px 24px 36px; text-align: left; order: 1; }
	.home-v5 .apca-v52-title { font-size: clamp(2.4rem, 1.2rem + 5.2vw, 3.6rem); max-width: none; }
	.home-v5 .apca-v52-sub, .home-v5 .apca-v52-proof { max-width: none; }
	.home-v5 .apca-v52-media { position: relative; order: 2; width: 100%; height: 60svh; min-height: 380px; clip-path: none; }
	.home-v5 .apca-v52-tint { background: linear-gradient(180deg, rgba(10, 31, 143, .5) 0%, rgba(10, 31, 143, 0) 40%), rgba(10, 31, 143, .42); }
	.home-v5 .apca-v52-band--d { display: none; }
	.home-v5 .apca-v52-band--m { display: block; top: 12%; left: 0; width: 100%; height: auto; transform: none; background: linear-gradient(90deg, rgba(120, 150, 240, .3), rgba(120, 150, 240, 0) 80%); }
	.home-v5 .apca-v52-band--m .apca-v52-band__in { position: relative; transform: none; flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 14px; padding: 16px 24px 0; }
	.home-v5 .apca-v52-hand { width: 4.4rem; margin: 0; }
	.home-v5 .apca-v52-soon { transform: rotate(-8deg); margin: 0 0 1.4rem; font-size: 1.3rem; }
	.home-v5 .apca-v52-watch { top: auto; bottom: 24px; right: 20px; transform: none; }
	.home-v5 .apca-v52-note { display: none; }
	.home-v5 .apca-v52-stats { position: relative; order: 3; left: auto; right: auto; height: auto; grid-template-columns: 1fr 1fr; gap: 0; padding: 8px 24px 24px; border-top: 0; }
	.home-v5 .apca-v52-stat { padding: 16px 8px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
	.home-v5 .apca-v52-stat:first-child { padding-left: 8px; }
	.home-v5 .apca-v52-stat .apca-v52-fipgc { display: none; }
	.home-v5 .apca-v52-stat .apca-v52-fipgc + .apca-v52-ic { display: block; }
}
@media (max-width: 767px) {
	.home-v5 .apca-v52-col { padding: 28px 24px 32px; text-align: center; }
	.home-v5 .apca-v52-pill { align-self: center; font-size: .82rem; }
	.home-v5 .apca-v52-title { font-size: clamp(2.2rem, 1.05rem + 5.8vw, 2.7rem); line-height: 1.02; }
	.home-v5 .apca-v52-sub { font-size: 1.05rem; margin-top: 16px; }
	.home-v5 .apca-v52-ctas { flex-direction: column; gap: 12px; margin-top: 24px; }
	.home-v5 .apca-v52-btn { width: 100%; }
	.home-v5 .apca-v52-proof { justify-content: center; flex-wrap: wrap; }
	.home-v5 .apca-v52-proof__t { width: 100%; font-size: .85rem; }
	.home-v5 .apca-v52-stat { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------------- v5.3 ---------------- */
.home-v5 .apca-v52-link { display: inline-flex; align-items: center; gap: .45em; height: 56px; color: rgba(255, 255, 255, .82); font-size: 1.05rem; font-weight: 500; text-decoration: none; text-underline-offset: 5px; }
.home-v5 .apca-v52-link span { transition: transform .25s; }
.home-v5 .apca-v52-link:hover, .home-v5 .apca-v52-link:focus-visible { color: #fff; text-decoration: underline; }
.home-v5 .apca-v52-link:hover span, .home-v5 .apca-v52-link:focus-visible span { transform: translateX(4px); }
.home-v5 .apca-v52-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 2px; }

/* footer Visit column mark */
.apca-visit-mark { display: inline-flex; align-items: center; gap: .45rem; }
.apca-visit-mark__ic { flex: none; color: var(--apca-orange, #F26522); }

@media (max-width: 1023px) {
	.home-v5 .apca-v52-band--m { display: none !important; }
	.home-v5 .apca-v52-watch { top: auto; bottom: 20px; right: 20px; transform: none; }
	.home-v5 .apca-v52-tint { background: rgba(10, 31, 143, .3); }
	.home-v5 .apca-v52-col { padding-top: 64px; }
}
@media (max-width: 767px) {
	.home-v5 .apca-v52-col { padding-top: 68px; }
	.home-v5 .apca-v52-pill { margin-bottom: 24px; }
	.home-v5 .apca-v52-sub { margin-top: 20px; }
	.home-v5 .apca-v52-ctas { margin-top: 28px; gap: 12px; }
	.home-v5 .apca-v52-link { align-self: center; height: 48px; }
	.home-v5 .apca-v52-proof { margin-top: 24px; }
}

/* ---------------- v5.4 ---------------- */
/* paragraph: second sentence always on its own line */
.home-v5 .apca-v52-sub__l2 { display: block; }

/* greeting pill: hugs its content, width animates between greetings, whole-word crossfade */
.home-v5 .apca-v54-greet { position: relative; gap: 0; padding: 0; border: 0 !important; background: none !important; font-size: .98rem; font-weight: 600; font-family: 'Libre Franklin', 'Libre Franklin Fallback', 'APCA Deva', 'APCA Guru', sans-serif; }
/* the visible pill is a layer whose clip-path follows each greeting's width (paint-only → no layout shift) */
.home-v5 .apca-v54-greet::before { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .06); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.home-v5 .apca-v54-greet.is-sized::before { right: auto; width: var(--g-w); }
.home-v5 .apca-v54-greet.is-sized.is-centred::before { left: 50%; transform: translateX(-50%); }
.home-v5 .apca-v54-greet__text { display: inline-grid; }
.home-v5 .apca-v54-greet__text .g { grid-area: 1 / 1; white-space: nowrap; opacity: 0; filter: blur(3px); transform: scale(.97); transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.home-v5 .apca-v54-greet__text .g.is-on { opacity: 1; filter: none; transform: none; }
.home-v5 .apca-v54-greet__in { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; gap: .55rem; padding: .42rem 1.05rem .42rem .8rem; white-space: nowrap; transform: translateX(var(--g-shift, 0px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.home-v5 .apca-v54-greet__hand { flex: none; width: 28px; height: 28px; color: var(--apca-orange, #F26522); }
.home-v5 .apca-v54-greet__text { display: inline-block; line-height: 1.2; transition: opacity .2s ease, filter .2s ease, transform .2s ease; }
@font-face { font-family: 'APCA Deva'; src: url('../fonts/noto-devanagari-greeting.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }
@font-face { font-family: 'APCA Guru'; src: url('../fonts/noto-gurmukhi-greeting.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0A00-0A7F, U+200C-200D, U+25CC; }
@media (prefers-reduced-motion: reduce) { .home-v5 .apca-v54-greet::before, .home-v5 .apca-v54-greet__in, .home-v5 .apca-v54-greet__text { transition: none; } }

/* announcement bar above the navbar: fixed, slides down; the header follows with a transform (no layout shift) */
.home-v5 { --apca-bar-h: 40px; }
.home-v5 #masthead { position: fixed !important; top: 0; left: 0; right: 0; z-index: 100; transform: translateY(var(--apca-bar-off, 0px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.home-v5.apca-bar-on { --apca-bar-off: var(--apca-bar-h); }
.apca-hstrip { position: fixed; z-index: 101; top: 0; left: 0; right: 0; height: var(--apca-bar-h, 40px); background: #1734C4; color: #fff; transform: translateY(-100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.apca-hstrip[hidden] { display: block !important; visibility: hidden; }
.apca-hstrip.is-down { transform: none; visibility: visible; }
.apca-hstrip__in { display: flex; align-items: center; justify-content: center; gap: .6rem; height: 100%; padding: 0 16px; font-size: .9rem; }
.apca-hstrip__t { margin: 0 !important; padding: 0; font-size: inherit !important; line-height: 1.2 !important; color: #fff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apca-hstrip__sep { opacity: .7; }
.apca-hstrip__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--apca-orange, #F26522); position: relative; }
.apca-hstrip__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--apca-orange, #F26522); animation: apca-hiring-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.apca-hstrip__a { flex: none; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.apca-hstrip__a:hover { text-decoration-thickness: 2px; }
.apca-hstrip a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .apca-hstrip, .home-v5 #masthead { transition: none; } .apca-hstrip__dot::after { animation: none; } }
@media (max-width: 767px) {
	.home-v5 { --apca-bar-h: 44px; }
	.apca-hstrip__in { font-size: .86rem; }
	.apca-hstrip__more { display: none; }
	.home-v5 .apca-v54-greet { align-self: center; }
	.home-v5 .apca-v54-greet__hand { width: 24px; height: 24px; }
}

/* ---------------- v5.4 fix: the hero grows with its content; nothing overlaps ---------------- */
/* top padding always reserves the announcement bar + a 40px gap (from first paint → no shift when the bar appears) */
.home-v5 .apca-v52 { height: auto; min-height: calc(100svh - var(--v52-hdr)); max-height: none; display: flex; flex-direction: column; padding-top: calc(var(--apca-bar-h, 40px) + 40px); }
.home-v5 .apca-v52-col { position: relative; left: auto; top: auto; bottom: auto; flex: 1 0 auto; margin-left: var(--v52-gutter); padding: 0 0 40px; justify-content: center; }
.home-v5 .apca-v52-stats { position: relative; left: auto; right: auto; bottom: auto; flex: none; margin: 0 var(--v52-gutter); }
@media (max-width: 1279px) and (min-width: 1024px) { .home-v5 .apca-v52-col { padding-top: 0; } }
/* short laptop screens: tighter rhythm, headline one step smaller */
@media (min-width: 1024px) and (max-height: 760px) {
	.home-v5 { --v52-stats-h: 88px; }
	.home-v5 .apca-v52-title { font-size: clamp(2.2rem, min(1rem + 3.55vw, 8.6vh), 4.6rem); }
	.home-v5 .apca-v52-pill { margin-bottom: 18px; }
	.home-v5 .apca-v52-sub { margin-top: 18px; font-size: clamp(1rem, .8rem + .35vw, 1.15rem); line-height: 1.5 !important; }
	.home-v5 .apca-v52-ctas { margin-top: 24px; }
	.home-v5 .apca-v52-btn, .home-v5 .apca-v52-link { height: 50px; }
	.home-v5 .apca-v52-proof { margin-top: 20px; }
	.home-v5 .apca-v52-col { padding-bottom: 24px; }
}
@media (max-width: 1023px) {
	.home-v5 .apca-v52-col { margin-left: 0; padding: 0 24px 36px; flex: none; }
	.home-v5 .apca-v52-stats { margin: 0; }
	.home-v5 .apca-v52 { padding-top: calc(var(--apca-bar-h, 44px) + 32px); }
}
@media (max-width: 767px) { .home-v5 .apca-v52-col { padding: 0 24px 32px; } }
@media (min-width: 1024px) and (max-height: 700px) {
	.home-v5 { --v52-stats-h: 76px; }
	.home-v5 .apca-v52-title { font-size: clamp(2.1rem, min(1rem + 3.55vw, 7.4vh), 4.2rem); }
	.home-v5 .apca-v52-pill { margin-bottom: 14px; }
	.home-v5 .apca-v52-sub { margin-top: 14px; font-size: 1rem; }
	.home-v5 .apca-v52-ctas { margin-top: 20px; }
	.home-v5 .apca-v52-btn, .home-v5 .apca-v52-link { height: 46px; }
	.home-v5 .apca-v52-proof { margin-top: 16px; }
	.home-v5 .apca-v52-col { padding-bottom: 16px; }
}
@media (max-width: 1023px) { .home-v5 .apca-v52 { padding-top: calc(var(--apca-bar-h, 44px) + 40px); } }

/* ---------------- v5.5: the whole hero (incl. the stats strip) fits the first screen on laptops ---------------- */
@media (min-width: 1024px) {
	.home-v5 { --v52-stats-h: clamp(70px, 11vh, 104px); }
	.home-v5 .apca-v52 { padding-top: calc(var(--apca-bar-h, 40px) + clamp(14px, 3.2vh, 40px)); }
	.home-v5 .apca-v52-col { padding-bottom: clamp(10px, 2.2vh, 30px); }
	.home-v5 .apca-v52-pill { margin-bottom: clamp(12px, 2.6vh, 28px); }
	.home-v5 .apca-v54-greet { font-size: clamp(.84rem, 1.7vh, .98rem); }
	.home-v5 .apca-v54-greet__hand { width: clamp(22px, 3.3vh, 28px); height: clamp(22px, 3.3vh, 28px); }
	.home-v5 .apca-v52-title { font-size: clamp(2rem, min(4.6vw, 6.7vh), 4.6rem); line-height: .98; }
	.home-v5 .apca-v52-sub { margin-top: clamp(10px, 2.4vh, 26px); font-size: clamp(15px, 2.2vh, 18px); line-height: 1.55 !important; }
	.home-v5 .apca-v52-ctas { margin-top: clamp(14px, 3.2vh, 34px); }
	.home-v5 .apca-v52-btn, .home-v5 .apca-v52-link { height: clamp(42px, 6.2vh, 54px); font-size: clamp(.9rem, 1.9vh, 1.05rem); }
	.home-v5 .apca-v52-proof { margin-top: clamp(12px, 2.8vh, 30px); }
	.home-v5 .apca-v52-avatars img { width: clamp(30px, 4.6vh, 40px); height: clamp(30px, 4.6vh, 40px); }
	.home-v5 .apca-v52-stat { min-height: 0; }
	.home-v5 .apca-v52-stat .apca-v52-ic { width: clamp(26px, 4vh, 36px); height: clamp(26px, 4vh, 36px); }
	.home-v5 .apca-v52-fipgc img { height: clamp(28px, 4.4vh, 40px); width: auto; aspect-ratio: 206 / 400; }
	.home-v5 .apca-v52-stat__t strong { font-size: clamp(.95rem, 2vh, 1.15rem); }
	.home-v5 .apca-v52-stat__t span { font-size: clamp(.72rem, 1.5vh, .84rem); }
}

/* v5.5: greetings stack in one cell so they crossfade in place */
.home-v5 .apca-v54-greet .apca-v54-greet__text { display: inline-grid; }
.home-v5 .apca-v54-greet .apca-v54-greet__text { justify-items: start; }

/* ---------------- v5.8: wide screens (≥1680px) — header, hero and stats grow together; the 1440×900 layout scales up ----------------
   --v58-w: container width (1200px at ≤1600). --u: one "1440×900 pixel", limited by width (W/1200) and by height
   (the scaled hero must fit under the fixed 40px bar + 106px header: 754px of content at 900px tall). */
@media (min-width: 1680px) {
	.home-v5 {
		--v58-w: min(88vw, 2200px);
		--u: min(calc(var(--v58-w) / 1200), calc((100vh - 146px) / 754));
		--v52-gutter: calc((100vw - var(--v58-w)) / 2 + 32px);
		--v52-stats-h: calc(99 * var(--u));
	}
	.home-v5 #masthead .site-header-row-container-inner > .site-container { max-width: var(--v58-w); }
	.home-v5 .apca-v52 { padding-top: calc(var(--apca-bar-h, 40px) + 28.8 * var(--u)); }
	.home-v5 .apca-v52-col { width: calc(712 * var(--u)); padding-bottom: calc(19.8 * var(--u)); }
	.home-v5 .apca-v54-greet { font-size: calc(15.3 * var(--u)); }
	.home-v5 .apca-v52-pill.apca-v54-greet { margin-bottom: calc(23.4 * var(--u)); }
	.home-v5 .apca-v54-greet__in { gap: calc(8.8 * var(--u)); padding: calc(6.72 * var(--u)) calc(16.8 * var(--u)) calc(6.72 * var(--u)) calc(12.8 * var(--u)); }
	.home-v5 .apca-v54-greet__hand { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
	.home-v5 .apca-v52-title { font-size: calc(60.3 * var(--u)); }
	.home-v5 .apca-v52-sub { margin-top: calc(21.6 * var(--u)); font-size: calc(18 * var(--u)); max-width: calc(481.6 * var(--u)); }
	.home-v5 .apca-v52-ctas { margin-top: calc(28.8 * var(--u)); gap: calc(16 * var(--u)) calc(28 * var(--u)); }
	.home-v5 .apca-v52-btn, .home-v5 .apca-v52-link { height: calc(54 * var(--u)); font-size: calc(16.8 * var(--u)); }
	.home-v5 .apca-v52-btn { border-radius: calc(6 * var(--u)); }
	.home-v5 .apca-v52-proof { margin-top: calc(25.2 * var(--u)); gap: calc(14 * var(--u)); max-width: calc(524.8 * var(--u)); }
	.home-v5 .apca-v52-avatars img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
	.home-v5 .apca-v52-avatars img + img { margin-left: calc(-12 * var(--u)); }
	.home-v5 .apca-v52-proof__t { font-size: calc(14.72 * var(--u)); }
	.home-v5 .apca-v52-stat { gap: calc(14 * var(--u)); padding: 0 calc(28 * var(--u)); }
	.home-v5 .apca-v52-stat:first-child { padding-left: 0; }
	.home-v5 .apca-v52-stat .apca-v52-ic { width: calc(36 * var(--u)); height: calc(36 * var(--u)); }
	.home-v5 .apca-v52-fipgc img { height: calc(40 * var(--u)); }
	.home-v5 .apca-v52-stat__t strong { font-size: calc(18 * var(--u)); }
	.home-v5 .apca-v52-stat__t span { font-size: calc(13.44 * var(--u)); }
	.home-v5 .apca-v52-watch { height: calc(52 * var(--u)); gap: calc(8.8 * var(--u)); padding: 0 calc(20.8 * var(--u)) 0 calc(8.8 * var(--u)); font-size: calc(16 * var(--u)); bottom: calc(var(--v52-stats-h) + 45 * var(--u)); }
	.home-v5 .apca-v52-watch .apca-v52-ic { width: calc(38 * var(--u)); height: calc(38 * var(--u)); padding: calc(7 * var(--u)); }
	/* the video panel and the light band keep their 1440 positions relative to the container (L = left edge, W = width) */
	.home-v5 .apca-v52-media { --L: calc((100vw - var(--v58-w)) / 2); left: calc(var(--L) + .4642 * var(--v58-w)); width: auto; clip-path: polygon(calc(.1558 * var(--v58-w)) 0, 100% 0, 100% 100%, 0 100%); }
	.home-v5 .apca-v52-band { --L: calc((100vw - var(--v58-w)) / 2); clip-path: polygon(calc(var(--L) + .524 * var(--v58-w)) 0, calc(var(--L) + .626 * var(--v58-w)) 0, calc(var(--L) + .47 * var(--v58-w)) 100%, calc(var(--L) + .368 * var(--v58-w)) 100%); }
}

/* v5.10: hiring bar switched off in Appearance → Home hero → no space reserved for it */
.home-v5.apca-bar-none { --apca-bar-h: 0px; }
