/* Jeff Nippard-inspired components. Colours come from the theme tokens in site.css (dark) or light.css. */
:root { --j-card: var(--bg-2); --j-ink: var(--fg); --j-btn: var(--red); --j-btn-ink: #fff; --j-h: var(--display); }
.jbtn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 1.3rem; border-radius: 999px; background: var(--j-btn); color: var(--j-btn-ink); font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; border: 0; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; white-space: nowrap; }
.jbtn:hover { opacity: .88; } .jbtn:active { transform: translateY(1px); }
.jbtn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.j-h2 { font-family: var(--j-h); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: .9; letter-spacing: -.005em; margin-top: .6rem; }
.j-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.j-link { font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; border-bottom: 1.5px solid currentColor; padding-bottom: .3rem; white-space: nowrap; }
.j-note { color: var(--mute); max-width: 44ch; margin-top: .8rem; font-size: .95rem; }
.j-lead { color: var(--mute); font-size: 1.08rem; line-height: 1.55; max-width: 52ch; margin-top: 1rem; }
.jh-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }

/* hero slider */
.jhero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #0b0b0a; color: #fff; }
.jh-slides, .jh-slide { position: absolute; inset: 0; }
.jh-slide { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 0s 1s; }
.jh-slide.is-on { opacity: 1; visibility: visible; transition: opacity 1s var(--ease); }
.jh-slide > video, .jh-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.jh-slide.is-on > video, .jh-slide.is-on > img { transform: scale(1); }
.jh-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000d 0%, #0006 38%, #0000 70%), linear-gradient(to right, #0008, #0000 60%); }
.jh-copy { position: absolute; inset: auto 0 7.5rem 0; z-index: 2; }
.jh-slide .jh-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.jh-slide.is-on .jh-copy > * { opacity: 1; transform: none; }
.jh-slide.is-on .jh-copy > :nth-child(2) { transition-delay: .08s; } .jh-slide.is-on .jh-copy > :nth-child(3) { transition-delay: .16s; } .jh-slide.is-on .jh-copy > :nth-child(4) { transition-delay: .24s; }
.jh-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: #111; border-radius: 4px; padding: .35rem .6rem; font: 700 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.jh-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.jh-title { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: .84; margin-top: 1rem; }
.jh-sub { max-width: 44ch; margin-top: 1rem; color: #fffc; font-size: 1.05rem; line-height: 1.5; }
.jh-slide .jbtn.line { color: #fff; }
.jh-ctrl { position: absolute; inset: auto 0 2.2rem 0; z-index: 3; display: flex; align-items: center; gap: 1rem; }
.jh-bars { display: flex; gap: .4rem; flex: 1; max-width: 260px; }
.jh-bars span { flex: 1; height: 2px; background: #ffffff40; overflow: hidden; position: relative; }
.jh-bars span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.jh-bars span.done::after { transform: scaleX(1); }
.jh-bars span.run::after { animation: jhbar var(--jh-dur, 7s) linear forwards; }
@keyframes jhbar { to { transform: scaleX(1); } }
.jh-count { margin-left: auto; font: 600 .82rem/1 var(--body); letter-spacing: .1em; color: #fffa; } .jh-count b { color: #fff; }
.jh-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #ffffff55; background: transparent; color: #fff; cursor: pointer; font-size: 1.05rem; transition: background .2s, border-color .2s; }
.jh-arrow:hover { background: #fff; color: #111; border-color: #fff; }

/* programmes */
.jp-row-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.jp-card { display: block; }
.jp-poster { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #111; }
.jp-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.jp-card:hover .jp-poster img { transform: scale(1.05); }
.jp-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000c, #0000 55%); }
.jp-tag { position: absolute; top: .7rem; left: .7rem; z-index: 2; background: #fff; color: #111; border-radius: 3px; padding: .3rem .45rem; font: 700 .6rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.jp-ptitle { position: absolute; left: .9rem; right: .9rem; bottom: .9rem; z-index: 2; color: #fff; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: .86; }
.jp-meta { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; padding-top: .8rem; }
.jp-name { font-weight: 600; font-size: .98rem; } .jp-price { color: var(--mute); font-size: .82rem; align-self: center; }
.jp-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; font-size: .72rem; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.jp-row b { background: var(--j-ink); color: var(--bg); padding: .28rem .45rem; border-radius: 3px; font-size: .6rem; font-weight: 700; letter-spacing: .1em; }
.jp-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: .45rem; }
.jp-bar i { height: 4px; background: var(--rule); border-radius: 2px; } .jp-bar i.on { background: var(--j-ink); }
.jp-lv { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); font-size: .62rem; color: var(--mute); margin-top: .3rem; }
.jp-lv span:nth-child(2) { text-align: center; } .jp-lv span:last-child { text-align: right; }

/* transformations */
.jt-nav { display: flex; gap: .5rem; }
.jt-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); background: transparent; cursor: pointer; font-size: 1.05rem; transition: background .2s, color .2s; }
.jt-nav button:hover { background: var(--j-ink); color: var(--bg); }
.jt-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.jt-row::-webkit-scrollbar { display: none; }
.jt-card { flex: 0 0 min(560px, 86vw); scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1fr; background: var(--j-card); border-radius: 8px; overflow: hidden; min-height: 320px; }
.jt-img { position: relative; background: #111; }
.jt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jt-badge { position: absolute; top: .7rem; left: .7rem; background: #fff; color: #111; border-radius: 3px; padding: .3rem .45rem; font: 700 .6rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.jt-body { padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.jt-q { font-size: 1.02rem; line-height: 1.5; }
.jt-who { font-size: .82rem; color: var(--mute); } .jt-who b { display: block; color: var(--j-ink); font-size: .95rem; }

/* hevy */
.jhv-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.jhv-stage { position: relative; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #3a3835, #121110 70%); }
.jhv-stage::before { content: ""; position: absolute; inset: 0; background: url("../img/dumbbell-bw.webp") center / cover; opacity: .18; filter: grayscale(1); }
.phone { position: relative; width: min(58%, 290px); aspect-ratio: 9 / 19; border-radius: 38px; background: #0d0d0d; padding: 10px; box-shadow: 0 40px 80px #000a, inset 0 0 0 2px #2c2c2c; transform: rotate(-8deg); }
.ph-notch { position: absolute; top: 18px; left: 50%; width: 30%; height: 18px; border-radius: 12px; background: #000; transform: translateX(-50%); z-index: 2; }
.ph-screen { height: 100%; border-radius: 29px; background: #fff; color: #111; padding: 2.4rem .9rem .9rem; display: flex; flex-direction: column; font-family: var(--body); overflow: hidden; }
.ph-top { position: absolute; top: 20px; left: 30px; right: 30px; display: flex; justify-content: space-between; font-size: .62rem; font-weight: 600; color: #111; }
.ph-title { font-weight: 700; font-size: 1rem; } .ph-sub { font-size: .66rem; color: #777; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin: .7rem 0; padding: .55rem 0; border-block: 1px solid #eee; }
.ph-stats b { display: block; font-size: .72rem; } .ph-stats span { font-size: .55rem; color: #888; }
.ph-list { list-style: none; padding: 0; display: grid; gap: .45rem; }
.ph-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 .4rem; align-items: center; padding: .45rem .5rem; border-radius: 8px; background: #f4f4f3; }
.ph-list b { font-size: .7rem; } .ph-list span { grid-column: 1; font-size: .6rem; color: #777; }
.ph-list i { grid-row: 1 / 3; grid-column: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .6rem; background: #1a7f37; color: #fff; }
.ph-list i.pr { background: #e0a100; font-size: .5rem; font-weight: 700; } .ph-list li.dim { opacity: .5; } .ph-list li.dim i { background: #ddd; }
.ph-btn { margin-top: auto; text-align: center; background: #111; color: #fff; border-radius: 10px; padding: .6rem; font-size: .7rem; font-weight: 600; }
.jhv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.jhv-cols h3 { font-size: .95rem; font-weight: 600; } .jhv-cols p { font-size: .85rem; color: var(--mute); margin-top: .4rem; line-height: 1.5; }

/* numbers */
.jnum { border-top: 1px solid var(--rule); }
.jn-label { text-align: center; font: 700 .66rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 2.4rem; }
.jn-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.jn-grid > div { padding: 0 1.4rem; border-left: 1px solid var(--rule); } .jn-grid > div:first-child { border-left: 0; padding-left: 0; }
.jn-grid b { display: block; font-family: var(--j-h); font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.jn-grid h3 { font-size: 1.05rem; font-weight: 600; margin-top: .4rem; } .jn-grid p { font-size: .85rem; color: var(--mute); margin-top: 1.6rem; line-height: 1.5; max-width: 30ch; }

/* lead magnet */
.jl-box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: end; background: var(--j-card); border-radius: 10px; padding: clamp(1.6rem, 4vw, 3.4rem); }
.jl-form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.jl-form label { display: grid; gap: .4rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.jl-form input, .jl-form select { height: 48px; padding: 0 .9rem; background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); color: var(--j-ink); font-size: 1rem; letter-spacing: 0; text-transform: none; border-radius: 0; }
.jl-form input:focus, .jl-form select:focus { outline: none; border-bottom-color: var(--j-ink); }
.jl-form select option { color: #111; }
.jl-form .jbtn { grid-column: 1 / -1; height: 52px; }
.jl-fine { grid-column: 1 / -1; font-size: .78rem; color: var(--mute); }

@media (max-width: 1100px) { .jp-row-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .jhv-grid, .jl-box { grid-template-columns: 1fr; }
  .jn-grid { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; } .jn-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .jhv-cols { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .j-head { flex-direction: column; align-items: flex-start; }
  .jt-nav { display: none; }
  .jh-copy { bottom: 6.2rem; }
  .jh-ctrl .jh-arrow { display: none; }
  .jp-row-cards { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .jp-row-cards::-webkit-scrollbar { display: none; }
  .jp-card { flex: 0 0 68vw; scroll-snap-align: start; }
  .jt-card { flex-basis: 82vw; grid-template-columns: 1fr; grid-template-rows: 250px auto; }
  /* pinned rows (mobile pinSlide adds .scroll-x) */
  .jp-row-cards.scroll-x, .jt-row.scroll-x { overflow: visible; width: max-content; scroll-snap-type: none; will-change: transform; }
  .jl-form { grid-template-columns: 1fr; }
  .jhv-stage { aspect-ratio: 1 / 1.2; } .phone { width: 52%; }
  .jn-grid p { margin-top: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .jh-slide > video, .jh-slide > img { transition: none; transform: none; } .jh-bars span.run::after { animation: none; transform: scaleX(1); } }
/* desktop pinned transformations row */
@media (min-width: 768px) {
  .jt-row.pin-x { overflow: visible; width: max-content; scroll-snap-type: none; will-change: transform; }
  .jt-row.pin-x ~ *, .jtrans:has(.pin-x) .jt-nav { display: none; }
}

/* wide before/after card (two photos side by side) */
.jt-card.wide { flex-basis: min(820px, 90vw); grid-template-columns: 1.62fr 1fr; }
.jt-card.wide .jt-img img { object-fit: contain; object-position: center; }
@media (max-width: 767px) {
  .jt-card.wide { flex-basis: 86vw; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .jt-card.wide .jt-img { aspect-ratio: 776 / 479; }
}

/* footer */
.jfoot { --f-bg: #0d0c0b; background: var(--f-bg) !important; border-top: 1px solid var(--rule); padding-top: clamp(3rem, 7vw, 6rem); overflow: hidden; position: relative; }
.jf-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: clamp(2.4rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.jf-h { font-family: var(--j-h); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 4rem); line-height: .92; }
.jf-cta .jh-ctas { margin-top: 0; }
.jf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.3fr; gap: 2rem; padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.jf-grid h4 { font: 700 .66rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.1rem; }
.jf-grid a, .jf-grid span { display: block; padding: .3rem 0; font-size: .93rem; transition: color .2s, opacity .2s; overflow-wrap: anywhere; }
.jf-grid a:hover { color: var(--red); }
.jf-brand img { height: 28px; width: auto; }
.jf-brand p, .jf-news p { color: var(--mute); font-size: .9rem; line-height: 1.6; margin-top: 1rem; max-width: 34ch; }
.jf-news p { margin: 0 0 1rem; }
.jf-news .j-link { display: inline-block; padding: 0 0 .3rem; }
.jf-social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.jf-social a { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--rule); }
.jf-social a:hover { background: var(--fg); color: var(--f-bg); border-color: var(--fg); }
.jf-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--mute); }
.jf-legal > span:last-child { display: flex; gap: 1.4rem; } .jf-legal a:hover { color: var(--fg); }
.jf-word-wrap { padding: 0 var(--pad); margin-bottom: -.12em; line-height: 0; }
.jfoot .jf-word { margin: 0; color: var(--fg); opacity: .09; line-height: .8; }
.jfoot .jf-word span { color: var(--red); opacity: 1; }
@media (max-width: 1100px) { .jf-grid { grid-template-columns: 1fr 1fr 1fr; } .jf-brand { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .jf-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .jf-news, .jf-grid > div:nth-child(4) { grid-column: 1 / -1; }
  .jf-cta .jh-ctas { width: 100%; } .jf-cta .jbtn { flex: 1; }
  .jfoot { padding-bottom: 76px; } /* room for the mobile booking bar */
}
