/* Homepage (front-page.php): Home Page design. Cream page; the --p-* properties recolour the shared outcomes/reviews parts. */
.hm{--gut:16px;--sec:48px;--gap:12px;--ph:rgba(11,26,51,.1);
  --p-fg:var(--ink-900);--p-muted:var(--ink-600);--p-line:rgba(11,26,51,.14);--p-pill-bg:var(--ink-900);--p-pill-fg:var(--cream-100);
  --p-arrow-bg:var(--ink-900);--p-arrow-fg:var(--cream-100);--p-vid:var(--navy-700);--p-card:var(--cream-50);--p-card-line:rgba(11,26,51,.07);
  --p-bleed:var(--gut);--out-w:135px;--out-h:200px;
  background:var(--cream-50);color:var(--ink-900)}
.hm h2{margin:0;font:400 28px/1.22 var(--font-sans);text-wrap:pretty}
.hm h2 strong{font-weight:600}
.hm-ph{background:var(--ph)}
.hm a:focus-visible,.hm button:focus-visible{outline:2px solid var(--orange-500);outline-offset:2px}

/* Hero: carousel + stats on navy, goal picker beside it from 768px */
.hm-hero{max-width:1440px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);align-items:center}
.hm-hero__card{border-radius:0 0 20px 20px;overflow:hidden;background:var(--navy-900);color:var(--cream-100);--ph:var(--navy-700)}
.hm-car{position:relative;aspect-ratio:1080/1350;overflow:hidden;background:var(--navy-800)}
.hm-car__track{display:flex;height:100%;transition:transform 600ms var(--ease-out)}
.hm-car__slide{flex:0 0 100%;height:100%}
.hm-car__slide img{width:100%;height:100%;object-fit:cover}
.hm-car__dots{position:absolute;left:0;right:0;bottom:20px;z-index:2;display:flex;justify-content:center;gap:8px}
.hm-car__dots button{all:unset;cursor:pointer;width:8px;height:8px;border-radius:999px;background:rgba(253,243,232,.4);transition:width 200ms var(--ease-out)}
.hm-car__dots [aria-current]{width:26px;background:var(--cream-100)}

.hm-pick{padding:20px 16px 0;display:flex;flex-direction:column;gap:12px;min-width:0}
.hm-bar{width:36px;height:4px;border-radius:2px;background:var(--orange-500)}
.hm-pick__q{display:flex;align-items:center;justify-content:space-between;gap:12px;height:22px}
.hm-pick__q span{font:500 16px/1.3 var(--font-sans);color:var(--ink-600);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-pick__back{all:unset;cursor:pointer;flex:none;display:flex;align-items:center;gap:4px;color:var(--orange-700);font:500 14px/1 var(--font-sans)}
.hm-pick__back[hidden]{display:none}
.hm-pick__opts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.hm-pick__opts[hidden]{display:none}
.hm-pick__opts--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.hm-pick__opts--two .hm-opt:last-child{grid-column:1 / -1}
.hm-opt{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;gap:12px;height:56px;padding:0 16px;border-radius:12px;background:var(--white);border:1px solid rgba(11,26,51,.12);color:var(--ink-900);font:500 15px/1.2 var(--font-sans)}
.hm-opt__dot{flex:none;width:18px;height:18px;box-sizing:border-box;border-radius:50%;border:1.5px solid var(--ink-600);display:grid;place-items:center}
.hm-opt__dot .icon{opacity:0}
.hm-opt[aria-pressed="true"]{background:rgba(239,127,56,.12);border-color:var(--orange-500)}
.hm-opt[aria-pressed="true"] .hm-opt__dot{background:var(--orange-500);border-color:var(--orange-500)}
.hm-opt[aria-pressed="true"] .icon{opacity:1}
.hm-pick__go{height:48px;padding:0 20px;box-sizing:border-box;border-radius:12px;background:var(--orange-500);color:var(--ink-900);display:flex;align-items:center;justify-content:space-between;font:600 14px/1 var(--font-sans);letter-spacing:.06em;text-transform:uppercase;text-decoration:none;transition:opacity 150ms var(--ease-out)}
.hm-pick__go:hover{color:var(--ink-900)}
.hm-pick__go[aria-disabled="true"]{opacity:.4;cursor:default}

/* Sections below the hero */
.hm-secs{max-width:1440px;margin:0 auto;padding:var(--sec) var(--gut);display:flex;flex-direction:column;gap:var(--sec)}
.hm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.hm-head > div:first-child{display:flex;flex-direction:column;gap:8px}
.hm-head p,.hm .outc__intro p{margin:0;font:400 17px/1.5 var(--font-sans);color:var(--ink-600);text-wrap:pretty}

.hm-pop{display:flex;flex-direction:column;gap:16px;--r:12px}
.hm-pop__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.hm-pop__tile{position:relative;display:block;aspect-ratio:3/4;color:var(--cream-100);text-decoration:none}
.hm-pop__tile:hover{color:var(--cream-100)}
.hm-pop__box{position:absolute;left:0;right:0;bottom:0;height:var(--box);border-radius:var(--r);background:var(--bg)}
/* Free above the box, clipped at the sides and bottom corners (hides cropped bag and sleeve edges). */
.hm-pop__img{position:absolute;inset:0;z-index:1;clip-path:inset(-200px 0 0 0 round var(--r))}
.hm-pop__img img{position:absolute;top:var(--top);left:50%;height:var(--h);width:auto;max-width:none;transform:translateX(-50%)}
.hm-pop__band{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-radius:0 0 var(--r) var(--r);background:var(--bg)}
.hm-pop__band > span:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.hm-pop__band small{font:400 14px/1 var(--font-sans);opacity:.9}
.hm-pop__band b{font:600 14px/1.1 var(--font-sans)}
/* Arrow hidden on phones: the design's 24px circle covers "Companies" on a 111px tile; the whole tile is the link. */
.hm-pop__go{flex:none;border-radius:50%;background:var(--cream-100);color:var(--ink-900);display:none;place-items:center}

.hm-split{display:grid;grid-template-columns:minmax(0,1fr);border-radius:20px;overflow:hidden;text-decoration:none}
.hm-split--orange{background:var(--orange-500);--ph:rgba(11,26,51,.12)}
.hm-split--orange,.hm-split--orange:hover{color:var(--ink-900)}
.hm-split__img{aspect-ratio:16/9}
.hm-split__txt{padding:20px;display:flex;flex-direction:column;justify-content:center;gap:12px}
.hm-eyebrow{font:600 14px/1 var(--font-sans);letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.hm-split p{margin:0;max-width:480px;font:400 17px/1.5 var(--font-sans);opacity:.9;text-wrap:pretty}
.hm-split__cta{margin-top:8px;min-width:240px;height:48px;padding:0 20px;box-sizing:border-box;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;font:600 14px/1 var(--font-sans);letter-spacing:.06em;text-transform:uppercase}
.hm-split--orange .hm-split__cta{background:var(--ink-900);color:var(--cream-100)}

/* Shared parts: sizes they don't expose as properties */
.hm .outc__head{gap:16px}
.hm .outc__intro{flex:1;min-width:0;max-width:none}
/* Fixed-height info panel: name and role at the top, logo at the bottom. */
.hm .outc__info{height:96px;box-sizing:border-box;overflow:hidden}
.hm .outc__logo{margin-top:auto}
.hm .outc__tabs{background:var(--cream-50)}
.hm .outc__track,.hm .revs__track{gap:var(--gap)}
.hm .outc__info b{font-size:14px}
.hm .outc__info span{font-size:14px}

/* Programs carousel (and Workshops when switched on) */
.hm-progs .hm-head > div:first-child,.hm-ws .hm-head > div:first-child{max-width:640px}
.hm-all{flex:none;font:600 14px/1 var(--font-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--orange-700);text-decoration:none;white-space:nowrap}
.hm-track{display:flex;gap:var(--gap);overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-padding:0 var(--gut);margin:0 calc(-1 * var(--gut));padding:0 var(--gut)}
.hm-track::-webkit-scrollbar{display:none}
.hm-prog{flex:none;width:280px;display:flex;flex-direction:column;border-radius:20px;overflow:hidden;scroll-snap-align:start;background:var(--cream-200);color:var(--ink-900);text-decoration:none}
.hm-prog:hover{color:var(--ink-900)}
.hm-prog img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.hm-prog__body{flex:1;padding:20px;display:flex;flex-direction:column;gap:12px}
.hm-cat{font:600 12px/1 var(--font-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--orange-700)}
/* Fixed clamp heights keep every card the same height. */
.hm-prog b{font:600 18px/1.25 var(--font-sans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:2.5em}
.hm-prog__desc{font:400 15px/1.5 var(--font-sans);color:var(--ink-600);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;height:4.5em}
.hm-prog__foot{margin-top:auto;padding-top:16px;border-top:1px solid rgba(11,26,51,.14);display:flex;justify-content:space-between;align-items:center;gap:12px;font:600 14px/1 var(--font-sans);letter-spacing:.06em;text-transform:uppercase}
.hm-prog__foot span{flex:none;width:40px;height:40px;border-radius:50%;background:var(--ink-900);color:var(--cream-100);display:grid;place-items:center}
.hm-ws{display:flex;flex-direction:column;gap:16px;--wk-panel:var(--cream-200);--wk-sub:rgba(11,26,51,.14);--wk-strong:rgba(11,26,51,.24);--wk-muted:var(--ink-600)}
.hm-ws .wkl__card{flex:none;width:280px;border:0;scroll-snap-align:start;text-decoration:none}
.hm-progs{display:flex;flex-direction:column;gap:16px}
.hm-split__img{position:relative}
.hm-split__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 40%}

/* Carousel arrows on the cards (tg_car_btns + parts.js), tablet and up; phones swipe. */
.car{position:relative}
.car__btn{all:unset;cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:48px;height:48px;border-radius:50%;background:var(--cream-100);color:var(--ink-900);display:none;place-items:center}
.car__btn:hover{background:var(--cream-200)}
.car__btn--prev{left:12px}
.car__btn--next{right:12px}
.car__btn[hidden]{display:none}

@media (min-width:768px){
  .hm{--gut:32px;--sec:64px;--gap:16px;--out-w:180px;--out-h:266px}
  .hm h2{font-size:36px}
  .hm-head p,.hm-split p,.hm .outc__intro p{font-size:18px}
  .hm-hero{padding:24px 32px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
  .hm-hero__card{border-radius:20px}
  .hm-pick{padding:0}
  .hm-pop{--r:20px}
  .hm-pop__band{padding:16px 20px;gap:8px}
  .hm-pop__band b{font-size:20px}
  .hm-pop__go{display:grid;width:36px;height:36px}
  .hm-split{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-split__img{aspect-ratio:auto;min-height:340px}
  .hm-split--orange .hm-split__img{order:2}
  .hm-split__txt{padding:32px}
  .hm-split__cta{align-self:flex-start}
  .hm .outc__info b{font-size:15px}
  .hm .outc__info span{font-size:14px}
  .hm .revs__card blockquote{font-size:16px}
  .hm .outc h2{white-space:nowrap}
  .hm .outc__info{height:100px}
  .car__btn{display:grid}
  .hm-prog{width:320px}
  .hm-prog__body{padding:24px}
  .hm-prog b{font-size:20px}
  .hm-ws .wkl__card{width:300px}
}
@media (min-width:1280px){
  .hm{--gut:80px;--sec:96px;--gap:16px;--out-w:220px;--out-h:320px}
  .hm h2{font-size:44px}
  .hm-head p,.hm-split p,.hm .outc__intro p{font-size:20px}
  /* Image column capped so the image and stats sit above the fold. */
  .hm-hero{padding:32px 80px 0;gap:80px;grid-template-columns:minmax(0,440px) minmax(0,1fr)}
  .hm .outc__intro p{white-space:nowrap}
  .hm .outc__info{height:104px}
  .hm-prog{width:360px}
  .hm-prog b{font-size:22px}
  .hm-ws .wkl__card{width:340px}
  .hm-pop__band{padding:20px 24px}
  .hm-pop__band b{font-size:26px}
  .hm-pop__go{width:40px;height:40px}
  .hm-split__img{min-height:440px}
  .hm-split__txt{padding:64px}
  .hm .outc__info b{font-size:16px}
  .hm .outc__info span{font-size:14px}
  .hm .revs__vid{width:240px}
  .hm .revs__card{width:400px;padding:32px}
  .hm .revs__card blockquote{font-size:17px}
}
