/* Apex Home Enhancements — motion & effects (loaded after styles.css) */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }
html, body { overflow-x: clip; }

/* Scroll progress + shrinking header */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), #6aa8ff, var(--accent)); }
.site-header { transition: box-shadow .3s, background .3s; }
.site-header .container { transition: height .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(10,27,51,.12); }
.site-header.scrolled .container { height: 64px; }
.logo img { transition: height .3s var(--ease); }
.site-header.scrolled .logo img { height: 46px; }

/* Scroll reveal (content only hidden while JS is running) */
html.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.from-left { transform: translateX(-50px); }
html.js .reveal.from-right { transform: translateX(50px); }
html.js .reveal.zoom { transform: scale(.92); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Hero entrance */
html.js .hero .container > div:first-child > * { opacity: 0; animation: rise 1s var(--ease) forwards; }
html.js .hero .container > div:first-child > *:nth-child(1) { animation-delay: .1s; }
html.js .hero .container > div:first-child > *:nth-child(2) { animation-delay: .25s; }
html.js .hero .container > div:first-child > *:nth-child(3) { animation-delay: .45s; }
html.js .hero .container > div:first-child > *:nth-child(4) { animation-delay: .6s; }
html.js .hero .container > div:first-child > *:nth-child(5) { animation-delay: .75s; }
html.js .hero .quote-card { opacity: 0; animation: card-in 1.1s .5s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes card-in { from { opacity: 0; transform: translateX(60px) rotate(2deg) scale(.96); } to { opacity: 1; transform: none; } }

/* Hero backgrounds: crossfade slideshow + slow zoom */
.hero-bg { animation: kenburns-loop 18s ease-in-out infinite alternate; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; }
.hero-slides img.on { opacity: .72; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1.5%); } }
@keyframes kenburns-loop { from { transform: scale(1.03); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-video { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-video.playing { opacity: .7; }
.hero-home { min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-home .container { width: 100%; }

/* Glowing blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 1; pointer-events: none; }
.blob-a { width: 520px; height: 520px; background: radial-gradient(circle, #1f6fe0, transparent 65%); top: -160px; left: -120px; animation: drift 16s ease-in-out infinite alternate; }
.blob-b { width: 440px; height: 440px; background: radial-gradient(circle, #f5a524, transparent 65%); bottom: -200px; right: 25%; opacity: .32; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 60px) scale(1.2); } }

/* Headline highlight */
.hl { position: relative; display: inline-block; background: linear-gradient(90deg, #ffd27a, #f5a524, #ff7a2f, #f5a524, #ffd27a); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
.swoosh { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .3em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.2s 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 10px; vertical-align: middle; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } }

/* Spinning gradient border on the hero quote card */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hero .quote-card { position: relative; z-index: 2; background: transparent; box-shadow: 0 30px 80px rgba(31,111,224,.35), 0 0 60px rgba(245,165,36,.18); }
.hero .quote-card::before { content: ""; position: absolute; inset: -3px; border-radius: 21px; z-index: -2; background: conic-gradient(from var(--angle), var(--blue), #6aa8ff, var(--accent), #ff7a2f, var(--blue)); animation: spin 5s linear infinite; }
.hero .quote-card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; background: #fff; z-index: -1; }
@keyframes spin { to { --angle: 360deg; } }

/* Buttons: shine sweep + lift */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-accent { background: linear-gradient(135deg, #ffc24d, var(--accent) 50%, #ff8a2a) border-box; border-color: transparent; }
.btn-accent::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: shine 4s 2s ease-in-out infinite; z-index: -1; }
.btn-accent:hover { background: linear-gradient(135deg, #ffb52e, #f09a10 50%, #f07a18) border-box; transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 30px rgba(245,165,36,.5); }
@keyframes shine { 0%, 70% { left: -75%; } 100% { left: 130%; } }
.header-cta .btn-accent { animation: pulse-ring 2.6s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(245,165,36,0); } }

/* Town ticker */
.marquee { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); color: #fff; overflow: hidden; padding: 16px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: scroll-x 40s linear infinite; }
.marquee-track span { font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; padding-left: 28px; display: inline-flex; align-items: center; gap: 28px; }
.marquee-track span::after { content: "✦"; color: var(--accent); }
@keyframes scroll-x { to { transform: translateX(var(--marquee-shift, -50%)); } }

/* Stats band */
.stats-band { background: var(--navy); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 20% 0%, rgba(31,111,224,.35), transparent), radial-gradient(500px 200px at 85% 100%, rgba(245,165,36,.2), transparent); }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1; background: linear-gradient(180deg, #fff, #9cc3ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat .unit { color: var(--accent); -webkit-text-fill-color: var(--accent); margin-left: 4px; font-size: .6em; vertical-align: top; }
.stat .label { color: #b7c5d9; font-weight: 600; margin-top: 10px; font-size: .95rem; }

/* Service cards: tilt, zoom, cursor glare */
.service-card { position: relative; transition: transform .25s var(--ease), box-shadow .3s; will-change: transform; }
.service-card .img-wrap { overflow: hidden; }
.service-card img { transition: transform .9s var(--ease); }
.service-card:hover img { transform: scale(1.08); }
.service-card:hover { box-shadow: 0 30px 60px rgba(31,111,224,.25); }
.service-card .link-arrow { display: inline-block; transition: transform .25s var(--ease); }
.service-card:hover .link-arrow { transform: translateX(8px); }
.service-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 40%); opacity: 0; transition: opacity .3s; }
.service-card:hover::after { opacity: 1; }

/* Spotlight on dark feature cards */
.dark { position: relative; overflow: hidden; }
.dark .feature { position: relative; transition: transform .3s var(--ease), border-color .3s; }
.dark .feature::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(106,168,255,.2), transparent 60%); opacity: 0; transition: opacity .3s; }
.dark .feature:hover { transform: translateY(-6px); border-color: rgba(106,168,255,.45); }
.dark .feature:hover::before { opacity: 1; }
.feature .icon { transition: transform .4s var(--ease); }
.feature:hover .icon { transform: rotate(-8deg) scale(1.12); }

/* Steps: numbered badges pop in */
html.js .step.reveal::before { transform: scale(0); transition: transform .6s .2s cubic-bezier(.3, 1.6, .5, 1); }
html.js .step.reveal.in::before { transform: scale(1); }
.step::before { background: linear-gradient(135deg, var(--blue), var(--navy)); }

/* Photos */
.photo img { transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.05); }

/* Shorts: hover lift */
.short { transition: transform .35s var(--ease), box-shadow .35s; }
.short:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 50px rgba(10,27,51,.35); }

/* Reviews marquee (home) */
.review-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.review-track { display: flex; width: max-content; animation: scroll-x 70s linear infinite; padding: 10px 0 24px; }
.review-marquee:hover .review-track { animation-play-state: paused; }
.review-track .review { width: 360px; flex: none; margin-right: 20px; transition: transform .3s var(--ease), box-shadow .3s; }
.review-track .review:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.review .stars { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { filter: drop-shadow(0 0 6px rgba(245,165,36,.8)); } }

/* Offer band: moving gradient + glow */
.offer { background: linear-gradient(120deg, #1557b8, #1f6fe0, #3b82f6, #1557b8); background-size: 300% 300%; animation: gradient-move 10s ease infinite; position: relative; overflow: hidden; }
.offer::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -80px; top: -120px; background: radial-gradient(circle, rgba(245,165,36,.45), transparent 70%); animation: drift 12s ease-in-out infinite alternate; pointer-events: none; }
.offer > * { position: relative; z-index: 1; }
@keyframes gradient-move { 50% { background-position: 100% 50%; } }

/* Form success check */
.check-draw { width: 72px; height: 72px; margin: 0 auto 14px; display: block; }
.check-draw circle { fill: none; stroke: #22c55e; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; }
.check-draw path { fill: none; stroke: #22c55e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.quote-card.sent .check-draw circle { animation: draw .6s var(--ease) forwards; }
.quote-card.sent .check-draw path { animation: draw .4s .5s var(--ease) forwards; }
.quote-card.sent .form-success { animation: rise .6s var(--ease); }

/* Small interactions */
input, select, textarea { transition: border-color .2s, box-shadow .2s; }
.chip span { transition: background .2s, border-color .2s, transform .15s; }
.chip:active span { transform: scale(.94); }
a.city { transition: transform .25s var(--ease), border-color .2s, box-shadow .2s; }
a.city:hover { transform: translateY(-3px); }
.team-card { transition: transform .3s var(--ease), box-shadow .3s; }
.team-card img { transition: transform .8s var(--ease); transform-origin: 50% 100%; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card { overflow: hidden; }
.team-card:hover img { transform: scale(1.05); }

/* Floating calculator tab */
.calc-tab { position: fixed; right: 0; top: 50%; z-index: 55; display: flex; align-items: center; gap: 8px; padding: 14px 12px; background: linear-gradient(160deg, var(--blue), var(--navy)); color: #fff; text-decoration: none; font-weight: 800; font-size: .85rem; border-radius: 14px 0 0 14px; box-shadow: -6px 10px 30px rgba(10,27,51,.3); transform: translate(calc(100% - 46px), -50%); transition: transform .35s var(--ease); }
.calc-tab svg { width: 22px; height: 22px; flex: none; }
/* Label only shows while the tab is slid out, so no letters peek out when it's tucked away */
.calc-tab span { opacity: 0; transition: opacity .25s; }
.calc-tab:hover span, .calc-tab:focus-visible span { opacity: 1; }
html.js .calc-tab span { animation: tab-peek-label 1.2s 3s backwards; }
@keyframes tab-peek-label { 0% { opacity: 0; } 30%, 60% { opacity: 1; } 100% { opacity: 0; } }
.calc-tab:hover, .calc-tab:focus-visible { transform: translate(0, -50%); }
html.js .calc-tab { animation: tab-peek 1.2s 3s var(--ease) backwards; }
@keyframes tab-peek { 0% { transform: translate(100%, -50%); } 60% { transform: translate(0, -50%); } 100% { transform: translate(calc(100% - 46px), -50%); } }
.calc-tab.here { display: none; }

@media (max-width: 760px) {
  .calc-tab { top: auto; bottom: 90px; padding: 12px 10px; }
  .calc-tab:hover { transform: translate(calc(100% - 46px), 0); }
  .calc-tab, html.js .calc-tab { transform: translate(calc(100% - 46px), 0); animation: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .hero-home { min-height: 0; }
  .blob { width: 300px; height: 300px; }
  .review-track .review { width: 290px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .hero-video { display: block; }
}

/* ================= DARK HEADER ================= */
.topbar { background: #050c18; }
.site-header { background: rgba(8, 20, 40, .94); border-bottom: 1px solid rgba(79,176,255,.18); backdrop-filter: blur(10px) saturate(140%); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #4fb0ff 30%, #4fb0ff 70%, transparent); opacity: .55; }
.site-header.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.nav a { color: #d6e2f3; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(79,176,255,.14); }
.header-phone { color: #fff; }
.menu-btn { color: #fff; }
@media (max-width: 1020px) {
  .nav.open { background: #0a1b33; border-bottom-color: rgba(79,176,255,.18); }
  .nav.open a { color: #e6edf7; }
}

/* ================= ANIMATED LOGO ================= */
.logo { display: flex; align-items: center; }
.logo-anim { height: 60px; width: 175px; overflow: visible; transition: height .3s var(--ease), width .3s var(--ease); }
.site-header.scrolled .logo-anim { height: 48px; width: 140px; }
.logo-anim .mk > path { fill: url(#lg-blue); stroke: #4fb0ff; stroke-width: 6; stroke-linejoin: round; }
.logo-anim .mk-win rect { fill: #1a7fe8; }
.logo-anim .wm-l { fill: none; stroke: url(#lg-blue); stroke: #2a8ff0; stroke-width: 24; stroke-linejoin: miter; }
.logo-anim .tag-line { stroke: #2a8ff0; stroke-width: 6; transform-box: fill-box; }
.logo-anim .tag-left { transform-origin: right center; }
.logo-anim .tag-right { transform-origin: left center; }
.logo-anim .tag-text { fill: #6cbcff; font: 700 44px var(--font); }
.logo-anim .sheen { mix-blend-mode: overlay; }
.logo-anim { filter: drop-shadow(0 0 10px rgba(42,143,240,.35)); }
.logo:hover .logo-anim { filter: drop-shadow(0 0 16px rgba(79,176,255,.65)); }
.logo:hover .mk-win rect { fill: #bfe6ff; }

/* Build-in sequence (runs once per page load) */
html.js .logo-anim .mk > path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: lg-draw .9s var(--ease) forwards, lg-fill .5s forwards; }
html.js .logo-anim .mk-leg { animation-delay: .1s, .8s; }
html.js .logo-anim .mk-roof { transform-box: fill-box; animation: lg-drop .7s .55s cubic-bezier(.3, 1.4, .5, 1) both, lg-draw .1s .55s forwards, lg-fill .3s .7s forwards; }
html.js .logo-anim .mk-rleg { transform-box: fill-box; animation: lg-slide .6s .75s var(--ease) both, lg-draw .1s .75s forwards, lg-fill .3s .85s forwards; }
html.js .logo-anim .mk-win rect { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: lg-pop .35s cubic-bezier(.3, 1.8, .5, 1) forwards, lg-light 1.6s 2.2s forwards; }
html.js .logo-anim .mk-win rect:nth-child(1) { animation-delay: 1.1s, 2.2s; }
html.js .logo-anim .mk-win rect:nth-child(2) { animation-delay: 1.2s, 2.3s; }
html.js .logo-anim .mk-win rect:nth-child(3) { animation-delay: 1.3s, 2.4s; }
html.js .logo-anim .mk-win rect:nth-child(4) { animation-delay: 1.4s, 2.5s; }
html.js .logo-anim .wm-l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lg-draw .55s var(--ease) forwards; }
html.js .logo-anim .wm-l:nth-child(1) { animation-delay: .9s; }
html.js .logo-anim .wm-l:nth-child(2) { animation-delay: 1.05s; }
html.js .logo-anim .wm-l:nth-child(3) { animation-delay: 1.2s; }
html.js .logo-anim .wm-l:nth-child(4) { animation-delay: 1.35s; }
html.js .logo-anim .tag-line { transform: scaleX(0); animation: lg-line .6s 1.6s var(--ease) forwards; }
html.js .logo-anim .tag-text { opacity: 0; animation: lg-tag .8s 1.7s var(--ease) forwards; }
.logo-anim .sheen { animation: lg-sheen 7s 3s ease-in-out infinite; }

@keyframes lg-draw { to { stroke-dashoffset: 0; } }
@keyframes lg-fill { to { fill-opacity: 1; } }
@keyframes lg-drop { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-slide { from { transform: translate(30%, 25%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-pop { to { transform: scale(1); } }
@keyframes lg-light {
  0%, 18%, 30% { fill: #1a7fe8; }
  12%, 24% { fill: #9ad8ff; }
  45% { fill: #e6f6ff; filter: drop-shadow(0 0 30px #6cc4ff); }
  100% { fill: #7cc8ff; filter: drop-shadow(0 0 14px #4fb0ff); }
}
@keyframes lg-line { to { transform: scaleX(1); } }
@keyframes lg-tag { from { opacity: 0; letter-spacing: 20px; } to { opacity: 1; } }
@keyframes lg-sheen { 0% { transform: translateX(0); } 22%, 100% { transform: translateX(2400px); } }

@media (max-width: 760px) {
  .logo-anim, .site-header.scrolled .logo-anim { height: 48px; width: 140px; }
}

/* ================= BLACK HERO (no photos, calm) ================= */
.hero { background: #000; }
.hero::after { background:
  radial-gradient(ellipse 55% 60% at 50% -10%, rgba(31,111,224,.30), transparent 70%),
  radial-gradient(ellipse 35% 45% at 100% 100%, rgba(31,111,224,.10), transparent 70%),
  radial-gradient(ellipse 35% 45% at 0% 100%, rgba(31,111,224,.08), transparent 70%); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(79,176,255,.6), transparent); }
.hero-home { min-height: min(78vh, 760px); }
.hl { animation: none; background-position: 0 0; }
.hero .quote-card::before { animation: none; --angle: 200deg; opacity: .9; }

/* ================= VIDEO GALLERY ================= */
.shorts-wrap { position: relative; }
.shorts { grid-auto-columns: 250px; gap: 18px; padding: 8px 4px 20px; scrollbar-width: none; scroll-padding: 4px; }
.shorts::-webkit-scrollbar { display: none; }
.short { cursor: pointer; border-radius: 20px; box-shadow: 0 10px 30px rgba(10,27,51,.18); outline: none; }
.short:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.short video { pointer-events: none; transition: transform .6s var(--ease), filter .4s; filter: saturate(1.05); }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 50%, rgba(0,0,0,.85) 100%); pointer-events: none; transition: opacity .3s; }
.short .tag { z-index: 2; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); }
.short-time { position: absolute; top: 12px; right: 12px; z-index: 2; color: #fff; font-size: .75rem; font-weight: 700; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.short-time:empty { display: none; }
.short-play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1.5px solid rgba(255,255,255,.5); transition: transform .3s var(--ease), background .3s, opacity .3s; }
.short-play svg { width: 26px; height: 26px; margin-left: 3px; }
.short-info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff; display: grid; gap: 2px; }
.short-info strong { font-size: 1.02rem; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.short-info small { font-size: .78rem; color: rgba(255,255,255,.75); text-transform: capitalize; }
.short:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(10,27,51,.35); }
.short:hover video { transform: scale(1.04); }
.short:hover .short-play { transform: scale(1.12); background: var(--accent); border-color: var(--accent); color: var(--navy); }
.dark .short { box-shadow: 0 10px 30px rgba(0,0,0,.4); }

.shorts-nav { position: absolute; top: calc(50% - 10px); z-index: 3; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--navy); background: #fff; box-shadow: 0 8px 24px rgba(10,27,51,.25); display: grid; place-items: center; padding-bottom: 4px; transition: opacity .25s, transform .2s; }
.shorts-nav:hover { transform: scale(1.08); }
.shorts-nav.prev { left: -18px; }
.shorts-nav.next { right: -18px; }
.shorts-nav:disabled { opacity: 0; pointer-events: none; }
.shorts-wrap.no-scroll .shorts-nav { display: none; }

/* Full-screen player */
html.vp-lock { overflow: hidden; }
.vplayer { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px; background: rgba(2,6,14,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .25s ease; }
.vplayer.open { opacity: 1; }
.vplayer[hidden] { display: none; }
.vp-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.94); transition: transform .3s var(--ease); }
.vplayer.open .vp-stage { transform: none; }
.vp-stage.swap .vp-video { animation: vp-swap .35s var(--ease); }
@keyframes vp-swap { from { opacity: .2; transform: scale(.97); } }
.vp-video { height: min(80vh, 820px); max-width: calc(100vw - 48px); aspect-ratio: 9 / 16; background: #000; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(79,176,255,.25); object-fit: contain; }
.vp-cap { display: flex; align-items: center; gap: 12px; color: #fff; flex-wrap: wrap; justify-content: center; }
.vp-tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: rgba(79,176,255,.18); color: #8fc8ff; }
.vp-count { color: #8a9bb3; font-size: .85rem; font-variant-numeric: tabular-nums; }
.vp-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.vp-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
.vp-nav { flex: none; width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 2.2rem; line-height: 1; padding-bottom: 5px; cursor: pointer; transition: background .2s, transform .2s; }
.vp-nav:hover { background: var(--accent); color: var(--navy); transform: scale(1.08); }
.vplayer.single .vp-nav, .vplayer.single .vp-count { display: none; }

@media (max-width: 760px) {
  .shorts { grid-auto-columns: 62vw; gap: 14px; }
  .shorts-nav { display: none; }
  .vplayer { padding: 12px; gap: 0; }
  .vp-nav { position: absolute; bottom: 22px; width: 50px; height: 50px; }
  .vp-prev { left: 22px; }
  .vp-next { right: 22px; }
  .vp-video { height: min(74vh, 720px); }
  .vp-stage { margin-bottom: 50px; }
}

/* Respect visitors who turn motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal, html.js .hero .container > div:first-child > *, html.js .hero .quote-card { opacity: 1 !important; transform: none !important; filter: none !important; }
  .swoosh path { stroke-dashoffset: 0; }
  html.js .logo-anim .mk > path, html.js .logo-anim .wm-l { stroke-dashoffset: 0 !important; fill-opacity: 1 !important; opacity: 1 !important; transform: none !important; }
  html.js .logo-anim .mk-win rect, html.js .logo-anim .tag-line { transform: none !important; }
  html.js .logo-anim .mk-win rect { fill: #7cc8ff; }
  html.js .logo-anim .tag-text { opacity: 1 !important; }
  .logo-anim .sheen { display: none; }
  .hero-slides img.on { opacity: .72; }
  .hero-video { display: none !important; }
  .review-marquee { overflow-x: auto; }
}
