/* =========================================================
   CLIENT THEME: Dog Treadmill Mobile
   Brand tokens (used by every page) + cinematic scene tuning.
   ========================================================= */
:root{
  /* brand */
  --teal-950:#071413;
  --teal-900:#0b1d1b;
  --teal-800:#0f2c29;
  --teal:#123a36;          /* logo deep teal */
  --teal-500:#2f6b62;
  --orange:#e8700f;        /* logo orange */
  --orange-600:#9e4703;   /* small orange text on cream (AA contrast) */
  --orange-ink:#1b0d02;
  --cream:#f6efe2;
  --cream-2:#ebe1cd;
  --gold:#e6a63a;
  --line:rgba(246,239,226,.14);

  /* engine variables */
  --bg:var(--teal-900);
  --ink:var(--cream);
  --muted:#a9b7b1;
  --accent:var(--teal);
  --accent-ink:var(--cream);
  --shade:var(--cream);
  --shade-ink:#5a4f3c;
  --bezel:var(--orange);
  --grain:.045;

  --font-display:"Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:14px;
  --gutter:clamp(16px,4vw,56px);
  --max:1240px;
}

/* Display type: condensed, heavy, uppercase. Sports-poster energy. */
.display,.h-ghost,.sc-word,[data-split],.ex-head .display{font-family:var(--font-display);font-stretch:72%;font-weight:850;text-transform:uppercase;letter-spacing:-.01em;line-height:.9}
.eyebrow{font-family:var(--font-body);font-weight:600;font-size:12px;letter-spacing:.22em;color:var(--gold)}

/* Chrome: the engine's centered logo is replaced by the site header (site.css) */
.chrome-top,.chrome-bottom{display:none}
.loader-mark{width:64px;height:64px;animation:spin 2.4s linear infinite;border-radius:50%}

/* ---------- PORTAL: window opens on the van in Port St. Lucie ---------- */
/* First paint already matches the scene's starting frame, so no loader is needed */
.js .scene-portal .portal-media{clip-path:inset(var(--portal-inset-y) var(--portal-inset-x) var(--portal-inset-y) var(--portal-inset-x) round var(--portal-radius))}
.js .scene-portal .portal-after > *{opacity:0;visibility:hidden}
.js.is-reduced .scene-portal .portal-media{clip-path:none}
.js.is-reduced .scene-portal .portal-after > *{opacity:1;visibility:visible}
.scene-portal{--portal-inset-y:20%;--portal-inset-x:38%;--portal-radius:999px}
.scene-portal .stage{background:radial-gradient(ellipse 80% 70% at 50% 50%,var(--teal-800),var(--teal-950) 75%)}
.scene-portal .portal-media img{object-position:52% 60%}
.portal-bezel{box-shadow:0 0 0 6px var(--orange),0 0 0 7px rgba(0,0,0,.2),0 40px 120px 30px rgba(0,0,0,.6),inset 0 0 40px rgba(0,0,0,.35)}
.portal-shade{background:linear-gradient(180deg,var(--cream),var(--cream-2))}
/* shade: the round logo with arrows pointing down */
.shade-mark{display:grid;justify-items:center;gap:clamp(10px,1.6vh,18px)}
.portal-media .shade-logo{width:calc(var(--portal-d,38vw) * .6);height:auto;object-fit:contain;border-radius:50%;box-shadow:0 14px 40px -12px rgba(11,29,27,.45);animation:shade-float 4.5s ease-in-out infinite}
.shade-arrows{display:grid;justify-items:center;gap:0}
.shade-arrows i{display:block;width:20px;height:20px;border-right:3px solid var(--orange);border-bottom:3px solid var(--orange);transform:rotate(45deg);margin-top:-5px;opacity:.2;animation:shade-arrow 1.6s ease-in-out infinite}
.shade-arrows i:nth-child(2){animation-delay:.2s}
.shade-arrows i:nth-child(3){animation-delay:.4s}
.portal-shade .shade-hint{font-size:11px;font-weight:700;letter-spacing:.3em;text-transform:uppercase;color:var(--teal)}
@keyframes shade-arrow{0%,100%{opacity:.15;transform:translateY(-4px) rotate(45deg)}50%{opacity:1;transform:translateY(2px) rotate(45deg)}}
@keyframes shade-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@media (max-width:759px){.portal-media .shade-logo{width:calc(var(--portal-d,70vw) * .56)}.shade-arrows i{width:14px;height:14px}}
@media (prefers-reduced-motion:reduce){.portal-media .shade-logo,.shade-arrows i{animation:none}.shade-arrows i{opacity:.8}}
.portal-intro{inset:0;top:0;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:0 var(--gutter);text-align:left;pointer-events:none}
.portal-intro .pi-left{padding-right:calc(var(--portal-d,38vw) / 2 + 3vw)}
.portal-intro .pi-right{padding-left:calc(var(--portal-d,38vw) / 2 + 3vw);justify-self:end;max-width:none}
.portal-intro h1{font-size:clamp(52px,6.6vw,120px);margin:14px 0 0;color:var(--cream)}
.portal-intro h1 span{display:block;color:var(--orange)}
.portal-intro .pi-sub{font-family:var(--font-display);font-stretch:80%;font-weight:700;text-transform:uppercase;font-size:clamp(20px,1.8vw,28px);line-height:1.05;margin:0 0 18px;color:var(--cream)}
.portal-intro .pi-right p.small{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 22px;max-width:300px}
.portal-intro .btn{pointer-events:auto}
.portal-after{bottom:10vh}
.portal-after .display{font-size:clamp(48px,8vw,140px)}
.portal-after .eyebrow{color:#fff;text-shadow:0 2px 20px rgba(0,0,0,.6)}
@media (max-width:1100px){
  .scene-portal{--portal-inset-x:34%}
  .portal-intro{grid-template-columns:1fr;align-content:space-between;padding:96px 20px 4vh;text-align:center}
  .portal-intro .pi-left,.portal-intro .pi-right{padding:0;justify-self:center}
  .portal-intro h1{font-size:clamp(44px,8vw,80px)}
  .portal-intro h1 span{display:inline}
  .portal-intro .pi-right p.small{display:none}
  .portal-intro .pi-sub{margin-bottom:12px}
}
@media (max-width:759px){
  .scene-portal{--portal-inset-y:27%;--portal-inset-x:20%;--portal-radius:999px}
  .portal-intro{padding:84px 16px 3.5vh}
  .portal-intro h1{font-size:clamp(46px,14vw,66px);margin-top:8px}
  .portal-intro .pi-sub{font-size:19px;margin:0}
  .portal-intro .pi-right .btn{display:none}   /* the sticky action bar carries Book on phones */
  .portal-intro{padding-bottom:calc(84px + 4vh)}
  .portal-after{bottom:calc(84px + 5vh)}
  .portal-after .eyebrow{font-size:10px;letter-spacing:.16em}
}

/* ---------- ENTER: push through the van's side into the gym ---------- */
.scene-enter .stage{background:var(--teal-950)}
/* the enter scene starts on the exact frame the portal ends on and slides in underneath it,
   so when the portal scrolls away the camera has not cut: it just keeps moving */
.is-cinema .scene-portal{position:relative;z-index:3}
.is-cinema .scene-portal .stage{box-shadow:0 40px 80px 10px rgba(3,10,9,.75)}
.is-cinema .scene-enter{margin-top:-100vh;margin-top:-100svh;position:relative;z-index:1}
.enter-intro{padding:34vh 16px 10vh;background:linear-gradient(rgba(5,14,13,0),rgba(5,14,13,.55) 35%,rgba(5,14,13,.85))}
.enter-intro .display{text-shadow:0 6px 40px rgba(0,0,0,.55)}
.enter-intro .display{font-size:clamp(44px,7.4vw,124px);line-height:.88}
.enter-intro .display span{display:block}
.enter-intro .display span:nth-child(3){color:var(--orange)}
.enter-in{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:var(--teal-950)}
.enter-in figure{margin:0;position:relative;overflow:hidden}
.enter-in figure img{width:100%;height:100%;object-fit:cover}
.enter-in figure + figure{border-left:3px solid var(--teal-950)}
.enter-in .one{display:none}
@media (max-width:759px){.enter-in{grid-template-columns:1fr}.enter-in .tri{display:none}.enter-in .one{display:block}}
.enter-copy{background:linear-gradient(transparent,rgba(5,14,13,.82) 55%)}
.enter-copy .display{font-size:clamp(40px,6vw,96px)}

/* ---------- WORDS ---------- */
.scene-words{background:var(--teal-900)}
.scene-words [data-split]{font-size:clamp(30px,4.6vw,72px);line-height:1;max-width:1200px}
.words-bg img{filter:saturate(.8)}
.scene-words .w:nth-last-child(-n+3){color:var(--orange)}

/* ---------- HORIZONTAL: how a session works ---------- */
.scene-horizontal .stage{background:var(--cream);color:var(--teal-900)}
.scene-horizontal{--ghost:rgba(18,58,54,.10)}
.h-ghost{font-size:24vw;font-stretch:70%}
.h-intro .eyebrow{color:var(--orange-600)}
.h-intro .display{color:var(--teal);font-size:clamp(44px,5.4vw,88px)}
.h-intro p{font-size:16px;line-height:1.65;color:#3b4a46;max-width:360px;margin:18px 0 0}
.h-panel .h-img{height:min(58vh,56vw);aspect-ratio:4/5;border-radius:var(--radius)}
.h-panel .h-img.is-van{display:grid;place-items:center;background:radial-gradient(ellipse 80% 60% at 50% 60%,var(--teal-500),var(--teal) 75%)}
.h-panel .h-img.is-van img{width:94%;height:auto;max-width:none;margin:0;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(0,0,0,.35))}
.h-panel figcaption{display:block;margin-top:16px;color:var(--teal-900);text-transform:none;letter-spacing:0;font-size:15px;max-width:min(46vh,44vw)}
.h-panel figcaption b{display:block;font-family:var(--font-display);font-stretch:75%;font-weight:800;text-transform:uppercase;font-size:24px;line-height:1;margin-bottom:6px;color:var(--teal)}
.h-panel figcaption b i{font-style:normal;color:var(--orange-600);margin-right:10px}
.h-panel figcaption span{color:#46554f;line-height:1.55}
.h-end{flex:0 0 auto;width:min(34vw,420px);align-self:center}
.h-end .display{color:var(--teal);font-size:clamp(36px,4vw,64px)}
@media (max-width:759px){.h-panel .h-img{width:72vw;height:auto}.h-panel figcaption{max-width:72vw}.h-end{width:78vw}.h-intro p{font-size:15px}}

/* ---------- EXPAND: the run ---------- */
.scene-expand{--expand-bg:var(--teal-950)}
.ex-head{top:8vh}
.ex-head .display{font-size:clamp(60px,11vw,200px);color:var(--cream)}
.ex-head .display .o{color:var(--orange)}
.ex-head p{font-size:15px;color:var(--muted);margin:14px 0 0}
.ex-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,14,13,.15),transparent 40%,rgba(5,14,13,.75));pointer-events:none}
.ex-after .display{font-size:clamp(36px,5.6vw,92px)}
.ex-after p{max-width:560px;margin:16px auto 0;line-height:1.65;color:rgba(255,255,255,.9)}

/* reduced motion polish */
.is-reduced .portal-media{clip-path:none}
.is-reduced .scene-portal .stage{height:auto;min-height:100svh;display:grid;grid-template-rows:auto auto auto}
.is-reduced .portal-intro{order:-1;display:grid;position:relative;inset:auto;grid-template-columns:1fr;text-align:center;padding:110px 16px 30px}
.is-reduced .portal-intro .pi-left,.is-reduced .portal-intro .pi-right{padding:0;justify-self:center}
.is-reduced .portal-intro h1 span{display:inline}
.is-reduced .portal-media{position:relative;inset:auto;height:60vh}
.is-reduced .portal-after{position:relative;inset:auto;padding:30px 16px 60px}
.is-reduced .scene-enter .stage{height:auto}
.is-reduced .enter-in{position:relative;height:80vh}
.is-reduced .enter-copy{position:relative;padding:40px 16px 70px;background:var(--teal-950)}
.is-reduced .scene-expand .ex-media{height:70vh}
.is-reduced .ex-after{position:relative;inset:auto;padding:40px 16px 70px}
.is-reduced .scene-horizontal .stage{overflow-x:auto}
