/* =========================================================
   FrameMotion – landing page
   Paletė (svetainė + ~/Desktop/CLAUDE/FrameMotion/(1) Instagram.jpg):
   Black / Surface / Charcoal / Dove Grey / Casper / White
   Šriftas: VIENAS – Apple įrenginiuose sisteminis SF Pro (kaip apple.com), kitur Inter.
   Svarbūs žodžiai – paryškinti (700), ne kitu šriftu
   ========================================================= */

:root {
  /* Spalvos – keisti tik čia */
  --black: #000000;
  --surface: #0E0E0E;      /* tamsios kortelės: bento, 1 ir 3 paketas, žingsniai, darbai */
  --card: #1A1A1A;         /* hover būsenos, antriniai blokai */
  --charcoal: #262626;
  --line: #3A3D3E;         /* rėmeliai, filtrai */
  --dove: #686B6C;         /* Dove Grey: neaktyvūs elementai, nav nuorodos */
  --casper: #AABBC5;       /* Casper – vienintelis akcentas (mygtukai, švytėjimai, akcentiniai žodžiai) */
  --white: #FFFFFF;

  /* Teksto atspalviai */
  --text-muted: #A1A5A8;   /* aprašymai, paantraštės */
  --text-soft: #C8CDD0;
  --text-dim: #D7DCDF;

  /* Tos pačios spalvos RGB pavidalu permatomumui (keičiant spalvą viršuje – pakeisti ir čia) */
  --black-rgb: 0 0 0;
  --surface-rgb: 14 14 14;
  --card-rgb: 26 26 26;
  --dove-rgb: 104 107 108;
  --casper-rgb: 170 187 197;
  --white-rgb: 255 255 255;

  /* Išvestinė: šviesesnis Casper (populiariausios kortelės gradiento apačia, akcentų gradientas) */
  --casper-light: color-mix(in srgb, var(--casper) 50%, var(--white));

  /* Tipografija */
  /* Vienas šriftas: -apple-system / BlinkMacSystemFont = SF Pro (Safari, Chrome Mac/iPhone), kitur – Inter */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Išdėstymas */
  --container: 1200px;
  --gutter: 24px;
  --section-pad: clamp(80px, 9vw, 136px);
  --radius-card: 22px;
  --radius-plan: 30px;      /* išorinis kainų rėmas */
  --plan-gap: 8px;          /* tarpas tarp rėmo ir vidinės kortelės */

  /* Judesys */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-sine: cubic-bezier(.45, 0, .55, 1);
  --silk: cubic-bezier(.4, 0, .1, 1);       /* atsiradimai: be trūkčiojimo pradžioje ir pabaigoje */
  --exit: cubic-bezier(.4, 0, 1, 1);        /* dingimai – greitesni */
  --spring: cubic-bezier(.3, 1.3, .5, 1);   /* atsarginis; tikras spring – žemiau (linear()) */
}

/* Spring su mažu perlėkimu (~5 %), 600 ms: ζ = 0.68 */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.0274, 0.0975, 0.1944, 0.3054, 0.4207, 0.5331, 0.6375, 0.7309, 0.8115, 0.8789, 0.9332, 0.9755, 1.0069, 1.029, 1.0432, 1.0511, 1.0541, 1.0535, 1.0502, 1.0453, 1.0394, 1.0332, 1.027, 1.0212, 1.0159, 1.0114, 1.0075, 1.0044, 1.0019, 1);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 700; color: var(--white); }
.nowrap { white-space: nowrap; }

.ico {
  flex: none;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--bold { stroke-width: 2.4; }
.ico--fill { fill: currentColor; stroke-width: 1.5; }

/* ---------- Bendri blokai ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-pad); }
.section { border-top: 1px solid rgb(var(--white-rgb) / .06); }

.section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* Žyma (pill) – ta pati kalba kaip hero kapsulė */
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgb(var(--casper-rgb) / .25);
  background: rgb(var(--casper-rgb) / .06);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--casper);
  white-space: nowrap;
}

/* Antraštės: vienas šriftas, pagrindas 500; 1–3 svarbiausi žodžiai – paryškinti (.accent, 700) */
.h2 {
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.028em;
  color: var(--white);
  text-wrap: balance;
}
.h2__muted  { color: var(--text-muted); }
.h2__casper { color: var(--casper); }

/* Svarbūs žodžiai – tas pats šriftas, tik paryškinti */
.accent { font-weight: 700; }
.accent--casper { color: var(--casper); }

/* Vieno žodžio bloko antraštė („Darbai“, „Paketai ir kainos“) – Deivis 2026-11-17: „ką nors už jo ar po juo, kad geriau atrodytų“.
   Už žodžio – minkštas Dove Grey švytėjimas (kaip hero gradientas), po juo – trumpa Casper linija,
   kuri atsiveria nuo centro, kai blokas pasirodo (.reveal.is-visible). */
.title-mark {
  position: relative;
  isolation: isolate;
  padding-bottom: 30px;
}
.title-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(50% - 15px);
  width: min(calc(100% + 3em), 92vw);
  height: 2.6em;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--dove-rgb) / .45), rgb(var(--dove-rgb) / .14) 55%, rgb(var(--dove-rgb) / 0));
  pointer-events: none;
}
.title-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 2px;
  margin-left: -36px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--casper-rgb) / 0), var(--casper) 50%, rgb(var(--casper-rgb) / 0));
  box-shadow: 0 0 14px rgb(var(--casper-rgb) / .55);
  transform: scaleX(0);
  transition: transform 1.1s var(--silk) .3s;
}
.reveal.is-visible .title-mark::after,
html:not(.js) .title-mark::after { transform: scaleX(1); }

/* „parduoda.“ – paryškintas + švytintis gradientas (balta → Casper) */
.accent--glow {
  display: inline-block;
  padding: 0 .06em .16em;
  margin: 0 -.06em -.16em;
  background: linear-gradient(180deg, var(--white) 8%, var(--casper-light) 45%, var(--casper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgb(var(--casper-rgb) / .35));
}

.lead {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}
.lead strong { font-weight: 600; }

/* ---------- Mygtukai ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* transform – spring (atleidus mygtukas „atšoka“ su mažu perlėkimu); paspaudimas – žr. „Mikrosąveikos“ */
  transition: transform .6s var(--spring), box-shadow .3s ease, border-color .3s ease, background-color .3s ease, color .3s ease;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:focus-visible { outline: 2px solid var(--casper); outline-offset: 3px; }

.btn--sm    { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

.btn--casper {
  background: var(--casper);
  color: var(--black);
  font-weight: 700;
  box-shadow: 0 0 24px rgb(var(--casper-rgb) / .22);
}
@media (hover: hover) { .btn--casper:hover { box-shadow: 0 0 36px rgb(var(--casper-rgb) / .42); } }

.btn--hero {
  background: linear-gradient(120deg, var(--white) 0%, var(--casper) 100%);
  color: var(--black);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / .7), 0 10px 34px rgb(var(--casper-rgb) / .22);
}
@media (hover: hover) {
  .btn--hero:hover {
    box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / .7), 0 0 0 1px rgb(var(--casper-rgb) / .35), 0 14px 52px rgb(var(--casper-rgb) / .45);
  }
}

.btn--glass {
  background: rgb(var(--white-rgb) / .04);
  border-color: rgb(var(--white-rgb) / .12);
  color: var(--white);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (hover: hover) { .btn--glass:hover { background: rgb(var(--white-rgb) / .08); border-color: rgb(var(--white-rgb) / .24); } }

.btn--black { background: var(--black); color: var(--white); }
@media (hover: hover) { .btn--black:hover { box-shadow: 0 12px 30px rgb(var(--black-rgb) / .35); } }

.btn--outline { background: transparent; border-color: rgb(var(--white-rgb) / .24); color: var(--white); }
@media (hover: hover) { .btn--outline:hover { border-color: rgb(var(--white-rgb) / .5); background: rgb(var(--white-rgb) / .04); } }

.btn--outline-casper { background: var(--black); border-color: var(--casper); color: var(--white); }
@media (hover: hover) { .btn--outline-casper:hover { box-shadow: 0 0 28px rgb(var(--casper-rgb) / .28); } }

.btn__chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Navigacija ---------- */

/* Prilipusi. Virš hero – permatoma; paslinkus > 24 px (.is-scrolled, js/main.js) – tamsus stiklas,
   šiek tiek žemesnė, apačioje 1 px linija su vos matomu Casper švytėjimu centre */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--silk);
}
.site-header::before {
  inset: 0;
  /* tamsesnė (Deivio brief'as 2026-11-17), kad slenkant per šviesius video ir kortelės tekstas visada būtų įskaitomas */
  background: rgb(var(--black-rgb) / .78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.site-header::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background:
    radial-gradient(closest-side, rgb(var(--casper-rgb) / .6), rgb(var(--casper-rgb) / 0)) center / 46% 100% no-repeat,
    rgb(var(--white-rgb) / .06);
  filter: drop-shadow(0 0 3px rgb(var(--casper-rgb) / .5));
}
.site-header.is-scrolled::before,
.site-header.is-scrolled::after { opacity: 1; }

.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  transition: padding .3s var(--silk);
}
.is-scrolled .nav { padding-block: 12px; }

/* Logotipas: Casper taškas + „FrameMotion“ 700 (tas pats kaip video logotipe) */
.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
}
.logo__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--casper);
  box-shadow: 0 0 10px rgb(var(--casper-rgb) / .55);
}

.nav__links { display: flex; align-items: center; gap: 36px; }

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--dove);
  text-decoration: none;
  transition: color .2s ease;
}
@media (hover: hover) { .nav__link:hover { color: var(--white); } }

.nav__cta { justify-self: end; }

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; padding-block: 14px; }
  .is-scrolled .nav { padding-block: 10px; }
  .nav__links { display: none; }
}

/* Nuorodos (#darbai, #kainos…) nepalenda po juosta */
.section { scroll-margin-top: 68px; }

/* ---------- 1. Hero ---------- */

/* Švarus turinys (antraštė, paantraštė, 2 mygtukai) per ekrano vidurį, šiek tiek žemiau centro
   (padding-top didesnis nei apačia). Fone – juoda su plaukiančiu Dove Grey gradientu. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 168px var(--gutter) 96px;
  overflow: hidden;
  text-align: center;
}

.hero__title {
  max-width: 1120px;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.hero__sub {
  max-width: 780px;
  margin-top: 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero__sub strong { font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

/* TikTok sakinys po mygtukais (Deivis 2026-11-17: „paties išvystyta 45 tūkst. sekėjų paskyra, todėl žinau, kaip pritraukti
   žmonių dėmesį“) – tylus, pilkas, svarbiausia dalis paryškinta; be nuorodos */
.hero__proof {
  max-width: 470px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: balance;
}
.hero__proof strong { font-weight: 600; }

/* ---------- Hero fonas: juoda + plaukiantis Dove Grey gradientas ----------
   Deivis: „juoda background su minkštu gradient … naudok mano tą pilką“ = Dove Grey #686B6C (paletė, (1) Instagram.jpg).
   „Kad plaukiotų ir judėtų … ir gražiai iš to gradient į juodą“:
   - 3 minkštos dėmės; kiekviena juda dviem atskirais judesiais (X – .hero__blob, Y + mastelis + pasukimas – ::before)
     su skirtingomis trukmėmis → nuolat plaukianti trajektorija, niekada nesustoja vienu metu abiem kryptimis;
   - apačia ištirpsta į juodą per mask-image su „ease“ laipteliais (be ryškios ribos), linijos tarp hero ir kito bloko nėra.
   Sustoja, kai hero nesimato (.is-idle, js/main.js); prefers-reduced-motion – stovi. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--black);
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%, #000 42%, rgb(0 0 0 / .94) 52%, rgb(0 0 0 / .8) 61%, rgb(0 0 0 / .6) 70%,
    rgb(0 0 0 / .38) 79%, rgb(0 0 0 / .18) 87%, rgb(0 0 0 / .05) 94%, transparent 100%);
  mask-image: linear-gradient(180deg,
    #000 0%, #000 42%, rgb(0 0 0 / .94) 52%, rgb(0 0 0 / .8) 61%, rgb(0 0 0 / .6) 70%,
    rgb(0 0 0 / .38) 79%, rgb(0 0 0 / .18) 87%, rgb(0 0 0 / .05) 94%, transparent 100%);
}
.hero + .section { border-top: 0; }     /* po hero – jokios linijos, tik ištirpimas į juodą */

.hero__blob {
  position: absolute;
  will-change: translate;
  animation: blob-x var(--tx) var(--ease-sine) infinite alternate;
}
.hero__blob::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--dove-rgb) / var(--a)), rgb(var(--dove-rgb) / calc(var(--a) * .4)) 55%, rgb(var(--dove-rgb) / 0));
  will-change: translate, scale, rotate;
  animation: blob-y var(--ty) var(--ease-sine) infinite alternate;
}
.hero__blob--1 {
  --a: .62; --dx: 16vw; --dy: 12vh; --tx: 17s; --ty: 23s; --s: 1.18; --r: 28deg;
  left: -16vmax; top: -24vmax;
  width: 80vmax; height: 62vmax;
}
.hero__blob--2 {
  --a: .5; --dx: -20vw; --dy: 16vh; --tx: 21s; --ty: 15s; --s: .84; --r: -34deg;
  right: -24vmax; top: -2vmax;
  width: 74vmax; height: 58vmax;
}
.hero__blob--3 {
  --a: .4; --dx: 24vw; --dy: -10vh; --tx: 26s; --ty: 19s; --s: 1.22; --r: 40deg;
  left: 2vw; top: 18vh;
  width: 60vmax; height: 44vmax;
}
.hero__blob--2,
.hero__blob--2::before { animation-delay: -7s; }
.hero__blob--3,
.hero__blob--3::before { animation-delay: -12s; }
@keyframes blob-x {
  from { translate: calc(var(--dx) * -1) 0; }
  to   { translate: var(--dx) 0; }
}
@keyframes blob-y {
  from { translate: 0 calc(var(--dy) * -1); scale: 1; rotate: 0deg; }
  to   { translate: 0 var(--dy); scale: var(--s); rotate: var(--r); }
}
.hero.is-idle .hero__blob,
.hero.is-idle .hero__blob::before { animation-play-state: paused; }

/* Kompiuteris (Deivis 2026-11-17: „iškart po mygtukais juoda … trūksta to gradient, kad ilgesnis būtų“; telefone – gerai, neliesti):
   gradientas laikosi iki 62 % aukščio (žemiau mygtukų), ištirpsta tik paskutiniame trečdalyje;
   trečia dėmė nuleista po mygtukais, antra – žemiau, kad apačioje irgi plauktų pilka. */
@media (min-width: 761px) {
  .hero__bg {
    -webkit-mask-image: linear-gradient(180deg,
      #000 0%, #000 62%, rgb(0 0 0 / .94) 68%, rgb(0 0 0 / .8) 74%, rgb(0 0 0 / .6) 80%,
      rgb(0 0 0 / .38) 86%, rgb(0 0 0 / .18) 91%, rgb(0 0 0 / .05) 96%, transparent 100%);
    mask-image: linear-gradient(180deg,
      #000 0%, #000 62%, rgb(0 0 0 / .94) 68%, rgb(0 0 0 / .8) 74%, rgb(0 0 0 / .6) 80%,
      rgb(0 0 0 / .38) 86%, rgb(0 0 0 / .18) 91%, rgb(0 0 0 / .05) 96%, transparent 100%);
  }
  .hero__blob--2 { top: 16vh; }
  .hero__blob--3 { --a: .48; top: 44vh; left: 8vw; }
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero: žemesni kompiuterio ekranai (1280×800, 1024×768) ---------- */
@media (min-width: 761px) and (max-height: 860px) {
  .hero { padding-top: 140px; padding-bottom: 72px; }
  .hero__sub { margin-top: 18px; }
  .hero__ctas { margin-top: 30px; }
  .hero__proof { margin-top: 24px; }
}

/* ---------- Hero: telefonas (iki 760 px) ---------- */
@media (max-width: 760px) {
  .hero { padding: 132px var(--gutter) 84px; }
  .hero__title { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.06; }
  .hero__sub { margin-top: 16px; font-size: 16px; line-height: 1.5; }
  .hero__sub-more { display: none; }
  /* siauras ekranas: plaukimas į šonus didesnis (vw mažas), aukštyn / žemyn – mažesnis */
  .hero__blob--1 { --dx: 34vw; --dy: 9vh; }
  .hero__blob--2 { --dx: -38vw; --dy: 11vh; }
  .hero__blob--3 { --dx: 42vw; --dy: -8vh; }
  .hero__ctas { width: 100%; flex-direction: column; align-items: center; margin-top: 28px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { width: 100%; max-width: 420px; }
  .hero__proof { max-width: 340px; margin-top: 24px; font-size: 14px; }
}

/* ---------- 2. Prieš / Po ---------- */

.compare {
  --pos: 50%;
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgb(var(--casper-rgb) / .14), 0 40px 100px rgb(var(--black-rgb) / .7);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare__label {
  position: absolute;
  top: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.compare__label--raw   { left: 14px; background: rgb(var(--black-rgb) / .6); border: 1px solid rgb(var(--white-rgb) / .16); color: var(--text-dim); }
.compare__label--after { right: 14px; background: var(--white); color: var(--black); }

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--casper);
  box-shadow: 0 0 20px rgb(var(--casper-rgb) / .5);
  pointer-events: none;
}

.compare__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--casper);
  color: var(--black);
  box-shadow: 0 0 20px rgb(var(--casper-rgb) / .5), 0 6px 24px rgb(var(--black-rgb) / .45);
  pointer-events: none;
  transition: scale .55s var(--spring), box-shadow .3s ease;
}
@media (hover: hover) { .compare:hover .compare__knob { scale: 1.06; } }
/* tempiant – rankenėlė „įspaudžiama“, švytėjimas stipresnis (js/main.js → .is-dragging) */
.compare.is-dragging .compare__knob {
  scale: .9;
  box-shadow: 0 0 30px rgb(var(--casper-rgb) / .75), 0 3px 12px rgb(var(--black-rgb) / .5);
  transition-duration: .15s;
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* Motion UI elementai ant „po“ kadro */
.ui-capsule {
  position: absolute;
  right: 7%;
  top: 47%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--casper);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgb(var(--black-rgb) / .35);
}
.ui-capsule strong { color: var(--black); }
.ui-capsule__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--black); }

.ui-card {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgb(var(--black-rgb) / .42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgb(var(--white-rgb) / .16);
}
.ui-card__title { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.ui-card__meta  { font-size: 12px; font-weight: 500; color: var(--text-dim); }

/* ---------- Bento: 3 pranašumai ---------- */

.bento {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card,
.work,
.plan,
.step {
  /* atsiradimas: permatomumas – SILK, kilimas – ease-out; hover pakilimas – .55 s ease-out (be trūkčiojimo) */
  transition:
    opacity .9s var(--silk) var(--d, 0s),
    translate 1s var(--ease-out) var(--d, 0s),
    transform .55s var(--ease-out),
    border-color .35s ease,
    background-color .35s ease,
    box-shadow .35s ease;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 14px 14px 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgb(var(--white-rgb) / .08);   /* visoms 3 vienodas (Deivio brief'as 2026-11-17) */
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--casper);
    box-shadow: 0 0 34px rgb(var(--casper-rgb) / .1);
  }
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black);
}

.media-fill { width: 100%; height: 100%; object-fit: cover; }

/* 1 kortelė: +65% ir kylantys stulpeliai */
.card__media--stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
  background:
    radial-gradient(120% 110% at 0% 0%, rgb(var(--casper-rgb) / .12), transparent 60%),
    var(--black);
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat__num {
  font-size: clamp(44px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--casper);
  text-shadow: 0 0 28px rgb(var(--casper-rgb) / .35);
}
.stat__text {
  max-width: 15ch;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-soft);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46%;
}
.bars span {
  flex: 1 1 0;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--casper), rgb(var(--dove-rgb) / .2));
  transform-origin: bottom;
  /* kyla tada, kai kortelė jau matoma (vėliau ir lėčiau), paskui kiekvienas stulpelis „kvėpuoja“ savo ritmu – kaip gyvi duomenys
     (Deivis 2026-11-17: „tas graph nejuda“). Kilimas – transform, kvėpavimas – scale (susideda). */
  transition: transform 1.2s var(--ease-out) calc(var(--i) * 80ms + .55s);
  animation: bar-live var(--t, 2.2s) var(--ease-sine) var(--dl, 0s) infinite alternate;
}
@keyframes bar-live { from { scale: 1 1; } to { scale: 1 var(--lo, .85); } }
.js .card:not(.is-visible) .bars span { transform: scaleY(.06); }

.card__body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.card__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.card__text { font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* 2 kortelė: 3D titrai kadre – „After Effects 3D sluoksniai“ (Deivio brief'as 2026-11-17: „JOKIO žmogaus silueto … 3 izometriškai
   vienas už kito išdėstyti pusiau permatomi sluoksniai su Z ašies punktyrinėmis linijomis, viduriniame – švytintis 3D GYLIS“).
   Brief'o #B0C4DE → --casper (mūsų paletė). Matmenys – cqw (kortelės pločio dalimis). Kamera lėtai sukasi 9 s; stovi, kai nesimato. */
.layers {
  container-type: inline-size;
  isolation: isolate;
  background:
    radial-gradient(70% 80% at 50% 45%, rgb(var(--dove-rgb) / .26), rgb(var(--dove-rgb) / .06) 55%, transparent 82%),
    var(--black);
}
.layers__stage {
  position: absolute;
  inset: 0;
  perspective: 900px;
  perspective-origin: 50% 40%;
  transition: opacity 1.1s var(--silk) .3s, translate 1.2s var(--ease-out) .3s, filter 1.1s var(--silk) .3s;
}
.js .card:not(.is-visible) .layers__stage { opacity: 0; translate: 0 14px; filter: blur(10px); }

.layers__rig {
  --w: 44cqw;   /* sluoksnio plotis */
  --h: 27cqw;   /* aukštis */
  --d: 13cqw;   /* tarpas tarp sluoksnių Z ašimi */
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(40deg);
  animation: layers-turn 9s var(--ease-sine) infinite alternate;
}

.layers__plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  display: grid;
  place-items: center;
  border-radius: 1.6cqw;
  border: 1px solid rgb(var(--white-rgb) / .16);
  background: linear-gradient(160deg, rgb(var(--white-rgb) / .07), rgb(var(--white-rgb) / .015));
  transform: translateZ(calc(var(--z) * var(--d)));
}
.layers__plane--mid {
  border-color: rgb(var(--casper-rgb) / .55);
  background: linear-gradient(160deg, rgb(var(--casper-rgb) / .12), rgb(var(--casper-rgb) / .03));
  box-shadow: 0 0 24px rgb(var(--casper-rgb) / .18), inset 0 0 18px rgb(var(--casper-rgb) / .08);
}
.layers__plane--front { border-color: rgb(var(--white-rgb) / .24); background: rgb(var(--white-rgb) / .035); }

.layers__text {
  font-size: 7.4cqw;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  color: rgb(var(--casper-rgb) / .1);
  -webkit-text-stroke: 1px var(--casper);
  text-shadow: 0 0 12px rgb(var(--casper-rgb) / .55), 0 0 28px rgb(var(--casper-rgb) / .3);
}

/* Z ašis: 4 punktyrai per sluoksnių kampus (linija pasukta 90° aplink Y – eina gylio kryptimi) */
.layers__axis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--d) * 2 + 12cqw);
  margin-left: calc((var(--d) * 2 + 12cqw) / -2);
  height: 0;
  border-top: 1px dashed rgb(var(--casper-rgb) / .45);
  transform: translate(calc(var(--x) * var(--w) / 2), calc(var(--y) * var(--h) / 2)) rotateY(90deg);
}

@keyframes layers-turn { from { transform: rotateX(-16deg) rotateY(48deg); } to { transform: rotateX(-12deg) rotateY(24deg); } }

/* 3 kortelė: balsas (Deivis 2026-11-17: „kad toks, kaip kalba kažkas, o AI klauso – tiesiog juda pats soundtrack, o ne linija“).
   Juostelės stovi vietoje ir kyla / krenta kaip gyvas balsas: skiemenys, žodžiai, pauzės; centras garsesnis, kraštai tylesni.
   Aukščius kas kadrą rašo js/main.js (8): kyla greitai (~35 ms), krenta lėčiau (~110 ms); tyla = 4 px taškai. Kraštai blunka per mask. */
.audio-viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  /* juoda kaip kitos 2 kortelės (Deivio brief'as 2026-11-17: 3-ia kortelė neturi išsiskirti) */
  background:
    radial-gradient(70% 80% at 50% 45%, rgb(var(--dove-rgb) / .26), rgb(var(--dove-rgb) / .06) 55%, transparent 82%),
    var(--black);
}
.voice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 64px;
  contain: layout size;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.voice span {
  flex: 0 0 4px;
  min-height: 4px;
  border-radius: 2px;
  background: var(--casper);
}

/* Kortelių animacijos stovi, kai kortelė nesimato (js/main.js → .is-idle) */
[data-loop].is-idle .layers__rig,
[data-loop].is-idle .bars span { animation-play-state: paused; }

.swatches { display: flex; gap: 8px; }
.sw { flex: 1 1 0; height: 22px; border-radius: 6px; }
.sw--black  { background: var(--black); border: 1px solid var(--line); }
.sw--line   { background: var(--line); }
.sw--dove   { background: var(--dove); }
.sw--casper { background: var(--casper); }
.sw--white  { background: var(--white); }

/* ---------- 3. Darbų vitrina ---------- */

.section__inner--works { gap: 40px; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.filter {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--dove);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .5s var(--spring), background-color .2s ease, border-color .2s ease, color .2s ease;
}
@media (hover: hover) { .filter:hover { color: var(--white); border-color: var(--dove); } }
.filter[aria-pressed="true"] { background: var(--casper); border-color: var(--casper); color: var(--black); }
.filter:focus-visible { outline: 2px solid var(--casper); outline-offset: 3px; }

.works {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 760px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.work {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 10px 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgb(var(--casper-rgb) / .1);
}
@media (hover: hover) { .work:hover { transform: translateY(-4px); border-color: rgb(var(--casper-rgb) / .6); } }
.work[hidden] { display: none; }

.work__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--charcoal);
}

.work__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(var(--black-rgb) / .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--white-rgb) / .14);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* ▶ – paspaudus darbą atsidaro visas originalas su garsu (Deivis 2026-11-17: „mažas ▶ kampe“, žr. „Video peržiūra“).
   Paspausti galima visą kortelę; mygtukas – klaviatūrai ir ekrano skaitytuvams. Užvedus pele – padidėja ir užsidega Casper.
   Be JS – paslėptas (grotuvas veikia tik su JS). */
.work__play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(var(--white-rgb) / .18);
  background: rgb(var(--black-rgb) / .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .6s var(--spring), background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.work__play:focus-visible { outline: 2px solid var(--casper); outline-offset: 3px; }
html:not(.js) .work__play { display: none; }
.js .work[data-full] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  .work:hover .work__play {
    transform: scale(1.1);
    background: var(--casper);
    border-color: var(--casper);
    color: var(--black);
    box-shadow: 0 0 24px rgb(var(--casper-rgb) / .45);
  }
}

.work__body { display: flex; flex-direction: column; gap: 9px; padding: 0 6px; }

.work__title {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--text-soft);
}

.work__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.work__pills {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work__pills li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(var(--casper-rgb) / .1);
  color: var(--casper);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 4. Paketai ir kainos ---------- */

.pricing {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

.plan {
  /* Išorinis rėmas: beveik permatomas, alfa kraštas (susilieja su bet kokiu fonu) */
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  padding: var(--plan-gap);
  border-radius: var(--radius-plan);
  background: rgb(var(--white-rgb) / .025);
  border: 1px solid rgb(var(--white-rgb) / .08);
  color: var(--white);
}

/* Vidinė kortelė: koncentriškas spindulys = išorinis − tarpas − kraštas.
   Gylis tamsiame fone – šviesesniu paviršiumi, ne šešėliu. */
.plan__inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 24px;
  border-radius: calc(var(--radius-plan) - var(--plan-gap) - 1px);
  background: var(--card);
  border: 1px solid rgb(var(--white-rgb) / .06);
  box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / .05);
  transition: background-color .45s ease, border-color .45s ease;
}

.plan__head { display: flex; flex-direction: column; gap: 6px; }
.plan__kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--text-muted); }
.plan__name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }

.plan__pricebox { display: flex; flex-direction: column; gap: 6px; }
.plan__price { display: flex; align-items: baseline; gap: 10px; }
.plan__amount { font-size: 60px; font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__unit { font-size: 15px; color: var(--text-muted); }
.plan__note { font-size: 14px; color: var(--text-muted); }

.plan__for { font-size: 16px; line-height: 1.55; font-weight: 600; }

.plan__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-soft);
}
.plan__list li { display: flex; gap: 10px; }
.plan__list .ico { margin-top: 1px; color: var(--casper); }

/* 2 – vienintelė šviesi kortelė: rėmas su Casper atspalviu, viduje šviesi kortelė */
.plan--popular {
  background: rgb(var(--casper-rgb) / .1);
  border-color: rgb(var(--casper-rgb) / .3);
  box-shadow: 0 0 40px rgb(var(--casper-rgb) / .14);
}
.plan--popular .plan__inner {
  background: linear-gradient(180deg, var(--casper) 0%, var(--casper-light) 100%);
  border-color: rgb(var(--white-rgb) / .35);
  box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / .45);
  color: var(--black);
}
.plan--popular .plan__kicker,
.plan--popular .plan__unit,
.plan--popular .plan__list,
.plan--popular .plan__list .ico,
.plan--popular strong { color: var(--black); }
.plan--popular .plan__kicker,
.plan--popular .plan__unit { font-weight: 600; }

.plan__badge {
  position: absolute;
  top: -13px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.plan__badge .ico { color: var(--casper); }

.plan__save {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* 3 – tamsi, rėmas su Casper alfa kraštu */
.plan--partner { border-color: rgb(var(--casper-rgb) / .28); }
.plan--partner .plan__list { color: var(--white); }

.invoice-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgb(var(--casper-rgb) / .12);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}
.invoice-note .ico { color: var(--casper); }

/* ---------- 5. Procesas + kontaktai ---------- */

.section__inner--process { gap: 48px; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgb(var(--casper-rgb) / .1);
}

.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(180deg, rgb(var(--casper-rgb) / .45) 0%, rgb(var(--dove-rgb) / .05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--casper);
}

.step__title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.step__text { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.step__text strong { font-weight: 600; }

.contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 64px);
  border-radius: 28px;
  background: radial-gradient(120% 120% at 50% 0%, rgb(var(--casper-rgb) / .16) 0%, var(--surface) 70%);
  border: 1px solid rgb(var(--casper-rgb) / .3);
  box-shadow: 0 0 60px rgb(var(--casper-rgb) / .08), inset 0 1px 0 rgb(var(--white-rgb) / .06);
  text-align: center;
  scroll-margin-top: 84px;
}

.contact__title {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.contact__text { max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.contact__buttons {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact__buttons .btn { flex: 1 1 250px; min-height: 64px; padding: 0 20px; font-size: 17px; }

.contact__meta { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.contact__meta a { color: inherit; text-decoration: none; transition: color .2s ease; }
@media (hover: hover) { .contact__meta a:hover { color: var(--white); } }

/* ---------- Video peržiūra: visas originalas su garsu ----------
   Deivis 2026-11-17: „kad galėtum paspaust ant visų tų video ir peržiūrėt visą originalą pilnai su garsu“.
   Paspaudus darbą telefonas „išauga“ į šį rėmą (FLIP + spindulys kompensuojamas mastelio, js/main.js 9), jo kadras
   (.player__still) ištirpsta į tikrą video; uždarant – atvirkščiai, atgal į tą patį telefoną. Fonas – juodas stiklas, ✕ – kampe. */
.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overscroll-behavior: contain;
}
.player[hidden] { display: none; }

.player__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(var(--black-rgb) / .82);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

/* 9:16, kiek telpa: kraštuose ≥ 12 px, viršuje ir apačioje ≥ 72 px (✕ = 16 + 48 px + tarpas, kad neužliptų ant video) */
.player__frame {
  position: relative;
  width: min(calc(100vw - 24px), calc((100vh - 144px) * 9 / 16));
  width: min(calc(100vw - 24px), calc((100svh - 144px) * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 0 0 1px rgb(var(--white-rgb) / .1), 0 40px 120px rgb(var(--black-rgb) / .7), 0 0 90px rgb(var(--casper-rgb) / .1);
  transform-origin: 0 0;
}

.player__video,
.player__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.player__video { object-fit: contain; background: var(--black); }
.player__still {
  object-fit: cover;
  background: var(--charcoal) center / cover no-repeat;
  pointer-events: none;
  transition: opacity .45s var(--silk);
}
.player__still.is-hidden { opacity: 0; }

.player__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(var(--white-rgb) / .16);
  background: rgb(var(--white-rgb) / .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .6s var(--spring), background-color .3s ease, border-color .3s ease;
}
@media (hover: hover) { .player__close:hover { background: rgb(var(--white-rgb) / .16); border-color: rgb(var(--white-rgb) / .3); } }
.player__close:focus-visible { outline: 2px solid var(--casper); outline-offset: 3px; }

/* Kol grotuvas atidarytas – puslapis po juo neslenka (juostos vieta išlaikoma, kad niekas nepašoktų) */
html.is-player-open { overflow: hidden; scrollbar-gutter: stable; }
html.is-player-open body { overflow: hidden; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid rgb(var(--white-rgb) / .07); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 32px 40px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer__brand { font-weight: 700; color: var(--white); }

/* ---------- Atsiradimas slenkant (scroll reveal) ---------- */

/* kortelės (.card/.work/.plan/.step) savo transition turi aukščiau – kartu su hover */
.reveal:not(.card, .work, .plan, .step) {
  transition: opacity .9s var(--silk) var(--d, 0s), translate 1s var(--ease-out) var(--d, 0s);
}
.js .reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 24px;
}

/* ---------- Mikrosąveikos: svoris ir gyvumas ---------- */
/* Deivis 2026-11-17: „kad mygtukas pasispaustų, kortelė švelniai pakiltų, o puslapis krautųsi sklandžiai“.
   Paspaudimas – greitas (.12 s), atleidimas – spring (.6 s, ~5 % perlėkimas). Hover – tik pelei (@media (hover: hover)),
   kad telefone po bakstelėjimo niekas neliktų „pakibęs“. Šios taisyklės – po visų :hover, kad paspaudimas laimėtų. */

.btn:active {
  transform: translateY(1px) scale(.97);
  transition-duration: .12s;
  transition-timing-function: var(--ease-out);
}
.btn--hero:active   { box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / .5), 0 4px 16px rgb(var(--casper-rgb) / .25); }
.btn--casper:active { box-shadow: 0 0 14px rgb(var(--casper-rgb) / .3); }

.filter:active { transform: scale(.95); transition-duration: .1s; }

.work:active .work__play,
.player__close:active { transform: scale(.92); transition-duration: .12s; transition-timing-function: var(--ease-out); }

@media (hover: hover) {
  .plan:hover,
  .step:hover { transform: translateY(-4px); }
  .plan:not(.plan--popular):hover .plan__inner {
    background: color-mix(in srgb, var(--card), var(--charcoal));
    border-color: rgb(var(--white-rgb) / .1);
  }
  .plan--popular:hover { box-shadow: 0 0 56px rgb(var(--casper-rgb) / .24); }
  .step:hover { border-color: rgb(var(--casper-rgb) / .3); background: color-mix(in srgb, var(--surface), var(--card)); }
}

/* Sklandus krovimasis: juosta nusileidžia, hero fonas „įkvepia“, hero ir antraštės ryškėja iš blur,
   video išryškėja tik turėdami kadrą (js/main.js → .is-loaded; po 4 s parodomi bet kokiu atveju) */
@keyframes header-in { from { opacity: 0; translate: 0 -10px; } }
@keyframes fade-in   { from { opacity: 0; } }
@keyframes media-failsafe { to { opacity: 1; } }

.js .site-header { animation: header-in .9s var(--silk) .45s both; }
.js .hero__bg    { animation: fade-in 2s var(--silk) both; }

.hero .reveal,
.section-head.reveal {
  transition: opacity 1s var(--silk) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s), filter 1s var(--silk) var(--d, 0s);
}
.js .hero .reveal:not(.is-visible),
.js .section-head.reveal:not(.is-visible) { filter: blur(12px); }

.js video:not(.player__video) { opacity: 0; transition: opacity .9s var(--silk); }
.js video.is-loaded { opacity: 1; }
.js video:not(.is-loaded, .player__video) { animation: media-failsafe .9s var(--silk) 4s forwards; }

/* ---------- Telefonas ---------- */

@media (max-width: 480px) {
  .btn { padding: 0 20px; font-size: 15px; }
  .contact__buttons .btn { font-size: 16px; }
  .nav__cta { padding: 0 16px; font-size: 14px; }
  .work { padding: 8px 8px 16px; }
  .work__body { padding: 0 4px; gap: 8px; }
  .work__title { font-size: 15px; }
  .work__desc { font-size: 13px; line-height: 1.45; }
  .work__pills li { font-size: 11px; padding: 4px 9px; }
  .work__play { right: 8px; bottom: 8px; width: 34px; height: 34px; }
  .work__play .ico { width: 14px; height: 14px; }
  .plan__inner { padding: 26px 20px; }
}

/* ---------- Mažiau judesio ---------- */

/* Niekas nejuda: gradientas, 3D scena ir garso takelis stovi, viskas matoma iš karto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layers__rig, .bars span,
  .js .site-header, .js .hero__bg { animation: none; }
  .js .hero .reveal:not(.is-visible),
  .js .section-head.reveal:not(.is-visible),
  .js .card:not(.is-visible) .layers__stage { filter: none; opacity: 1; translate: none; }
  .hero__blob, .hero__blob::before { animation: none; }
  .js .reveal:not(.is-visible) { opacity: 1; translate: none; }
  .title-mark::after { transform: scaleX(1); transition: none; }
  .btn, .card, .work, .plan, .step, .reveal, .filter, .compare__knob, .layers__stage, .bars span,
  .site-header::before, .site-header::after, .nav,
  .work__play, .player__close, .player__still { transition: none !important; }
}
