/* Homepage v2: first screen only. Loaded after site.css; nothing in site.css is changed. */

/* 1. Black Friday strip: a static bar that opens in place (no moving text, no pop-up) */
.offer{background:var(--signal);color:var(--on-signal,#0a0a0a);font-family:var(--f-body)}
.offer[hidden]{display:none!important}
.offer summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:44px;padding:8px max(16px,5vw);font-size:14px;line-height:1.3}
.offer summary::-webkit-details-marker{display:none}
.offer summary:focus-visible{outline:3px solid #0a0a0a;outline-offset:-3px}
.offer-line b{font-weight:700;margin-right:4px}
.offer-cta{flex:none;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px;
  background:#0a0a0a;color:var(--signal);border-radius:999px;padding:6px 12px}
.offer-cta::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.offer[open] .offer-cta::after{transform:translateY(1px) rotate(-135deg)}
.offer-body{padding:4px max(16px,5vw) 18px;max-width:720px}
.offer-deals{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.offer-deals li{background:rgba(10,10,10,.08);border-radius:10px;padding:12px 14px;display:grid;gap:2px}
.offer-deals b{font-family:var(--f-display);font-size:19px;text-transform:uppercase;line-height:1.1}
.offer-deals span{font-size:14px}
.offer-how{margin:0 0 6px;font-size:14.5px}
.offer-how a{color:inherit;font-weight:700;text-underline-offset:3px;overflow-wrap:anywhere}
.offer-fine{margin:0;font-size:12.5px;opacity:.75}

/* 2. Hero: one readable line under the headline, bigger buttons */
.hero-sub{font-family:var(--f-body);font-size:18px;line-height:1.45;color:rgba(255,255,255,.88);margin:20px 0 0;max-width:34ch}
.hero.has-video .hero-ctas{margin-top:28px}


@media (max-width:600px){
  .hero-sub{font-size:17px}
  .hero.has-video .hero-ctas{flex-direction:column;align-items:stretch;flex-wrap:nowrap!important;gap:10px!important}
  .hero.has-video .hero-ctas .btn{width:100%}
}

/* 3. Header Sign up on phones: hidden while the hero's own button is on screen, then always within reach */
@media (max-width:860px){
  header.nav .nav-right .btn-signal{display:inline-flex!important;padding:9px 14px;font-size:12.5px;transition:opacity .2s,visibility .2s}
  html:not(.past-hero) header.nav .nav-right .btn-signal{opacity:0;visibility:hidden}
}
@media (prefers-reduced-motion:reduce){.offer-cta::after,header.nav .nav-right .btn-signal{transition:none}}

/* 4. Hero video visible: darken only behind the text, not the whole video */
.hero.has-video .hero-bg{filter:saturate(1.05)}
.hero.has-video h1,.hero.has-video .hero-sub{text-shadow:0 2px 18px rgba(0,0,0,.45)}
/* desktop and tablet: text sits on the left, so shade the left and let the right side show */
.hero.has-video::after{background:
  linear-gradient(90deg,rgba(10,10,10,.82) 0%,rgba(10,10,10,.55) 38%,rgba(10,10,10,.12) 70%,rgba(10,10,10,0) 100%),
  linear-gradient(to top,var(--bg) 0%,rgba(10,10,10,0) 24%)}
/* phones: tall hero, video clear at the top, text on a shaded band at the bottom */
@media (max-width:600px){
  body .hero.has-video{align-items:flex-end;padding-block:96px 32px}
  .hero.has-video::after{background:linear-gradient(to bottom,
    rgba(10,10,10,.05) 0%,rgba(10,10,10,.12) 30%,rgba(10,10,10,.62) 48%,rgba(10,10,10,.86) 66%,var(--bg) 100%)}
}

/* 5. Header hides when scrolling down, comes back as soon as you scroll up */
header.nav{transition:transform .28s ease}
html.nav-hide header.nav{transform:translateY(calc(-100% - 2px))}
@media (prefers-reduced-motion:reduce){header.nav{transition:none}}

/* 6. Tiles without descriptions: tighten the card */
.fac a,.fac div.cell{min-height:0;gap:6px}

/* 7. What's inside: info tiles (not clickable) vs. a list of links (clickable) */
.fac-static .cell{cursor:default}
.fac-static .cell h3{font-size:clamp(20px,4.6vw,26px)}
.fac-cta{margin:18px 0 0}

.extras-title{font-size:clamp(26px,6vw,36px);font-weight:700;margin:clamp(36px,6vw,56px) 0 14px}
.extras{list-style:none;margin:0;padding:0;display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.extras a{display:grid;grid-template-columns:72px minmax(0,1fr) 30px;align-items:center;gap:14px;min-height:88px;padding:8px 14px 8px 8px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);text-decoration:none;color:var(--ink);
  transition:background .15s,border-color .15s,transform .15s}
.extras img{width:72px;height:72px;object-fit:cover;border-radius:calc(var(--r) - 4px);display:block}
.extras .ex-txt{display:grid;gap:3px;min-width:0}
.extras b{font-family:var(--f-display);font-size:20px;text-transform:uppercase;line-height:1.05}
.extras small{font-size:14px;color:var(--muted)}
.extras .ex-ic{width:26px;height:26px;justify-self:end;fill:none;stroke:var(--signal);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.extras a:hover{border-color:var(--signal)}
.extras a:active{transform:scale(.98);background:color-mix(in srgb,var(--signal) 14%,var(--surface))}
.extras a:focus-visible{outline:3px solid var(--signal);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:860px){.extras{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.extras a{transition:none}}

/* 8. Tile note (e.g. which site) and Paris Café section */
.fac-static .tile-note{font-size:13.5px;color:var(--muted);margin-top:-2px}
.cafe-band{padding-top:0}
.cafe{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(18px,4vw,48px);align-items:center}
.cafe img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--r);display:block}
.cafe h2{}
.cafe p{margin:12px 0 0;font-size:17px;color:var(--muted);max-width:36ch}
@media (max-width:700px){.cafe{grid-template-columns:1fr}}
.fac-static .ph{position:relative}
.fac-static .soon{position:absolute;top:10px;left:10px;background:var(--signal);color:var(--on-signal);font:700 12px/1 var(--f-body);letter-spacing:.04em;padding:7px 10px;border-radius:999px}

.extras a:hover .ex-ic{transform:translateX(3px)}
.extras a:hover .ex-ic.ext{transform:translate(2px,-2px)}

/* 9. Landing view: video fills the screen to the top, header floats over it */
header.nav{position:fixed;top:0;left:0;right:0;transition:transform .28s ease,background-color .25s,border-color .25s,backdrop-filter .25s}
body .hero.has-video{min-height:100vh;min-height:100svh}
@media (min-width:601px){body .hero.has-video{padding-block:120px 64px}}
html:not(.nav-solid) header.nav{background:transparent;border-bottom-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
html:not(.nav-solid) header.nav:has(#mobile-menu:not([hidden])){background:var(--bg);border-bottom-color:var(--line)}
/* soft shade at the very top so the logo and menu stay readable over bright footage */
.hero.has-video::before{content:"";position:absolute;inset:0 0 auto;height:160px;z-index:-1;pointer-events:none;
  background:linear-gradient(to bottom,rgba(10,10,10,.55),rgba(10,10,10,0))}
html:not(.nav-solid) header.nav .menu-btn{border-color:rgba(255,255,255,.85);background:rgba(10,10,10,.18)}

/* 10. Buttons: calmer, more refined (homepage only) */
.btn{font-family:var(--f-body);font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase;
  border-radius:6px;border-width:1px;padding:15px 26px;gap:12px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s}
.btn-signal{background:var(--signal);border-color:var(--signal);color:#0a0a0a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 10px 26px -14px rgba(254,207,3,.7)}
.btn-signal:hover{background:#ffd935;border-color:#ffd935}
.btn-go::after{content:"";width:16px;height:10px;flex:none;transition:transform .2s;
  background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}
.btn-go:hover::after{transform:translateX(3px)}
.hero.has-video .hero-ctas .btn{font-size:13px!important;padding:17px 28px!important;min-height:54px;justify-content:center}
.hero.has-video .hero-ctas .btn:not(.btn-signal){background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.5);color:#fff;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.hero.has-video .hero-ctas .btn:not(.btn-signal):hover{background:rgba(255,255,255,.16);border-color:#fff}
header.nav .nav-right .btn-signal{font-size:11.5px;letter-spacing:.14em;padding:10px 16px;box-shadow:none}
.fac-cta{margin-top:24px}
.fac-cta .btn{min-height:54px;padding:17px 28px}
.btn:focus-visible{outline:2px solid var(--signal);outline-offset:3px}

/* 11. More breathing room between sections */
body main#top section.block{padding-block:clamp(48px,8vw,104px)!important}
body main#top .sec-head{margin-bottom:clamp(20px,3vw,32px)}
.cafe-band{padding-top:clamp(48px,8vw,104px)}
@media (prefers-reduced-motion:reduce){.btn,.btn-go::after,.extras .ex-ic,header.nav{transition:none}}

/* 12. Timetable button: secondary outline, matches "Try a day" */
.fac-cta .btn-ghost{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.5);color:#fff;box-shadow:none}
.fac-cta .btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
.fac-cta .btn-ghost::after{color:var(--signal)}
@media (max-width:600px){.fac-cta .btn{display:flex;width:100%;justify-content:center}}

/* 13. Member stories: one swipeable row on phones (grid stays on tablet/desktop) */
@media (max-width:600px){
  body main#top .members{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;scroll-padding-inline:16px;
    margin-inline:-16px;padding:0 16px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  body main#top .members::-webkit-scrollbar{display:none}
  body main#top .members .member{flex:0 0 72%;min-width:0;scroll-snap-align:start}
  .swipe-hint{display:flex;align-items:center;gap:8px;margin:12px 0 0;font-size:13.5px;color:var(--muted)}
  .swipe-hint svg{width:22px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
}
@media (min-width:601px){.swipe-hint{display:none}}

/* 14. Member stories as normal video players */
.member.mp{cursor:default}
.member.mp .mp-toggle{position:absolute;inset:0;z-index:3;border:0;margin:0;padding:0;background:transparent;cursor:pointer;border-radius:inherit}
.member.mp .mp-toggle:focus-visible{outline:3px solid var(--signal);outline-offset:-3px}
.member.mp .play{z-index:2;pointer-events:none;transition:opacity .2s}
.member.mp.is-playing .play{opacity:0}
.member.mp.has-started:not(.is-playing) .play{opacity:.95}
.member.mp b{transition:opacity .2s;pointer-events:none}
.member.mp.is-playing b{opacity:0}
/* progress bar: hidden until the story starts, then drag to scrub */
.member.mp .mp-bar{position:absolute;left:12px;right:12px;bottom:8px;z-index:4;display:flex;align-items:center;gap:8px;
  opacity:0;pointer-events:none;transition:opacity .2s}
.member.mp.has-started .mp-bar{opacity:1;pointer-events:auto}
.member.mp.has-started .play{bottom:44px}
.member.mp.has-started b{transform:translateY(-26px)}
.member.mp .mp-time{font:600 11.5px/1 var(--f-body);color:#fff;white-space:nowrap;text-shadow:0 1px 6px rgba(0,0,0,.6);font-variant-numeric:tabular-nums}
.mp-seek{-webkit-appearance:none;appearance:none;flex:1;min-width:0;height:28px;margin:0;background:transparent;cursor:pointer;--p:0%}
.mp-seek::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,var(--signal) var(--p),rgba(255,255,255,.35) var(--p))}
.mp-seek::-moz-range-track{height:4px;border-radius:4px;background:rgba(255,255,255,.35)}
.mp-seek::-moz-range-progress{height:4px;border-radius:4px;background:var(--signal)}
.mp-seek::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;margin-top:-5px;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.mp-seek::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#fff}
.mp-seek:focus-visible{outline:2px solid var(--signal);outline-offset:2px;border-radius:4px}
/* no hover lift on the cards: they behave like players, not links */
.member.mp:hover{transform:none}
.member.mp.has-started q{display:none}

/* 15. Phones: hero buttons side by side */
@media (max-width:600px){
  body .hero.has-video .hero-ctas{flex-direction:row;align-items:stretch;flex-wrap:nowrap!important;gap:8px!important}
  body .hero.has-video .hero-ctas .btn{width:auto;flex:1 1 0;min-width:0;padding:16px 10px!important;font-size:12px!important;letter-spacing:.1em;white-space:nowrap;gap:8px}
  body .hero.has-video .hero-ctas .btn-go::after{width:13px;height:9px}
}

/* 16. One consistent gap between sections (Gestalt proximity: equal, clearly larger than gaps inside a section) */
:root{--sec:clamp(80px,9vw,128px)}
body main#top section.block{padding-top:var(--sec)!important;padding-bottom:0!important}
body main#top section.block#locations{padding-bottom:var(--sec)!important}

/* 17. Hero buttons: one flat primary button + a quiet text link */
.btn{border-radius:3px}
.btn-signal{box-shadow:none}
.btn-signal:hover{background:#ffdb3d;border-color:#ffdb3d}
.hero.has-video .hero-ctas{align-items:center!important}
.hero.has-video .hero-ctas .btn.btn-signal{font-size:12.5px!important;letter-spacing:.16em;font-weight:600;padding:18px 30px!important;min-height:56px}
.hero.has-video .hero-ctas .btn:not(.btn-signal){background:none!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  min-height:56px;padding:18px 6px!important;font-size:12.5px!important;letter-spacing:.16em;font-weight:600;color:#fff;
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px;text-decoration-color:rgba(255,255,255,.55)}
.hero.has-video .hero-ctas .btn:not(.btn-signal):hover{text-decoration-color:var(--signal);color:#fff}
@media (max-width:600px){
  body .hero.has-video .hero-ctas{gap:18px!important}
  body .hero.has-video .hero-ctas .btn.btn-signal{flex:0 0 auto;padding:18px 26px!important}
  body .hero.has-video .hero-ctas .btn:not(.btn-signal){flex:0 1 auto;padding:18px 4px!important}
}
.fac-cta .btn{border-radius:3px}
/* fine-tune sections with built-in offsets so every visible gap equals --sec */
body main#top #app{padding-top:var(--sec)!important;padding-bottom:0!important}
body main#top #community{padding-top:calc(var(--sec) - 23px)!important}
body main#top section.block#locations{padding-bottom:calc(var(--sec) - 58px)!important}
/* "Also at Gym Nation" reads as its own section, so it gets the same gap as every other section */
body main#top .extras-title{margin-top:var(--sec)}
body main#top .extras-head{margin-top:var(--sec)}
/* app + café now use the standard section heading; tidy their content */
#app .app-lede{margin:0;font-size:17px;color:var(--muted);max-width:40ch}
#app .app-top{align-items:center}
.cafe p{margin:0}
@media (min-width:701px){.cafe p{font-size:20px;line-height:1.5;color:var(--ink)}}

/* 18. Phones: lift the hero text off the bottom edge, smaller headline, keep the top half clear */
@media (max-width:600px){
  body .hero.has-video{padding-bottom:calc(clamp(72px,13svh,128px) + env(safe-area-inset-bottom))!important}
  body .hero.has-video h1{font-size:clamp(36px,10.8vw,46px)!important;line-height:.98}
  .hero.has-video .hero-sub{margin-top:16px}
  body .hero.has-video .hero-ctas{margin-top:24px!important}
  .hero.has-video::after{background:linear-gradient(to bottom,
    rgba(10,10,10,.05) 0%,rgba(10,10,10,.1) 26%,rgba(10,10,10,.6) 44%,rgba(10,10,10,.84) 60%,rgba(10,10,10,.9) 82%,var(--bg) 100%)}
}
/* small scroll hint in the space under the hero text */
.scroll-cue{position:absolute;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:2;width:28px;height:28px;
  display:grid;place-items:center;color:rgba(255,255,255,.7);pointer-events:none}
.scroll-cue svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:601px){.scroll-cue{display:none}}

/* Phones: no scroll arrow; hero stops short of the screen bottom so the next section's heading peeks in (shows there's more) */
@media (max-width:600px){
  html body .hero.has-video{min-height:calc(100vh - 96px)!important;min-height:calc(100svh - 96px)!important;
    padding-bottom:calc(40px + env(safe-area-inset-bottom))!important}
  html body main#top > #inside{padding-top:40px!important}
}
