/* Neon Reel: demo creator portfolio (PortfolioX by Spectrix Creations) */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0a1a;
  --text: #f5f3ff;
  --muted: #a9a3c7;
  --soft: #d6d1ee;
  --mag: #ff3da8;
  --org: #ff8a3d;
  --yel: #ffd23f;
  --cyan: #3df5ff;
  --ink: #160d24; /* dark text on gradients */
  --grad: linear-gradient(120deg, var(--mag), var(--org) 55%, var(--yel));
  --glass: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .1);
  --r: 24px;
  --r-sm: 16px;
  --display: "Syne", "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
[tabindex="-1"]:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--yel); color: var(--ink); font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* Gradient text (static + shimmering) */
.shimmer, .grad-text, .stat__num > [data-count], .service__price strong { color: var(--yel); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .shimmer, .grad-text, .stat__num > [data-count], .service__price strong {
    background: linear-gradient(100deg, var(--mag), var(--org) 25%, var(--yel) 50%, var(--org) 75%, var(--mag));
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
  .stat__num > [data-count], .service__price strong { background-size: 100% 100%; background-image: var(--grad); }
  .shimmer { animation: shimmer 5s linear infinite; padding-bottom: .06em; }
}
@keyframes shimmer { to { background-position: 200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background-color .3s;
}
.btn .i { width: 1.1em; height: 1.1em; }
.btn--grad { background: var(--grad); color: var(--ink); box-shadow: 0 12px 32px -12px rgba(255, 61, 168, .7); }
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 61, 168, .9); }
.btn--ghost {
  background: var(--glass); border-color: rgba(255, 255, 255, .16); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .42); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 0 1.25em; font-size: .95rem; }

/* ---------- Header + nav ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); }
/* Blur lives on a pseudo-element so the mobile menu isn't trapped inside a backdrop root */
.header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(13, 10, 26, .74);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s;
}
.header.scrolled::before, .menu-open .header::before { opacity: 1; }
.header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.logo__ring { width: 38px; height: 38px; padding: 2.5px; border-radius: 50%; background: var(--grad); display: grid; flex: none; }
.logo__ring span { display: grid; place-items: center; border-radius: 50%; background: var(--bg); font: 800 1rem/1 var(--display); }
.logo__text { font: 700 1.3rem/1 var(--display); letter-spacing: -.01em; }
.logo__dot { color: var(--mag); }

.nav {
  position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
  padding: 12px; border-radius: var(--r);
  background: #17112c; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.nav__list { display: grid; gap: 4px; }
.nav__list a:not(.btn) {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px;
  text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: background-color .2s, color .2s;
}
.nav__list a:not(.btn):hover, .nav__list a[aria-current] { background: rgba(255, 255, 255, .07); }
.nav__cta { margin-top: 6px; }
.nav__cta .btn { width: 100%; min-height: 52px; }

.nav-toggle {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(22, 16, 42, .6);
  display: grid; place-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { position: static; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__list a:not(.btn) { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: .98rem; color: var(--soft); }
  .nav__list a:not(.btn):hover, .nav__list a[aria-current] { color: var(--text); }
  .nav__cta { margin: 0 0 0 10px; }
  .nav__cta .btn { width: auto; min-height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(24px, 5vw, 56px)) 0 clamp(48px, 7vw, 88px);
}
@media (min-width: 1024px) {
  /* fill the first screen on desktops, but never cut content: min-height, capped */
  .hero { display: flex; align-items: center; min-height: min(100vh, 960px); min-height: min(100svh, 960px); }
  .hero > .wrap { flex: 1; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 15%, transparent 75%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
/* Soft radial blobs: no filter blur, only transforms animate */
.blob { position: absolute; border-radius: 50%; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.blob--1 { width: 64vmax; height: 64vmax; max-width: 860px; max-height: 860px; left: -24%; top: -30%; background: radial-gradient(circle, rgba(255, 61, 168, .36), rgba(255, 61, 168, 0) 62%); }
.blob--2 { width: 54vmax; height: 54vmax; max-width: 760px; max-height: 760px; right: -18%; top: 0; background: radial-gradient(circle, rgba(255, 138, 61, .3), rgba(255, 138, 61, 0) 62%); animation-duration: 26s; animation-delay: -8s; }
.blob--3 { width: 40vmax; height: 40vmax; max-width: 560px; max-height: 560px; left: 34%; bottom: -26%; background: radial-gradient(circle, rgba(61, 245, 255, .18), rgba(61, 245, 255, 0) 62%); animation-duration: 30s; animation-delay: -14s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 7%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) scale(.95); }
}

.hero__grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }

.live-pill {
  display: inline-flex; align-items: center; gap: .6em; max-width: 100%;
  margin: 0 0 1.4rem; padding: .5em 1em; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--soft);
}
.live-pill em { font-style: normal; color: var(--text); }
.live-pill__dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #ff4d6d; }
.live-pill__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ff4d6d; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.hero__title { font-weight: 800; font-size: clamp(1.9rem, .9rem + 5.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: .45em; }
.hero__lede { max-width: 34em; margin-bottom: 2rem; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); color: #c9c3e3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.75rem; }
@media (max-width: 420px) { .hero__actions .btn { flex: 1 1 auto; } }
/* desktop: scale the headline with its column so "60-second" never hits the phones */
@media (min-width: 1024px) { .hero__title { font-size: clamp(3rem, 6.2vw - 8px, 4.25rem); } }

.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--soft); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.social:hover { color: var(--text); border-color: rgba(255, 255, 255, .38); transform: translateY(-2px); }
.social .i { width: 20px; height: 20px; }
.social--handle { padding: 0 16px 0 13px; }

/* Phones */
.hero__visual {
  --pw: min(56vw, 250px);
  position: relative; width: 100%; max-width: 460px; margin-inline: auto;
  height: calc(var(--pw) * 2.06 + 48px);
}
@media (min-width: 600px) { .hero__visual { --pw: 260px; max-width: 560px; } }
@media (min-width: 1024px) { .hero__visual { --pw: clamp(236px, 19.5vw, 280px); max-width: 520px; margin-right: 0; } }

.phone {
  position: absolute; width: var(--w); aspect-ratio: 9 / 18.5;
  padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .16);
  background: linear-gradient(150deg, #3d3460, #15102a 38%, #0a0815);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 70px -20px rgba(255, 61, 168, .45);
}
.phone--story { --w: var(--pw); right: 0; top: 0; z-index: 2; transform: rotate(3deg); }
.phone--reel { --w: calc(var(--pw) * .8); left: 4%; top: 44px; z-index: 1; transform: rotate(-7deg); }
@media (min-width: 600px) { .phone--story { right: 13%; } .phone--reel { left: 6%; } }
@media (min-width: 1024px) { .phone--story { right: 16%; } .phone--reel { left: 0; } }

.phone__screen {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--w) * .13); background: #000; color: #fff;
  font-size: max(9px, calc(var(--w) * .046)); line-height: 1.25;
}
.phone__island { position: absolute; z-index: 6; top: 2.2%; left: 35%; width: 30%; height: 3.4%; border-radius: 99px; background: #000; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.scene.is-active { opacity: 1; }
.scene__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.is-active .scene__art { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

.story-top { position: absolute; inset: 0 0 auto; z-index: 4; padding: 15% 5% 9%; background: linear-gradient(rgba(0, 0, 0, .5), transparent); }
.bars { display: flex; gap: 3px; }
.bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.bar.is-done i { transform: scaleX(1); }
.bar.is-active i { animation: fill var(--dur, 4.5s) linear forwards; }
.phone--reel .bar { --dur: 5.5s; }
.is-paused .bar i { animation-play-state: paused !important; }
@keyframes fill { to { transform: scaleX(1); } }

.story-head { display: flex; align-items: center; gap: .5em; margin-top: .7em; }
.story-head__av { width: 2.3em; height: 2.3em; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); font: 800 .9em/1 var(--display); box-shadow: 0 0 0 2px #fff; }
.story-head__name { font-weight: 600; white-space: nowrap; }
.story-head__time { opacity: .75; }
.story-pause {
  position: relative; z-index: 5; width: 44px; height: 44px; margin: -12px -12px -12px auto; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.story-pause .i { grid-area: 1 / 1; width: max(14px, 1.3em); height: max(14px, 1.3em); }
.story-pause .i--play, .story-pause[aria-pressed="true"] .i--pause { display: none; }
.story-pause[aria-pressed="true"] .i--play { display: block; }
.story-pause:focus-visible { outline-offset: -4px; }

.story-nav { position: absolute; z-index: 3; top: 22%; bottom: 13%; width: 50%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.story-nav--prev { left: 0; }
.story-nav--next { right: 0; }
.story-nav:focus-visible { outline-offset: -6px; border-radius: 14px; }

.story-foot { position: absolute; z-index: 4; left: 5%; right: 5%; bottom: 3.5%; display: flex; align-items: center; gap: .7em; }
.story-foot__reply { flex: 1; min-width: 0; padding: .55em 1em; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 99px; font-size: .9em; white-space: nowrap; overflow: hidden; }
.story-foot .i { width: 1.6em; height: 1.6em; }

/* Story stickers */
.st-loc {
  position: absolute; left: 50%; top: 70%; margin: 0;
  display: flex; align-items: center; gap: .35em; padding: .55em .9em; border-radius: .8em;
  background: #fff; color: #1a1030; font-weight: 700; white-space: nowrap;
  transform: translateX(-50%) rotate(-4deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.st-loc .i { width: 1.2em; height: 1.2em; color: var(--mag); }
.st-poll {
  position: absolute; left: 12%; right: 12%; top: 19%; padding: .8em; border-radius: 1em;
  background: #fff; color: #1a1030; text-align: center; transform: rotate(-3deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.st-poll p { margin: 0 0 .6em; font: 800 1.05em/1.1 var(--display); }
.st-poll__opt { position: relative; display: flex; justify-content: space-between; padding: .45em .7em; border-radius: .6em; background: #eee9f8; font-size: .85em; overflow: hidden; isolation: isolate; }
.st-poll__opt + .st-poll__opt { margin-top: .35em; }
.st-poll__opt--win::before { content: ""; position: absolute; inset: 0 32% 0 0; z-index: -1; background: var(--grad); }
.st-text { position: absolute; left: 6%; right: 6%; top: 25%; margin: 0; text-align: center; font: 800 1.3em/1.55 var(--display); }
.st-text span { padding: .1em .35em; border-radius: .3em; background: var(--yel); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Reel UI (back phone) */
.phone--reel .phone__screen::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 2; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.reel-meta { position: absolute; z-index: 3; left: 6%; right: 26%; bottom: 12%; margin: 0; font-size: .95em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.reel-meta b { display: block; margin-bottom: .2em; }
.reel-rail { position: absolute; z-index: 3; right: 4%; bottom: 13%; display: grid; gap: .9em; justify-items: center; font-size: .78em; font-weight: 600; }
.reel-rail span { display: grid; justify-items: center; gap: .2em; }
.reel-rail .i { width: 1.9em; height: 1.9em; }
.reel-rail span:first-child .i { color: var(--mag); }
.reel-audio { position: absolute; z-index: 3; left: 6%; bottom: 6%; margin: 0; display: flex; align-items: center; gap: .4em; font-size: .8em; opacity: .9; }
.bars--scrub { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; }
.bars--scrub .bar { border-radius: 0; }

/* Floating glass chips */
.float {
  position: absolute; z-index: 5; margin: 0;
  display: flex; align-items: center; gap: .5em; padding: .65em 1em; border-radius: 999px;
  background: rgba(24, 18, 46, .8); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .75);
  font-size: .88rem; font-weight: 500; white-space: nowrap; color: var(--soft);
  animation: bob 6s ease-in-out infinite alternate;
}
.float .i { width: 1.15em; height: 1.15em; }
.float b { color: var(--text); }
.float--likes { left: 0; bottom: 24%; color: var(--text); animation-delay: -2s; }
.float--likes .i { color: var(--mag); }
.float--follow { right: 0; bottom: 0; }
.float--follow .i { color: var(--cyan); }
.float--edit { display: none; }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@media (min-width: 600px) {
  .float--likes { left: 0; bottom: 30%; }
  .float--follow { right: auto; left: 12%; bottom: 2%; }
  .float--edit { display: block; right: 0; top: 24%; width: 190px; padding: 12px 14px; border-radius: 18px; white-space: normal; animation-delay: -4s; }
}
.edit__head { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: .75rem; font-weight: 600; }
.edit__tracks { position: relative; display: grid; gap: 5px; }
.trk { display: flex; gap: 3px; height: 12px; }
.trk i { width: var(--w); border-radius: 4px; background: var(--c); opacity: .9; }
.trk--audio { height: 10px; }
.trk--audio i { background: repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 4px); }
.edit__playhead { position: absolute; inset: -4px 0; animation: scrub 6s linear infinite; }
.edit__playhead span { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }
@keyframes scrub { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Phones in landscape (short screens): compact two-column hero so the first screen isn't just a headline */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 640px) and (max-width: 1023px) {
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; }
  .hero__title { font-size: clamp(2rem, 4.6vw, 2.9rem); }
  .hero__lede { margin-bottom: 1.4rem; font-size: 1rem; }
  .hero__visual { --pw: 172px; max-width: 340px; }
  .phone--story { right: 6%; }
  .phone--reel { left: 0; }
  .float--edit { display: none; }
  .float--likes { bottom: 34%; }
  .float--follow { left: auto; right: 0; }
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- Stats ---------- */
.stats { padding-bottom: clamp(36px, 6vw, 64px); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: clamp(18px, 2.4vw, 28px); }
.stat__num { margin: 0 0 .25em; font: 800 clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem)/1 var(--display); letter-spacing: -.03em; }
.stat__label { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* ---------- Brand marquee ---------- */
.brands { padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 6vw, 64px); }
.brands__title { margin: 0 0 1.4rem; text-align: center; font: 600 .82rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.marquee {
  overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.bm { display: inline-flex; align-items: center; gap: .45em; font-size: clamp(1.15rem, .95rem + .9vw, 1.6rem); line-height: 1; color: #cbc5e8; white-space: nowrap; }
.bm::after {
  content: ""; width: .42em; height: .42em; margin-inline: clamp(22px, 3.2vw, 42px);
  background: var(--grad); opacity: .85;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.bm__i { width: 1em; height: 1em; }
.bm--sole { font-family: var(--display); font-weight: 800; letter-spacing: .06em; }
.bm--adrak { font-weight: 700; letter-spacing: -.02em; }
.bm--adrak b { margin-left: -.3em; font-weight: 400; color: var(--muted); }
.bm--pag { font-weight: 600; font-size: clamp(.95rem, .8rem + .7vw, 1.3rem); letter-spacing: .32em; }
.bm--koel { font-family: var(--display); font-weight: 700; }
.bm--koel span { margin-left: .1em; padding: .3em .45em; border: 1px solid currentColor; border-radius: 4px; font: 600 .5em/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.bm--tiffin { font-weight: 500; font-style: italic; }
.bm--nimbu { font-weight: 700; letter-spacing: -.03em; }
.bm--pahadi { font-family: var(--display); font-weight: 700; }
.bm--mitti { font-weight: 400; font-size: clamp(.9rem, .78rem + .6vw, 1.2rem); letter-spacing: .3em; }

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding-block: clamp(64px, 9vw, 120px); }
.reels { padding-top: clamp(32px, 5vw, 64px); }
.section-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.1rem, 1.2rem + 3.3vw, 3.6rem); letter-spacing: -.03em; }
.section-head__sub { max-width: 34em; margin: 0; color: var(--muted); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.section-head--split > div:first-child { flex: 1 1 420px; max-width: 660px; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---------- Reels ---------- */
.filters {
  flex: 1 1 100%; display: flex; gap: 8px;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .filters { flex: 0 1 auto; flex-wrap: wrap; margin-inline: 0; padding: 4px; overflow: visible; } }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: var(--glass);
  color: var(--soft); font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.filter span { padding: .15em .55em; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: .75rem; }
.filter:hover { border-color: rgba(255, 255, 255, .38); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--grad); color: var(--ink); border-color: transparent; }
.filter[aria-pressed="true"] span { background: rgba(22, 13, 36, .16); }

.reels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
@media (min-width: 700px) { .reels__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reel-item.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.reel {
  position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 9 / 16;
  padding: 0; border: 0; border-radius: var(--r); overflow: hidden;
  background: #1a1430; color: var(--text); text-align: left; cursor: pointer;
  box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.reel__art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; transition: transform .8s var(--ease); }
/* colour-shift overlay (hover) and legibility gradient */
.reel::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, rgba(255, 61, 168, .5), rgba(255, 138, 61, .12) 50%, rgba(61, 245, 255, .35)); opacity: 0; transition: opacity .5s; }
.reel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 10, 26, .45) 0%, transparent 24%, transparent 46%, rgba(13, 10, 26, .94) 100%); }
.reel__top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; }
.tag {
  padding: .3em .65em; border-radius: 99px; background: rgba(13, 10, 26, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .72rem; font-weight: 600; line-height: 1.3; letter-spacing: .02em;
}
.tag--brand { background: var(--yel); color: var(--ink); }
.tag--time { font-variant-numeric: tabular-nums; }
.reel__play {
  position: absolute; top: 50%; left: 50%; width: clamp(46px, 5vw, 60px); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.reel__play::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); opacity: 0; }
.reel__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--grad); opacity: 0; transition: opacity .3s; z-index: -1; }
.reel__play .i { width: 42%; height: 42%; margin-left: 6%; }
.reel__info { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; }
.reel__for { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yel); }
.reel__title { font: 700 clamp(.9rem, .78rem + .45vw, 1.12rem)/1.15 var(--display); letter-spacing: -.01em; }
.reel__views { display: flex; align-items: center; gap: .35em; font-size: .78rem; color: var(--soft); }
.reel__views .i { width: 1.05em; height: 1.05em; }
.reel:hover .reel__art, .reel:focus-visible .reel__art { transform: scale(1.08); }
.reel:hover::after, .reel:focus-visible::after { opacity: 1; }
.reel:hover .reel__play, .reel:focus-visible .reel__play { transform: translate(-50%, -50%) scale(1.12); color: var(--ink); border-color: transparent; }
.reel:hover .reel__play::after, .reel:focus-visible .reel__play::after { opacity: 1; }
.reel:hover .reel__play::before, .reel:focus-visible .reel__play::before { animation: pulse 1.4s ease-out infinite; }
.reel:focus-visible { outline-offset: 4px; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }

/* 3D tilt: fine pointers only (JS sets --rx/--ry) */
@media (hover: hover) and (pointer: fine) {
  [data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
  [data-tilt].is-tilting { transition-duration: .12s; }
}

/* ---------- About ---------- */
.about__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.about__visual { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.avatar { position: relative; isolation: isolate; width: 76%; aspect-ratio: 1; padding: 4%; border-radius: 50%; }
.avatar::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 50%; background: conic-gradient(var(--mag), var(--org), var(--yel), var(--cyan), var(--mag)); animation: spin 14s linear infinite; }
.avatar::after { content: ""; position: absolute; inset: 2.2%; z-index: -1; border-radius: 50%; background: var(--bg); }
.avatar__art { width: 100%; height: 100%; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker {
  position: absolute; margin: 0; padding: .55em 1em; border-radius: 999px;
  font-weight: 600; font-size: clamp(.8rem, .74rem + .3vw, .95rem); white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
  animation: bob 7s ease-in-out infinite alternate;
}
.sticker--a { top: 7%; left: 0; rotate: -6deg; background: var(--yel); color: var(--ink); }
.sticker--b { top: 58%; right: 0; rotate: 4deg; background: rgba(24, 18, 46, .85); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation-delay: -3s; }
.sticker--c { bottom: 6%; left: 8%; rotate: -3deg; background: var(--mag); color: var(--ink); animation-delay: -5s; }
.about__copy > p:not(.eyebrow) { color: var(--muted); font-size: clamp(1rem, .96rem + .2vw, 1.1rem); max-width: 36em; }
.about__copy h2 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.4rem); letter-spacing: -.03em; max-width: 14em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 1.75rem; }
.fact { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-sm); }
.fact__k { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.fact__v { font-weight: 600; font-size: .98rem; }

/* ---------- Services ---------- */
.services, .contact { overflow: hidden; overflow: clip; }
.services::before {
  content: ""; position: absolute; z-index: -1; left: -12%; top: 8%; width: 56vw; height: 56vw; max-width: 680px; max-height: 680px;
  background: radial-gradient(circle, rgba(255, 61, 168, .16), transparent 64%); pointer-events: none;
}
.services__grid { display: grid; gap: clamp(14px, 2vw, 20px); }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.services__grid > li { display: flex; }
.service { position: relative; display: flex; flex-direction: column; width: 100%; padding: clamp(22px, 2.4vw, 28px); overflow: hidden; }
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .09), transparent 45%);
}
.service:hover::before { opacity: 1; }
.service__badge { position: absolute; top: 18px; right: 18px; margin: 0; padding: .35em .8em; border-radius: 99px; background: var(--yel); color: var(--ink); font-size: .75rem; font-weight: 700; }
.service__icon {
  width: 52px; height: 52px; margin-bottom: 1.25rem; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 61, 168, .22), rgba(255, 138, 61, .1)); border: 1px solid rgba(255, 61, 168, .35); color: #ff9fd0;
}
.service__icon .i { width: 26px; height: 26px; }
.service h3 { font-size: 1.5rem; margin-bottom: .4em; }
.service > p:not(.service__badge) { margin-bottom: 1.1rem; color: var(--muted); font-size: .98rem; }
.service__list { display: grid; gap: .5rem; margin-bottom: 1.5rem; font-size: .95rem; color: var(--soft); }
.service__list li { display: flex; align-items: flex-start; gap: .55em; }
.service__list .i { width: 1.1em; height: 1.1em; margin-top: .25em; color: var(--cyan); }
.service__price { margin: auto 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; }
.service__price span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.service__price strong { font: 800 1.75rem/1.15 var(--display); letter-spacing: -.02em; }
.service__price small { font: 500 .9rem var(--body); letter-spacing: 0; color: var(--muted); -webkit-text-fill-color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes__grid { display: grid; gap: clamp(14px, 2vw, 20px); }
@media (min-width: 640px) { .quotes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quote:first-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .quotes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quote:first-child { grid-column: auto; } }
.quote { margin: 0; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 1.1rem; }
.quote__stat { align-self: flex-start; display: inline-flex; align-items: center; gap: .45em; margin: 0; padding: .4em .85em; border-radius: 999px; background: rgba(61, 245, 255, .1); border: 1px solid rgba(61, 245, 255, .3); color: var(--cyan); font-size: .85rem; font-weight: 600; }
.quote__stat .i { width: 1.05em; height: 1.05em; }
.quote blockquote { flex: 1; margin: 0; }
.quote blockquote p { margin: 0; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span span { display: block; font-size: .9rem; color: var(--muted); }
.quote__av { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: var(--ink); font: 700 .95rem/1 var(--body); letter-spacing: .02em; }
.quote:nth-child(2) .quote__av { background: linear-gradient(135deg, var(--cyan), #9d8cff); }
.quote:nth-child(3) .quote__av { background: linear-gradient(135deg, var(--yel), var(--org)); }

/* ---------- Contact ---------- */
.contact::before {
  content: ""; position: absolute; z-index: -1; right: -14%; top: 0; width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(255, 138, 61, .14), transparent 62%); pointer-events: none;
}
.contact__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.contact__title { font-weight: 800; margin-bottom: .35em; font-size: clamp(2.8rem, 1.5rem + 5.4vw, 5.5rem); line-height: .95; letter-spacing: -.04em; }
.contact__lede { max-width: 30em; margin-bottom: 1.75rem; color: var(--muted); font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); }
.contact__list { display: grid; gap: 10px; margin-bottom: 1.75rem; }
.contact__link {
  display: flex; align-items: center; gap: 14px; min-height: 64px; margin: 0; padding: 10px 16px 10px 10px;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .25s, transform .25s var(--ease);
}
a.contact__link:hover { border-color: rgba(255, 255, 255, .32); transform: translateX(4px); }
.contact__link > span:last-child { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact__link small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--cyan); }
.contact__card { padding: clamp(20px, 3.4vw, 40px); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; }
.field label, .chips legend { font-size: .95rem; font-weight: 600; color: var(--soft); }
.field__opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: var(--text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { min-height: 124px; resize: vertical; line-height: 1.5; }
::placeholder { color: #8f89ad; opacity: 1; }
input:focus, textarea:focus { outline: none; border-color: var(--cyan); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(61, 245, 255, .2); }
[aria-invalid="true"] { border-color: #ff6b8e !important; }
.field__error { margin: 0; color: #ff9ab4; font-size: .88rem; font-weight: 500; }
.field__error:empty { display: none; }
.chips { display: block; border: 0; padding: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
  font-weight: 600; font-size: .95rem; color: var(--soft); transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: rgba(255, 255, 255, .42); }
.chip input:checked + span { background: var(--grad); color: var(--ink); border-color: transparent; }
.chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form__note { margin: 0; color: var(--muted); font-size: .9rem; }

.form-success { padding: clamp(20px, 4vw, 40px) 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: var(--ink); animation: pop .6s var(--ease) both; }
.form-success__icon .i { width: 34px; height: 34px; }
.form-success h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.form-success p { max-width: 30em; margin: 0 auto 1.5rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 32px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__copy { margin: 0 0 .2rem; font-weight: 600; }
.footer__credit { margin: 0; color: var(--muted); font-size: .88rem; }
.footer__socials { display: flex; gap: 8px; }
.social--top .i { transform: rotate(-90deg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 12px 18px; border-radius: 16px;
  background: rgba(28, 22, 52, .94); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .75);
  font-size: .95rem; font-weight: 500; text-align: center;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast:empty { display: none; }

/* ---------- Motion: reveal on scroll (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero__copy > *, .hero__visual { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .hero__visual { animation-delay: .2s; animation-duration: 1.1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Pause continuous animations off-screen / in hidden tabs (classes set by JS) */
.is-off *, .is-off *::before, .is-off *::after,
.tab-hidden *, .tab-hidden *::before, .tab-hidden *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .blob, .float, .sticker, .avatar::before, .shimmer, .live-pill__dot::after, .edit__playhead, .marquee__track { animation: none !important; }
  .bar.is-active i { animation: none !important; transform: scaleX(1); }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; justify-content: center; }
  .marquee__list { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 18px 32px; padding-inline: var(--gutter); }
  .marquee__list[aria-hidden="true"] { display: none; }
  .bm::after { display: none; }
}


/* ===== Demo chrome: "All themes" link back to the Spectrix gallery =====
   Not part of the portfolio design itself. Sits under the header/menu and toasts;
   hidden (via the inline script next to it) when the page runs inside the gallery's device preview. */
.demo-back {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  text-decoration: none;
  white-space: nowrap;
  animation: demo-back-in .6s .8s backwards cubic-bezier(.2, .8, .2, 1);
  background: rgba(22, 13, 36, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: 600 14px/1 var(--body);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.demo-back[hidden] { display: none; }
.demo-back svg { width: 18px; height: 18px; flex: none; transition: transform .25s ease; }
.demo-back:hover svg,
.demo-back:focus-visible svg { transform: translateX(-3px); }
.demo-back:hover,
.demo-back:focus-visible { background: var(--grad); border-color: transparent; color: var(--ink); }

@keyframes demo-back-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .demo-back { animation: none; transition: none; }
  .demo-back svg { transition: none; }
}
