/* ============================================================
   SOFTBITRIX — Premium Website Styles
   Custom CSS layered on top of Tailwind (Play CDN)
   ============================================================ */

:root {
  --brand-50: #eef5ff;
  --brand-100: #d9e8ff;
  --brand-200: #bcd6ff;
  --brand-300: #8eb9ff;
  --brand-400: #5a92ff;
  --brand-500: #2f6bff;
  --brand-600: #1a4ff0;
  --brand-700: #143ccc;
  --brand-800: #1633a3;
  --brand-900: #172f80;
  --ink: #070b16;
  --ink-2: #0c1326;
  --ink-3: #131c33;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}
.portfolio-card img{
object-position:top!important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--ink);
  color: #cdd6ee;
  overflow-x: hidden;
}

/* Tailwind CDN custom-color fallbacks.
   These keep Lucide SVG icons blue even if the CDN config is cached late. */
.text-brand-300 { color: var(--brand-300) !important; }
.text-brand-400 { color: var(--brand-400) !important; }
.text-brand-500 { color: var(--brand-500) !important; }
.hover\:text-brand-300:hover { color: var(--brand-300) !important; }
.bg-brand-500\/10 { background-color: rgba(47,107,255,.10) !important; }
.bg-brand-500\/15 { background-color: rgba(47,107,255,.15) !important; }
.border-brand-400\/30 { border-color: rgba(90,146,255,.30) !important; }
.border-brand-400\/40 { border-color: rgba(90,146,255,.40) !important; }

svg.text-brand-300,
svg.text-brand-400,
svg.text-brand-500,
[data-lucide].text-brand-300,
[data-lucide].text-brand-400,
[data-lucide].text-brand-500 {
  color: currentColor;
  stroke: currentColor;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--brand-500);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-500), var(--brand-700));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-400); }

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 90;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500), var(--brand-700));
  box-shadow: 0 0 12px rgba(47,107,255,0.7);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--ink);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 78px;
  height: 78px;
  animation: loaderFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 30px rgba(47,107,255,0.55));
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.04); }
}
.loader-bar {
  margin-top: 26px;
  width: 200px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-600));
}
.loader-text {
  margin-top: 18px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  color: var(--brand-300);
  text-indent: 0.5em;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 150;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--brand-400);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(90,146,255,0.6);
  transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease;
}
.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(47,107,255,0.12);
  border-color: rgba(90,146,255,0.9);
}
@media (max-width: 1024px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============================================================
   BACKGROUND DECOR
   ============================================================ */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.aurora-1 { background: radial-gradient(circle, #2f6bff 0%, transparent 70%); }
.aurora-2 { background: radial-gradient(circle, #1633a3 0%, transparent 70%); }
.aurora-3 { background: radial-gradient(circle, #5a92ff 0%, transparent 70%); }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   GLASS / GRADIENT UTILITIES
   ============================================================ */
.glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-strong {
  background: rgba(12,19,38,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.text-gradient {
  background: linear-gradient(110deg, #dbe8ff 0%, #8eb9ff 45%, #5a92ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* keep gradient text legible when highlighted/selected */
.text-gradient::selection { background: var(--brand-600); -webkit-text-fill-color: #fff; color: #fff; }
.text-gradient ::selection { background: var(--brand-600); -webkit-text-fill-color: #fff; color: #fff; }
.bg-grad-brand {
  background: linear-gradient(135deg, #2f6bff 0%, #143ccc 100%);
}
.ring-grad {
  position: relative;
}
.ring-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(90,146,255,0.7), rgba(20,60,204,0.1) 60%, rgba(90,146,255,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, #2f6bff, #143ccc);
  color: #fff;
  padding: 0.85rem 1.7rem;
  box-shadow: 0 10px 30px -8px rgba(47,107,255,0.6);
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(47,107,255,0.75); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.18);
  color: #e7eeff;
  padding: 0.85rem 1.7rem;
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
  border-color: var(--brand-400);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -12px rgba(47,107,255,0.5);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease, padding .35s ease;
}
#navbar.scrolled {
  background: rgba(7,11,22,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-link {
  position: relative;
  color: #b9c4e0;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-600));
  transition: width .3s ease;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile menu */
#mobile-menu {
  transition: transform .45s cubic-bezier(.7,0,.2,1), opacity .35s ease;
}
#mobile-menu.hidden-menu {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   REVEAL ANIMATIONS (IntersectionObserver)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(.9); }
[data-reveal].in-view {
  opacity: 1;
  transform: translate(0,0) scale(1);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }
[data-reveal-delay="6"] { transition-delay: .6s; }

/* ============================================================
   CARDS
   ============================================================ */
.tilt-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease, background .4s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,0.35), transparent 70%);
  top: var(--my, 50%); left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(90,146,255,0.45);
}
.service-icon {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.service-card:hover .service-icon {
  transform: translateY(-4px) rotate(-6deg) scale(1.08);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   COUNTERS / STATS
   ============================================================ */
.stat-card {
  transition: transform .35s ease, border-color .35s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(90,146,255,0.4); }

/* ============================================================
   TESTIMONIAL SLIDER
   ============================================================ */
.testi-track {
  display: flex;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.testi-slide { flex: 0 0 100%; }
.testi-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  transition: all .3s ease;
  cursor: pointer;
}
.testi-dot.active { width: 30px; background: var(--brand-500); }

/* ============================================================
   PORTFOLIO FILTER
   ============================================================ */
.filter-btn {
  transition: all .3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.filter-btn.active {
  background: linear-gradient(135deg, #2f6bff, #143ccc);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(47,107,255,0.7);
}
.portfolio-item {
  transition: opacity .5s ease, transform .5s ease;
}
.portfolio-item.hide {
  opacity: 0;
  transform: scale(.85);
  position: absolute;
  pointer-events: none;
  visibility: hidden;
}
.portfolio-card .pc-overlay {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}
.portfolio-card:hover .pc-overlay {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-card img,
.portfolio-card .pc-img {
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.portfolio-card:hover img,
.portfolio-card:hover .pc-img {
  transform: scale(1.08);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-line {
  background: linear-gradient(180deg, transparent, var(--brand-500) 12%, var(--brand-700) 88%, transparent);
}
.timeline-year {
  color: var(--brand-400);
}
.timeline-dot {
  background: var(--brand-400);
  box-shadow: 0 0 0 6px rgba(47,107,255,0.15), 0 0 18px rgba(47,107,255,0.7);
}

/* ============================================================
   FORM
   ============================================================ */
.field {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.field:focus {
  outline: none;
  border-color: var(--brand-500);
  background: rgba(47,107,255,0.06);
  box-shadow: 0 0 0 4px rgba(47,107,255,0.14);
}
.softbitrix-cf7-form .wpcf7-form-control-wrap {
  display: block;
}
.softbitrix-cf7-form .wpcf7-not-valid-tip {
  margin-top: .35rem;
  font-size: .8rem;
  color: #f87171;
}
.softbitrix-cf7-form .wpcf7-response-output {
  margin: 1rem 0 0 !important;
  border-radius: .75rem;
  border-color: rgba(90,146,255,.35) !important;
  color: #cdd6ee;
}
.softbitrix-cf7-form input[type="submit"] {
  cursor: pointer;
}

/* ============================================================
   FLOATING / MISC ANIMATIONS
   ============================================================ */
.float-slow { animation: floatY 7s ease-in-out infinite; }
.float-med { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.spin-slow { animation: spin 26s linear infinite; }
.spin-rev { animation: spin 26s linear infinite reverse; }
.spin-conic { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero area-chart line draw */
.spark-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.6s cubic-bezier(.16,1,.3,1) forwards .5s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Hero satellite chip */
.sat {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.9rem;
}
.pulse-ring { animation: pulseRing 3s ease-out infinite; }
@keyframes pulseRing {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.gradient-shift {
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero title word reveal */
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) rotate(4deg);
  animation: wordUp .9s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes wordUp {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* Hero fade-in elements (triggered after preloader) */
.hero-fade {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.hero-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion open trigger icon rotation */
[data-acc-trigger].open .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform .35s ease; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(47,107,255,0.1);
  border: 1px solid rgba(90,146,255,0.3);
  color: #9bbcff;
}

/* Section heading underline accent */
.heading-accent {
  position: relative;
  display: inline-block;
}

/* Magnetic wrap helper */
.magnetic { will-change: transform; transition: transform .2s ease; }

/* Image fallback gradient blocks for portfolio (no external imgs needed) */
.pc-img {
  background-size: cover;
  background-position: center;
}
.grad-a { background: linear-gradient(135deg,#1a4ff0,#0a1a4d); }
.grad-b { background: linear-gradient(135deg,#5a92ff,#143ccc); }
.grad-c { background: linear-gradient(135deg,#2f6bff,#172f80); }
.grad-d { background: linear-gradient(135deg,#8eb9ff,#1a4ff0); }
.grad-e { background: linear-gradient(135deg,#143ccc,#070b16); }
.grad-f { background: linear-gradient(135deg,#4f8bff,#0c1326); }

/* Accordion (case study) */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}

/* ============================================================
   WORD ROTATOR (hero)
   ============================================================ */
.rotator {
  display: inline-block;
  height: 1.3em;
  line-height: 1.3em;
  overflow: hidden;
  vertical-align: bottom;
  padding-right: 0.06em;
}
.rotator-list {
  display: flex;
  flex-direction: column;
  animation: rotateWords 10s cubic-bezier(.86,0,.07,1) infinite;
}
.rotator-list > span {
  display: block;
  height: 1.3em;
  line-height: 1.3em;
}
@keyframes rotateWords {
  0%, 16%   { transform: translateY(0); }
  20%, 36%  { transform: translateY(-1.3em); }
  40%, 56%  { transform: translateY(-2.6em); }
  60%, 76%  { transform: translateY(-3.9em); }
  80%, 96%  { transform: translateY(-5.2em); }
  100%      { transform: translateY(-5.2em); }
}

/* ============================================================
   HERO MOUSE SPOTLIGHT
   ============================================================ */
.spotlight-host { position: relative; }
.spotlight-host .spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 30%), rgba(47,107,255,0.16), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
}
.spotlight-host:hover .spotlight { opacity: 1; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-line {
  background: linear-gradient(90deg, transparent, var(--brand-600) 12%, var(--brand-400) 50%, var(--brand-600) 88%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(.16,1,.3,1);
}
.process-line.in-view { transform: scaleX(1); }
.process-step .step-num {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.process-step:hover .step-num {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 0 0 6px rgba(47,107,255,0.14), 0 14px 30px -10px rgba(47,107,255,0.7);
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento-tile {
  position: relative;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .45s ease;
}
.bento-tile:hover { transform: translateY(-6px); border-color: rgba(90,146,255,0.45); }
.bento-tile .tile-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,0.30), transparent 70%);
  top: var(--my, 50%); left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.bento-tile:hover .tile-glow { opacity: 1; }

/* mini animated bars */
.eq-bar { animation: eq 1.4s ease-in-out infinite; transform-origin: bottom; }
.eq-bar:nth-child(1){ background: rgba(20,60,204,.7); }
.eq-bar:nth-child(2){ background: rgba(26,79,240,.7); }
.eq-bar:nth-child(3){ background: rgba(47,107,255,.8); }
.eq-bar:nth-child(4){ background: #5a92ff; }
.eq-bar:nth-child(5){ background: #8eb9ff; }
.eq-bar:nth-child(2){ animation-delay:.2s } .eq-bar:nth-child(3){ animation-delay:.4s }
.eq-bar:nth-child(4){ animation-delay:.6s } .eq-bar:nth-child(5){ animation-delay:.8s }
@keyframes eq { 0%,100%{ transform: scaleY(.4) } 50%{ transform: scaleY(1) } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  z-index: 70;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
#to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#to-top svg { position: absolute;  }
#to-top .tt-track { stroke: rgba(255,255,255,0.12); }
#to-top .tt-prog { stroke: url(#ttGrad); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
#to-top i { position: relative; z-index: 1; }
@media (max-width: 1024px), (pointer: coarse) {
  #to-top { right: 16px; bottom: 16px; }
}
