/* The home page (public/index.html): the 3D intro and the short sales page after it.
 *
 * The head script sets html.fly (motion allowed) or html.still (prefers-reduced-motion) before the first
 * paint, so the layout never jumps when public/js/home3d.js arrives. html.fly pins the intro: a tall section
 * whose sticky pin holds the WebGL canvas and one line per scene on top of it. html.reel-on is added once the
 * canvas draws. Without either class (no script) and with html.still, the same figures are a plain stacked
 * sequence of photos with their lines. Only transform and opacity animate.
 */

body.home{background:var(--bg)}
body.home>nav.top{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}
:root[data-theme="day"] body.home>nav.top{background:#fff}
/* At 17 px (sales.css, phones) the orange half of the name is small text, which needs 4.5:1 on white. */
@media(max-width:420px){:root[data-theme="day"] body.home>nav.top .mark span{color:#a83200}}
.home .wrap.narrow{max-width:760px}
.home section.band{scroll-margin-top:64px}
.home section.band:focus{outline:none}

/* ------------------------------------------------------------- the intro, shared */
/* The intro is photographs in both themes, so its words are always light on dark. */
.reel{position:relative;background:#07090d;color:#f2f5fa}
.reel-tag{display:inline-block;font:900 12px/1 var(--mono);letter-spacing:2.6px;text-transform:uppercase;color:#ffb07a;margin-bottom:12px}
.reel-cap h1,.reel-line{font:900 clamp(32px,5.4vw,76px)/1 var(--mono);letter-spacing:clamp(-3px,-.04em,-1.2px);max-width:15ch;color:#fff}
.reel-cap .sub{margin-top:18px;max-width:46ch;font:600 clamp(15px,1.45vw,19px)/1.5 var(--sans);color:#e8edf5}
.reel-cap h1,.reel-line,.reel-cap .sub,.reel-tag{text-shadow:0 2px 24px rgba(0,0,0,.7),0 1px 3px rgba(0,0,0,.6)}
.reel-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
:root .reel .reel-cta .btn:not(.primary),:root .reel .reel-cta .btn:not(.primary):hover{background:rgba(7,9,13,.72);border:1px solid rgba(255,255,255,.4);color:#fff}
.reel-skip{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;font:800 13px/1 var(--mono);letter-spacing:.4px;color:#fff;background:rgba(7,9,13,.7);border:1px solid rgba(255,255,255,.35)}
.reel-skip:hover{border-color:var(--hot)}
.reel-skip::after{content:"";width:8px;height:8px;margin-left:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}
.reel-gl,.reel-bar{display:none}

/* ------------------------------------------------------------- still: one photo after another */
:root:not(.fly) .reel-pin{padding:20px 0 0}
:root:not(.fly) .reel-skip{position:relative;z-index:2;margin:0 0 16px 22px}
:root:not(.fly) .scene{position:relative;margin:0;min-height:min(78vh,760px);display:flex;align-items:flex-end;overflow:hidden}
:root:not(.fly) .scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  /* Each scene's focus (--fx, and --fx2 where the 3D view pans from the player to the device): the plain photo
     centres between the two. On a phone the photo shows about a third of its width, so a focus x is reached
     with object-position (x - .5) * 150% + 50%. */
  object-position:clamp(0%,calc(((var(--fx,.5) + var(--fx2,var(--fx,.5))) / 2 - .5) * 150% + 50%),100%) 50%}
:root:not(.fly) .scene::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(7,9,13,.92),rgba(7,9,13,.55) 45%,rgba(7,9,13,.05) 80%);pointer-events:none}
:root:not(.fly) .reel-cap{position:relative;z-index:1;max-width:1140px;width:100%;margin:0 auto;padding:120px 22px 48px}
/* On a phone each photo is a 4:5 frame, which shows about 45% of its width: the focus moves by 180%. The line-up
   is shown whole, at the top, with its words in the dark below it. */
@media(max-width:700px){
  :root:not(.fly) .scene{min-height:125vw}
  :root:not(.fly) .scene img{object-position:clamp(0%,calc(((var(--fx,.5) + var(--fx2,var(--fx,.5))) / 2 - .5) * 180% + 50%),100%) 50%}
  :root:not(.fly) .scene[data-scene="lineup-buddy"] img{height:56.25vw;object-fit:cover}
  :root:not(.fly) .scene[data-scene="lineup-buddy"]::after{background:linear-gradient(0deg,#07090d 40%,rgba(7,9,13,.6) 52%,rgba(7,9,13,0) 60%)}
  :root:not(.fly) .scene[data-scene="lineup-buddy"] .reel-cap{padding-top:calc(56.25vw + 12px)}
}

/* ------------------------------------------------------------- fly: one pinned 3D scene */
/* Six pushes between seven scenes, then the line-up holds for SETTLE (0.7) of a scene: 6.7 lengths in all. */
.fly .reel{--seg:80vh;height:calc(100vh + 6.7 * var(--seg))}
.fly .reel-pin{position:sticky;top:0;height:100vh;overflow:hidden;background:radial-gradient(120% 90% at 50% 30%,#1a2130,#07090d 70%)}
.fly .reel-gl{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .6s ease}
.reel-on .reel-gl{opacity:1}
.fly .scene{position:absolute;inset:0;margin:0;pointer-events:none}
.fly .scene img{display:none}
.fly .reel-cap{position:absolute;left:max(22px,calc((100vw - 1140px) / 2 + 22px));right:22px;bottom:max(64px,11vh);opacity:0;will-change:opacity,transform}
.fly .scene:first-of-type .reel-cap{opacity:1}
.fly .reel-cap a{pointer-events:auto}
.fly .reel-cta{visibility:hidden}
.fly .reel-cta.on{visibility:visible}
.fly .reel-skip{position:absolute;z-index:3;right:22px;bottom:max(20px,3vh)}
.fly .reel-bar{display:block;position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.12);z-index:2}
.fly .reel-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--hot),#ffbe6b);transform:scaleX(0);transform-origin:0 50%}
/* The finale on a wide screen: the line-up photo pulls back under the nav (home3d.js) and its words sit centred
   along the bottom, on the dark below the players' feet. */
@media(min-width:701px){
  .fly .scene:last-of-type .reel-cap{left:22px;right:22px;bottom:max(28px,4vh);text-align:center}
  .fly .scene:last-of-type .reel-line{max-width:none;font-size:clamp(30px,3.4vw,52px)}
  .fly .scene:last-of-type .reel-tag{margin-bottom:8px}
  .fly .scene:last-of-type .reel-cta{justify-content:center;margin-top:18px}
}
@media(max-width:700px){
  .fly .reel-cap{left:20px;right:20px;bottom:calc(84px + (100vh - 100svh))}
  .fly .reel-skip{right:auto;left:20px;bottom:calc(18px + (100vh - 100svh))}
  .reel-cap h1,.reel-line{font-size:clamp(30px,9vw,40px)}
  .reel-cta .btn.lg{padding:14px 20px;font-size:15px}
}

/* ------------------------------------------------------------- the video */
.player{position:relative;max-width:1000px;margin:0 auto;aspect-ratio:16/9;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:radial-gradient(90% 120% at 30% 20%,#2a1a12,#0b0f16 65%)}
.player video{display:block;width:100%;height:100%;object-fit:cover;background:transparent}
.player-play{position:absolute;left:50%;top:50%;width:96px;height:96px;margin:-48px 0 0 -48px;border-radius:50%;background:linear-gradient(135deg,var(--hot),#ff8a3d);box-shadow:0 14px 44px rgba(255,90,31,.45);display:grid;place-items:center;transition:transform .16s}
.player-play:hover{transform:scale(1.06)}
.player-play i{width:0;height:0;margin-left:7px;border-style:solid;border-width:17px 0 17px 28px;border-color:transparent transparent transparent #0a0a0a}
.player.playing .player-play,.player.missing .player-play{display:none}
.player-note{position:absolute;left:16px;right:16px;bottom:16px;padding:12px 16px;border-radius:12px;background:rgba(7,9,13,.86);color:#f2f5fa;font-weight:700;text-align:center}

/* ------------------------------------------------------------- how it works */
.how{list-style:none;display:grid;gap:18px}
@media(min-width:820px){.how{grid-template-columns:repeat(3,1fr)}}
.how li{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.how img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:var(--panel2)}
.how h3{display:flex;align-items:center;gap:12px;font:900 21px/1.2 var(--mono);letter-spacing:-.5px;color:var(--ink);padding:20px 22px 6px}
.how h3 span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--hot);color:#0a0a0a;font-size:16px}
.how p{color:var(--mute);font-size:15.5px;line-height:1.55;padding:0 22px 22px}
.trust{text-align:center;margin-top:24px;font-weight:800;color:var(--ink)}

/* ------------------------------------------------------------- what you get */
.gets{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
.get{background:var(--panel);border:1px solid var(--line);border-top:4px solid var(--hot);border-radius:18px;padding:22px}
.get:nth-child(2){border-top-color:var(--cool)}
.get:nth-child(3){border-top-color:var(--grape)}
.get:nth-child(4){border-top-color:var(--good)}
.get h3{font:900 19px/1.2 var(--mono);letter-spacing:-.4px;color:var(--ink);margin-bottom:8px}
.get p{color:var(--mute);font-size:15px;line-height:1.55}

/* ------------------------------------------------------------- the companions */
.crew{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.crew li{width:112px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:12px 8px;text-align:center}
.crew li.live{width:100%;max-width:340px;display:grid;grid-template-columns:112px 1fr;grid-template-rows:auto auto auto;align-items:center;column-gap:16px;text-align:left;padding:16px 18px;border-color:var(--hot)}
.crew li.live img{grid-row:1/4}
.crew img{display:block;margin:0 auto 6px}
.crew b{display:block;font:900 15px/1.2 var(--mono);color:var(--ink)}
.crew li.live b{font-size:24px}
.crew small{display:block;color:var(--mute);font-size:12.5px}
.crew .tag{display:inline-block;margin-top:6px;font:900 10px/1 var(--mono);letter-spacing:1.1px;text-transform:uppercase;color:var(--mute)}
.crew li.live .tag{color:#0a0a0a;background:var(--hot);padding:6px 10px;border-radius:999px;width:max-content}
@media(max-width:480px){.crew{gap:10px}.crew li:not(.live){width:calc((100% - 20px) / 3)}}
@media(min-width:900px){.crew li.live{flex-basis:100%;max-width:none;justify-content:center;grid-template-columns:112px auto;width:auto}}

/* ------------------------------------------------------------- pricing */
.groups{max-width:760px;margin:30px auto 0;text-align:center;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:24px}
.groups h3{font:900 21px/1.2 var(--mono);letter-spacing:-.5px;color:var(--ink);margin-bottom:8px}
.groups p{color:var(--mute)}
.groups .cta{margin-top:16px}
.home .fine{color:var(--mute);font-size:13.5px;line-height:1.55;margin-top:14px}
.home .fine.center{text-align:center;max-width:62ch;margin:20px auto 0}

/* ------------------------------------------------------------- questions */
.faq-wrap{display:grid;gap:28px;align-items:start}
@media(min-width:900px){.faq-wrap{grid-template-columns:5fr 7fr}}
.faq-photo{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:20px;background:var(--panel2)}
@media(min-width:900px){.faq-photo{aspect-ratio:4/5;position:sticky;top:90px}}
.faq h2{text-align:left!important}
.faq p a{color:var(--hot-ink,var(--hot));font-weight:700;text-decoration:underline}
:root[data-theme="day"] .faq p a{color:#a83200}

/* ------------------------------------------------------------- the last call */
#join{position:relative;overflow:hidden;text-align:center;background:#07090d;color:#f2f5fa;padding:110px 0}
#join .join-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}
#join::after{content:"";position:absolute;inset:0;height:auto;background:linear-gradient(180deg,rgba(7,9,13,.55),rgba(7,9,13,.85));pointer-events:none}
#join .wrap{position:relative;z-index:1}
#join h2{color:#fff}
#join p{color:#e8edf5;font-size:17px}
#join .btn:not(.primary),#join .btn:not(.primary):hover{background:rgba(7,9,13,.72);border:1px solid rgba(255,255,255,.4);color:#fff}
#join .signoff{margin-top:26px;font:900 22px/1 var(--mono);color:#ffb07a}
#join .contact-line{color:#e8edf5}
#join .contact-line a{color:#ffb07a}
