/* Corvo: LIVING LAYER. Scoreboard / stopwatch / bar-speed language, acid lime on black.
   Transform + opacity loops only; paused when their section is off-screen or the tab is hidden. Additive: nothing here hides content without JS. */

/* cheap overrides: no blend modes or backdrop filters over moving media */
.grain { mix-blend-mode: normal; opacity: .035; }
.leak { mix-blend-mode: normal; opacity: .3; }
.chip { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11,11,10,.62); }

/* ---------- pause rules ---------- */
.lv-off .lv-a, .lv-off .lv-a *, .lv-off .lv-a::before, .lv-off .lv-a::after, .lv-off .lv-a *::before, .lv-off .lv-a *::after,
.lv-off .btn-lime::after, .lv-off .leak, .lv-off .coach-lime::after, .lv-off .tier-feature::after,
.lv-hidden .lv-a, .lv-hidden .lv-a *, .lv-hidden .lv-a::before, .lv-hidden .lv-a::after, .lv-hidden .lv-a *::before, .lv-hidden .lv-a *::after,
.lv-hidden .btn-lime::after, .lv-hidden .leak, .lv-hidden .coach-lime::after, .lv-hidden .tier-feature::after { animation-play-state: paused !important; }
.lv-a.lv-off, .lv-a.lv-off *, .lv-a.lv-off::before, .lv-a.lv-off::after { animation-play-state: paused !important; }
.lv-a { pointer-events: none; }

/* ---------- C. reveal system ---------- */
.lv-on .lv-r { opacity: 0; transform: translate3d(0, 24px, 0); }
.lv-on .lv-r.lv-in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--lv-d, 0ms), transform 1.05s var(--ease) var(--lv-d, 0ms); }
.lv-w { display: inline-block; clip-path: inset(-.2em -.12em -.28em -.12em); }
.lv-wi { display: inline-block; transform: translate3d(0, 125%, 0); }
.lv-h.lv-in .lv-wi { transform: none; transition: transform 1.1s var(--ease) var(--d, 0ms); }
.lv-on .label.lv-r::after { content: ""; }
.lv-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left center; transition: transform 1.5s var(--ease); pointer-events: none; }
.lv-line.lv-in { transform: scaleX(1); }
.lv-line i { position: absolute; left: 0; top: -1px; width: 110px; height: 3px; background: linear-gradient(90deg, transparent, var(--lime), transparent); animation: lv-run 8s linear infinite; will-change: transform; }
@keyframes lv-run { from { transform: translate3d(-120px, 0, 0); } to { transform: translate3d(100vw, 0, 0); } }
.lv-sec { position: relative; }

/* ---------- A. hero HUD ---------- */
.lv-hud { position: absolute; inset: 0; z-index: 1; overflow: hidden; will-change: opacity; }
.lv-plus { position: absolute; width: 11px; height: 11px; margin: -5px 0 0 -5px; opacity: 0; animation: lv-twk 5.5s ease-in-out infinite; }
.lv-plus::before, .lv-plus::after { content: ""; position: absolute; background: rgba(239,239,233,.7); }
.lv-plus::before { left: 5px; top: 0; width: 1px; height: 11px; }
.lv-plus::after { left: 0; top: 5px; width: 11px; height: 1px; }
.lv-plus.lime::before, .lv-plus.lime::after { background: var(--lime); }
@keyframes lv-twk { 0%, 100% { opacity: .12; transform: rotate(0deg); } 45% { opacity: .75; } 60% { opacity: .75; transform: rotate(90deg); } }
.lv-spot { position: absolute; left: -260px; top: -260px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200,255,60,.13), rgba(200,255,60,0) 70%); will-change: transform; }
.lv-plate { position: absolute; right: -6vh; top: 50%; width: 62vh; height: 62vh; margin-top: -26vh; opacity: .9; }
.lv-plate svg { width: 100%; height: 100%; overflow: visible; }
.lv-plate .p1 { transform-origin: 50% 50%; animation: lv-rot 70s linear infinite; }
.lv-plate .p2 { transform-origin: 50% 50%; animation: lv-rot 38s linear infinite reverse; }
.lv-plate .p3 { transform-origin: 50% 50%; animation: lv-rot 22s linear infinite; }
@keyframes lv-rot { to { transform: rotate(360deg); } }
.lv-panel { position: absolute; right: var(--gutter); top: clamp(104px, 15vh, 150px); width: 232px; border-top: 1px solid rgba(239,239,233,.3); padding-top: 12px; opacity: 0; animation: lv-in 1s 1.1s forwards; }
@keyframes lv-in { to { opacity: 1; } }
.lv-panel .row { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 11px; }
.lv-panel .row + .row { margin-top: 6px; }
.lv-panel .row b { font-weight: 500; color: var(--lime); font-variant-numeric: tabular-nums; }
.lv-panel .big { margin: 6px 0 4px; font-family: var(--mono); font-size: 44px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.lv-panel .rec { margin-right: 8px; animation: lv-blink 1.1s steps(2, jump-none) infinite; }
@keyframes lv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.lv-bars { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin-top: 12px; }
.lv-bars i { flex: 1; height: 100%; background: rgba(239,239,233,.5); transform-origin: 50% 100%; transform: scaleY(.2); animation: lv-bar 1.9s ease-in-out infinite; }
.lv-bars i:nth-child(3n) { background: var(--lime); }
@keyframes lv-bar { 0%, 100% { transform: scaleY(.18); } 30% { transform: scaleY(1); } 55% { transform: scaleY(.42); } 78% { transform: scaleY(.74); } }
.lv-dust { position: absolute; left: 0; top: 0; }
.btn-lime { position: relative; overflow: hidden; }
.btn-lime::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 44%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: translate3d(-130%, 0, 0) skewX(-18deg); animation: lv-sheen 5.4s ease-in-out 1.4s infinite; pointer-events: none; }
@keyframes lv-sheen { 0% { transform: translate3d(-130%, 0, 0) skewX(-18deg); } 36%, 100% { transform: translate3d(340%, 0, 0) skewX(-18deg); } }
.kicker span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 10px; animation: lv-blink 1.6s ease-in-out infinite; }
.chip { position: relative; }
@media (max-width: 1100px) { .lv-panel { display: none; } .lv-plate { right: -26vh; opacity: .5; } }
@media (max-width: 720px) { .lv-plate { width: 52vh; height: 52vh; right: -22vh; top: 66%; opacity: .45; } }

/* ---------- bands / tickers ---------- */
.lv-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); height: clamp(72px, 9vw, 128px); background: var(--bg); }
.lv-band__t { position: absolute; left: 0; top: 0; display: flex; white-space: nowrap; align-items: center; height: 100%; will-change: transform; animation: lv-mq 52s linear infinite; }
.lv-band__t span { font-size: clamp(48px, 6.4vw, 100px); font-weight: 800; letter-spacing: -.055em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(239,239,233,.42); padding-right: .6em; }
.lv-band__t span.on { color: var(--lime); -webkit-text-stroke: 0; }
.lv-band--rev .lv-band__t { animation-direction: reverse; animation-duration: 64s; }
@keyframes lv-mq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.lv-tick { position: relative; overflow: hidden; height: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lv-tick__t { position: absolute; left: 0; top: 0; display: flex; white-space: nowrap; line-height: 37px; font-size: 11px; will-change: transform; animation: lv-mq 48s linear infinite; }
.lv-tick__t span { padding-right: 34px; }
.lv-tick__t b { color: var(--lime); font-weight: 400; margin-right: 34px; }

/* ---------- 02 stats ---------- */
.stats .wrap { position: relative; }
.stat { position: relative; }
.stat::after { content: ""; position: absolute; left: 0; right: 24px; bottom: -22px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left center; animation: lv-sweep 6s ease-in-out infinite; }
.stat:nth-child(2)::after { animation-delay: 1.2s; } .stat:nth-child(3)::after { animation-delay: 2.4s; } .stat:nth-child(4)::after { animation-delay: 3.6s; }
@keyframes lv-sweep { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); opacity: 1; } 60%, 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- 03 club ---------- */
.lv-dots { position: absolute; right: 0; top: 0; width: 46%; height: 100%; overflow: hidden; opacity: .8; }
.lv-dots i { position: absolute; left: -40px; top: -40px; right: 0; bottom: 0; background-image: radial-gradient(circle, rgba(239,239,233,.28) 1px, transparent 1.4px); background-size: 40px 40px; animation: lv-dots 16s linear infinite; will-change: transform; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
@keyframes lv-dots { to { transform: translate3d(40px, 40px, 0); } }
.club .wrap { position: relative; z-index: 1; }
.lv-br { position: absolute; inset: 12px; z-index: 2; }
.lv-br b { position: absolute; width: 18px; height: 18px; border: 0 solid var(--lime); animation: lv-breathe 4.2s ease-in-out infinite; }
.lv-br b:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; } .lv-br b:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.lv-br b:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; } .lv-br b:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
@keyframes lv-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.7); } }
.lv-br .tag { position: absolute; right: 26px; top: 2px; font-size: 10px; color: var(--ink); background: rgba(11,11,10,.6); padding: 3px 8px; }
.lv-br .tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff4b3e; margin-right: 7px; animation: lv-blink 1.1s steps(2, jump-none) infinite; }

/* ---------- 04 session ---------- */
.session-media { overflow: visible; }
.lv-ring { position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; }
.lv-ring svg { width: 100%; height: 100%; overflow: visible; }
.lv-ring .r1 { transform-origin: 50% 50%; animation: lv-rot 60s linear infinite; }
.lv-ring .r2 { transform-origin: 50% 50%; animation: lv-rot 32s linear infinite reverse; }
.session-media figure { z-index: 1; }
.lv-timer { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 10px; align-items: center; background: rgba(11,11,10,.72); padding: 8px 12px; font-size: 12px; color: var(--ink); }
.lv-timer b { font-weight: 500; color: var(--lime); font-variant-numeric: tabular-nums; min-width: 4.4ch; display: inline-block; }
.lv-timer::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: lv-blink 1s steps(2, jump-none) infinite; }
.step.is-on .step-n::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 8px; animation: lv-blink 1.4s ease-in-out infinite; }
.progress span { position: relative; }
.progress span::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; left: 0; background: linear-gradient(90deg, transparent, #fff, transparent); animation: lv-run 3s linear infinite; }

/* ---------- 05 programs ---------- */
.panel-img img { animation: lv-kb 22s ease-in-out infinite alternate; will-change: transform; }
.panel:nth-child(2n) .panel-img img { animation-delay: -8s; animation-duration: 26s; }
.panel:hover .panel-img img { transform: none; }
@keyframes lv-kb { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.5%, 1%, 0); } }
.drag-hint { animation: lv-nudge 2.2s var(--ease) infinite; will-change: transform; }
@keyframes lv-nudge { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(10px, 0, 0); } }
.panel-n::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 10px; animation: lv-blink 2s ease-in-out infinite; }
.panel-img::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lime); opacity: .7; transform: translate3d(0, 0, 0); animation: lv-scanv 6s ease-in-out infinite; }
@keyframes lv-scanv { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .8; } 55% { opacity: .8; } 70%, 100% { transform: translate3d(0, 300px, 0); opacity: 0; } }

/* ---------- 06 coaches ---------- */
.coach-img img { animation: lv-kb 24s ease-in-out infinite alternate; will-change: transform; }
.coach-top .mono:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 10px; animation: lv-blink 1.5s ease-in-out infinite; }
.coach { overflow: hidden; }
.coach-lime::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(100deg, transparent, rgba(200,255,60,.08), transparent); transform: translate3d(-130%, 0, 0) skewX(-14deg); animation: lv-sheen 8s ease-in-out infinite; pointer-events: none; }
.coach-stats dd { font-variant-numeric: tabular-nums; }

/* ---------- 07 quote ---------- */
.quote .lv-dust { z-index: 1; }
.lv-tc { position: absolute; right: var(--gutter); bottom: 5vh; z-index: 3; font-size: 11px; color: var(--ink); display: flex; gap: 12px; align-items: center; }
.lv-tc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4b3e; animation: lv-blink 1.1s steps(2, jump-none) infinite; }
.lv-tc b { font-weight: 500; font-variant-numeric: tabular-nums; }
.lv-hbeam { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,255,60,.8), transparent); z-index: 1; animation: lv-hb 11s ease-in-out infinite alternate; will-change: transform; }
@keyframes lv-hb { from { transform: translate3d(0, 12vh, 0); } to { transform: translate3d(0, 104vh, 0); } }

/* ---------- 08 timetable ---------- */
@media (min-width: 901px) { .tt-row .is-today-col::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--lime); opacity: .9; animation: lv-blink 2.4s ease-in-out infinite; } }
.tt-row .is-today-col { box-shadow: inset 2px 0 0 rgba(200,255,60,.55); }
.tt-days span.is-today::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 8px; animation: lv-blink 1.4s ease-in-out infinite; }
.lv-clock { display: block; margin-top: 10px; color: var(--ink); }
.lv-clock b { font-weight: 500; color: var(--lime); font-variant-numeric: tabular-nums; }
.cell:not(.is-empty) { cursor: default; }

/* ---------- 09 membership ---------- */
.tier { position: relative; overflow: hidden; }
.tier-feature::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: translate3d(-130%, 0, 0) skewX(-16deg); animation: lv-sheen 7s ease-in-out 1s infinite; pointer-events: none; }
.tier-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 8px; animation: lv-blink 1.5s ease-in-out infinite; }
.amt { display: inline-block; }
.amt.lv-pop { animation: lv-popin .55s var(--ease); }
@keyframes lv-popin { 0% { transform: translate3d(0, 40%, 0); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- 10 faq ---------- */
.lv-band--rev { border-top: 1px solid var(--line); }
.faq-list details { position: relative; }
.faq-list details::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left center; transition: transform .8s var(--ease); }
.faq-list details:hover::before, .faq-list details[open]::before { transform: scaleX(1); }
.faq-list summary { transition: transform .5s var(--ease), color .3s; }
.faq-list details:hover summary { transform: translate3d(8px, 0, 0); }

/* ---------- 11 CTA + footer ---------- */
.cta .lv-dust { z-index: 1; }
.lv-left { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px; border: 1px solid rgba(239,239,233,.28); border-radius: 999px; font-size: 11px; color: var(--ink); background: rgba(11,11,10,.5); }
.lv-left::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: lv-blink 1.4s ease-in-out infinite; }
.lv-left b { color: var(--lime); font-weight: 500; }
.field { position: relative; }
.foot { position: relative; overflow: hidden; }
.lv-foot-mark { position: relative; height: clamp(90px, 17vw, 270px); overflow: hidden; margin-top: 6vh; }
.lv-foot-mark span { position: absolute; left: -1vw; top: 0; font-size: clamp(120px, 24vw, 420px); font-weight: 800; letter-spacing: -.07em; line-height: .86; color: transparent; -webkit-text-stroke: 1px rgba(239,239,233,.2); white-space: nowrap; animation: lv-drift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes lv-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6vw, 0, 0); } }
.foot > .lv-tick { margin-bottom: 7vh; }

@media (prefers-reduced-motion: reduce) {
  .lv-a, .lv-hud { display: none !important; }
  .lv-on .lv-r, .lv-wi { opacity: 1 !important; transform: none !important; }
  .lv-w { clip-path: none; }
}
/* pre-existing: video box did not cover the right edge (left -2% with 100% width); fixed so the footage fills the frame */
.hero-video { inset: auto; left: -2%; top: -2%; width: 104%; height: 104%; max-width: none; }

/* ---------- perf (LIVING_PERF): ambient loops pause while the page scrolls (html.lv-scrolling, set by living.js, cleared 200 ms after the last scroll event) ---------- */
html.lv-scrolling .lv-a, html.lv-scrolling .lv-a *, html.lv-scrolling .lv-a::before, html.lv-scrolling .lv-a::after,
html.lv-scrolling .lv-a *::before, html.lv-scrolling .lv-a *::after,
html.lv-scrolling .btn-lime::after, html.lv-scrolling .leak, html.lv-scrolling .coach-lime::after, html.lv-scrolling .tier-feature::after,
html.lv-scrolling .kicker span:first-child::before, html.lv-scrolling .stat::after, html.lv-scrolling .progress span::after,
html.lv-scrolling .step.is-on .step-n::before, html.lv-scrolling .panel-img img, html.lv-scrolling .panel-img::after, html.lv-scrolling .drag-hint,
html.lv-scrolling .panel-n::before, html.lv-scrolling .coach-img img, html.lv-scrolling .coach-top .mono:first-child::before,
html.lv-scrolling .tt-row .is-today-col::before, html.lv-scrolling .tt-days span.is-today::before, html.lv-scrolling .tier-tag::before,
html.lv-scrolling .lv-left::before, html.lv-scrolling .lv-timer::before, html.lv-scrolling .lv-tc::before { animation-play-state: paused !important; }
/* off-screen sections: the same ambient elements that live outside .lv-a */
.lv-off .kicker span:first-child::before, .lv-off .stat::after, .lv-off .progress span::after, .lv-off .step.is-on .step-n::before, .lv-off .panel-img img,
.lv-off .panel-img::after, .lv-off .drag-hint, .lv-off .panel-n::before, .lv-off .coach-img img, .lv-off .coach-top .mono:first-child::before,
.lv-off .tt-row .is-today-col::before, .lv-off .tt-days span.is-today::before, .lv-off .tier-tag::before, .lv-off .lv-left::before, .lv-off .lv-timer::before,
.lv-off .lv-tc::before { animation-play-state: paused !important; }
/* no permanent will-change on ambient loops */
.lv-line i, .lv-band__t, .lv-tick__t, .panel-img img, .coach-img img, .drag-hint { will-change: auto !important; }
